getReturnRequest
get
/ccagent/v1/returnRequests/{id}
Get Return Request. Gets the return request details for a given ReturnRequestId. Optionally takes X-CCOrganization header which is a JSON field with organization ID as value.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
Id of returnRequest.
Header Parameters
-
X-CCOrganization: string
The organization Id to which the order belongs
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getReturnRequest_response
Type:
Show Source
object-
additionalProperties:
object additionalProperties
Additional properties if any returned by the webhook.
-
authorizationNumber:
string
RMA number of Return Request if available otherwise return request id
-
isExchangeRequest:
boolean
Either it is exchange / return request
-
isManuallyAdjusted:
boolean
Manually Adjusted Return Request
-
isSetteled:
boolean
Settled Return Request
-
isSubmitExchangeOrderAllowed:
boolean
Indicates whether submit exchange order allowed or not.It will get populated only in exchange flow.
-
orderInfo:
object orderInfo
Order Information.
-
paymentReversalInfo:
array paymentReversalInfo
Payment Reversal Info for Order.
-
profileInfo:
object profileInfo
Profile Information for the order.
-
promotionAdjustments:
object promotionAdjustments
Total promotions at Return item and Order level
-
quoteInfo:
object quoteInfo
the quote information of the order
-
refundInfo:
object refundInfo
Refund Information at the returnRequest Level.
-
returnItems:
array returnItems
List of returnable Items
-
returnLabel:
string
return label of the return request
-
returnRequestStatus:
string
Status of Return Request
-
state:
object state
state
-
submitExchangeAllowedValidationMessage:
object submitExchangeAllowedValidationMessage
submitExchangeAllowedValidationMessage will come in json response if isSubmitExchangeOrderAllowed property is false
-
trackingNumber:
array trackingNumber
Tracking Number of the return request
Nested Schema : additionalProperties
Type:
objectAdditional properties if any returned by the webhook.
Nested Schema : orderInfo
Type:
objectOrder Information.
Show Source
-
creationDate:
string
Date on which the Order was created.
-
orderId:
string
Commerce id for this order.
-
priceInfo:
object priceInfo
Price information of the order.
-
priceListGroup:
object priceListGroup
PriceList group of the order.
-
siteId:
string
Site Id on which the Order was placed.
-
submittedDate:
string
Date on which the Order was submitted.
Nested Schema : profileInfo
Type:
objectProfile Information for the order.
Show Source
-
email:
string
Email address of the profile
-
firstName:
string
First name of profile.
-
lastName:
string
Last name of profile.
-
middleName:
string
Middle name of profile.
-
organization:
array organization
The Organization associated with the B2B customer profile.
Nested Schema : promotionAdjustments
Type:
objectTotal promotions at Return item and Order level
Show Source
-
itemPromotionValueAdjustments:
object itemPromotionValueAdjustments
Item level promotion adjustments
-
nonReturnItemCostAdjustment:
object nonReturnItemCostAdjustment
The cost adjustment for item which are not returned.
-
orderPromotionValueAdjustments:
object orderPromotionValueAdjustments
Order Level promotion adjustments
-
promotionAdjustmentsCount:
integer
Count of the total number of promotions applied
-
totalOrderDiscountAdjustment:
number
The total change in order level promotion value adjustments due to the return
Nested Schema : quoteInfo
Type:
objectthe quote information of the order
Show Source
-
errorInfo:
array errorInfo
the array of errors, if any
-
expirationDate:
string
the expiration date of the quoted order, if any
-
externalId:
string
the external id for the quote
-
notes:
array notes
the notes (history) for the order
-
providerNote:
string
the provider note for the quoted order
-
quoteDate:
number
the date the order was quoted in milliseconds
-
rejectionDate:
string
the rejection date for an order whose quote has been rejected by user
-
rejectionNote:
string
the rejection note for an order whose quote has been rejected by user
-
requestDate:
string
the date when the quote was requested in ISO format
Nested Schema : refundInfo
Type:
objectRefund Information at the returnRequest Level.
Show Source
-
actualShippingRefund:
number
Actual Shipping Refund at Item level
-
actualTaxRefund:
number
Actual Tax Refund at Item level
-
appeasementRefundAdjustment:
number
The refund amount adjustment needed for the existing appeasements on the same order
-
otherRefund:
number
Other Refund
-
refundDue:
number
Total Amount of the Refund
-
returnFee:
number
ReturnFee
-
secondaryCurrencyAppeasementRefundAdjustment:
number
The secondary currency refund amount adjustment needed for the existing appeasements on the same order. This amount is deducted from the seconday currency refund total.
-
suggestedOrderRefund:
number
Refund Amount of all Return Items
-
suggestedShippingRefund:
number
Shipping Refund of all Return Items
-
suggestedTaxRefund:
number
Tax Refund of all Return Items
-
totalRefund:
number
Total sum of all the Refunds
-
unAdjustedRefundSubtotal:
number
Refund SubTotal calculated as summation of unAdjustedRefundAmount for all return Items.
Nested Schema : state
Type:
objectstate
Show Source
-
displayKey:
string
Key of returned request status.
-
displayName:
string
Translated Value of returned request status.
Nested Schema : submitExchangeAllowedValidationMessage
Type:
objectsubmitExchangeAllowedValidationMessage will come in json response if isSubmitExchangeOrderAllowed property is false
Show Source
-
description:
object description
contains detailed info
-
errorCode:
string
error code
-
message:
string
message string
Nested Schema : priceInfo
Type:
objectPrice information of the order.
Show Source
-
amount:
number
The raw number that represents the price.
-
currencyCode:
string
Indicates the currency of the price. For example, USD indicates that the price is in US dollars.
-
isTaxIncluded:
boolean
Indicates if tax is included in item price
-
orderDiscountAmount:
number
Total order Discount Amount.
-
shipping:
number
The shipping cost of the order.
-
subTotal:
number
The subtotal of the order before applying order-level promotions.
-
tax:
number
The tax on the order.
-
total:
number
The current working total, including all promotions, tax, and billing costs.
-
totalWithoutTax:
number
The total cost without Tax.
Nested Schema : priceListGroup
Type:
objectPriceList group of the order.
Show Source
-
active:
boolean
Active status of pricelist group.
-
currency:
object currency
Currency of the PriceList group.
-
deleted:
boolean
Pricelist group deleted status.
-
displayName:
string
Display Name.
-
id:
string
Id.
-
listPriceList:
object listPriceList
Price List for list prices
-
locale:
string
Locale.
-
repositoryId:
string
Repository Id.
-
salePriceList:
object salePriceList
Price List for sale prices
-
shippingSurchargePriceList:
object shippingSurchargePriceList
Price List for shipping surcharge prices
Nested Schema : currency
Type:
objectCurrency of the PriceList group.
Show Source
-
currencyCode:
string
Currency Code.
-
displayName:
string
Display Name.
-
fractionalDigits:
integer
Fractional Digits.
-
numericCode:
string
Numeric Code.
-
repositoryId:
string
Repository Id.
-
symbol:
string
currency Symbol.
Nested Schema : listPriceList
Type:
objectPrice List for list prices
Show Source
-
repositoryId:
string
Repository ID of the list prices
Nested Schema : salePriceList
Type:
objectPrice List for sale prices
Show Source
-
repositoryId:
string
Repository ID of the sale prices
Nested Schema : shippingSurchargePriceList
Type:
objectPrice List for shipping surcharge prices
Show Source
-
repositoryId:
string
Repository ID of the shipping surcharge prices
Nested Schema : items
Type:
Show Source
object-
amount:
number
The amount pertaining to the credit card
-
creditCardInfo:
object creditCardInfo
Credit Card Details.
-
creditCardType:
string
The type of the credit card
-
maxRefundAmount:
number
The maximum amount that can be refunded from the card
-
paymentGroupId:
string
Id of the payment group
-
refundType:
string
Type of the refund. For example this can be tokenized credit card
-
reversalMethod:
string
Payment Reversal Method
-
state:
string
The state of the return request
Nested Schema : creditCardInfo
Type:
objectCredit Card Details.
Show Source
-
cardNumber:
string
Credit Card Number
Nested Schema : organization
Type:
arrayThe Organization associated with the B2B customer profile.
Show Source
Nested Schema : items
Type:
Show Source
object-
id:
string
The id of the organization.
-
name:
string
The name of of the organization.
Nested Schema : itemPromotionValueAdjustments
Type:
objectItem level promotion adjustments
Show Source
-
adjustedAmount:
number
Amount adjusted as a result of applied promotion.
-
couponCode:
string
Code of the coupon applied.
-
itemPromotionRefNo:
string
Reference to the Item Level Promotion.
-
promotionAdjustmentType:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed.
-
promotionDesc:
string
Description of promotion
-
promotionId:
string
Id of the promotion
Nested Schema : nonReturnItemCostAdjustment
Type:
objectThe cost adjustment for item which are not returned.
Show Source
-
amountAdjustment:
number
Amount adjusted as result of item returned.
-
commerceItemId:
string
Id of the commerce Item.
- manualAdjustmentShareAdjustment: number
- orderDiscountShareAdjustment: number
-
quantityAdjusted:
number
The number of item adjusted.
-
shippingGroupId:
string
Id of the shipping group.
- shippingShareAdjustment: number
- taxShareAdjustment: number
Nested Schema : orderPromotionValueAdjustments
Type:
objectOrder Level promotion adjustments
Show Source
-
adjustedAmount:
number
Amount adjusted as a result of applied promotion.
-
couponCode:
string
Code of the coupon applied.
-
itemPromotionRefNo:
string
Reference to the Item Level Promotion.
-
promotionAdjustmentType:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed.
-
promotionDesc:
string
Description of promotion
-
promotionId:
string
Id of the promotion
Nested Schema : items
Type:
Show Source
object-
profileId:
string
the profile id of the user
-
profileType:
string
the profile type of the user that requested the quote
-
providerNote:
string
the provider note for the quoted order
-
quoteDate:
number
the date the order was quoted in milliseconds
-
rejectionDate:
number
the rejection date an order whose quote has been rejected by user
-
rejectionNote:
string
the rejection note for an order whose quote has been rejected by user
-
requestDate:
number
the date when the quote was requested in ISO format
-
requesterNote:
string
the requester note
Nested Schema : items
Type:
Show Source
object-
actionCode:
string
The action code that has been set on the item by the configurator system.
-
activationDate:
string
The activation date in ISO format.
-
actualRefundAmount:
number
Actual Refund Amount at Item level
-
additionalProperties:
object additionalProperties
Additional Properties if any returned by webhook.
-
adjustedPromotionReferences:
string
Reference to the Promotions linked to this returnItem
-
asset:
boolean
The flag that determines if the current item is an asset or not.
-
assetKey:
string
The assetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
billingAccountId:
string
The billing account ID associated to the current item.
-
billingProfileId:
string
The billing profile ID associated to the current item.
-
catRefId:
string
Catalog Reference Id
-
childItems:
array childItems
Returned Item child items
-
childReturnItems:
array childReturnItems
List of child return Items
-
comments:
string
Comments at ReturnItem Level
-
commerceItemId:
string
Commerce Id of the returned item
-
configuratorId:
string
Configurator Id of the returned item
-
customerAccountId:
string
The customer account ID associated to the current item.
-
deactivationDate:
string
The deactivation date in ISO format.
-
displayName:
string
Display Name of the Product
-
dispositionReason:
object dispositionReason
Disposition Reason
-
dynamicProperties:
array dynamicProperties
Array of custom properties at order line item level.
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
itemPromotionValueAdjustments:
object itemPromotionValueAdjustments
Item level promotion adjustments.
- manualAdjustmentShare: number
-
nonreturnable:
boolean
Indicates whether the item is returnable or not
-
nonReturnableReason:
string
Non returnable reason if item is non returnable
- orderDiscountShare: number
-
parentAssetKey:
string
The parentAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
price:
number
Total price of the item
-
productId:
string
Id of the return Item
-
quantityAvailableForReturn:
number
Quantity Available
-
quantityReceived:
number
Quantity Received
-
quantityReturned:
number
Quantity Returned
-
quantityShipped:
number
Quantity Shipped
-
quantityToReceive:
number
Quantity To Return
-
quantityToReturn:
number
Quantity To Return
-
returnItemId:
string
Id of the return Item
-
returnReason:
string
Reason to return an Item
-
returnRequired:
boolean
Boolean value to determine if the item has to be physically received.
-
rootAssetKey:
string
The rootAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
serviceAccountId:
string
The service account ID associated to the current item.
-
serviceId:
string
The service ID associated to the current item.
-
shippingGroupId:
string
Shipping group Id of the returned item
-
skuOptionInfo:
array skuOptionInfo
Product Variant Information.
-
skuProperties:
array skuProperties
Sku properties Information
-
suggestedRefundAmount:
number
Refund Cost for a returnItem
-
suggestedShippingRefund:
number
Shipping Refund for a returnItem
-
suggestedTaxRefund:
number
Tax Refund for a returnItem
-
transactionDate:
string
ISO formatted Date on which the service action should be triggered.
-
unAdjustedRefundAmount:
number
Refund Amount of the item excluding orderDiscountShare and ManualAdjustmentShare
-
unitPrice:
number
Unit price of the item
Nested Schema : additionalProperties
Type:
objectAdditional Properties if any returned by webhook.
Nested Schema : dispositionReason
Type:
objectDisposition Reason
Show Source
-
displayKey:
string
Key of the disposition Reason
-
displayName:
string
Name of the disposition Reason
Nested Schema : dynamicProperties
Type:
arrayArray of custom properties at order line item level.
Show Source
Nested Schema : externalData
Type:
arrayExternal data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : itemPromotionValueAdjustments
Type:
objectItem level promotion adjustments.
Show Source
-
adjustedAmount:
number
Amount adjusted as a result of applied promotion.
-
couponCode:
string
Code of the coupon applied.
-
itemPromotionRefNo:
string
Reference to the Item Level Promotion.
-
promotionAdjustmentType:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed.
-
promotionDesc:
string
Description of promotion
-
promotionId:
string
Id of the promotion
Nested Schema : items
Type:
Show Source
object-
actionCode:
string
The action code that has been set on the item by the configurator system.
-
activationDate:
string
The activation date in ISO format.
-
asset:
boolean
The flag that determines if the current item is an asset or not.
-
assetKey:
string
The assetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
billingAccountId:
string
The billing account ID associated to the current item.
-
billingProfileId:
string
The billing profile ID associated to the current item.
-
catRefId:
string
Catalog Reference Id of the child Item
-
customerAccountId:
string
The customer account ID associated to the current item.
-
deactivationDate:
string
The deactivation date in ISO format.
-
displayName:
string
Product display name of the sub sku commerce item
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
parentAssetKey:
string
The parentAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
productId:
string
Product Id of teh
-
quantity:
number
quantity of the child Item
-
rootAssetKey:
string
The rootAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
route:
string
Product path
-
selectedOptions:
array selectedOptions
Child Product Variant Information.
-
serviceAccountId:
string
The service account ID associated to the current item.
-
serviceId:
string
The service ID associated to the current item.
-
transactionDate:
string
ISO formatted Date on which the service action should be triggered.
Nested Schema : externalData
Type:
arrayExternal data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : items
Type:
Show Source
object-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
Show Source
object-
optionName:
string
Name of the Dynamic attribute.
-
optionValue:
string
Value of the Dynamic attribute.
Nested Schema : childReturnItems_def
Type:
Show Source
object-
actionCode:
string
The action code that has been set on the item by the configurator system.
-
activationDate:
string
The activation date in ISO format.
-
actualRefundAmount:
number
Actual Refund Amount at Item level
-
additionalProperties:
object additionalProperties
Additional Properties if any returned by webhook.
-
adjustedPromotionReferences:
string
Reference to the Promotions linked to this returnItem
-
asset:
boolean
The flag that determines if the current item is an asset or not.
-
assetId:
string
The asset ID corresponding to the current item.
-
assetKey:
string
The assetKey ID associated to the current item.
-
billingAccountId:
string
The billing account ID associated to the current item.
-
billingProfileId:
string
The billing profile ID associated to the current item.
-
catRefId:
string
Catalog Reference Id
-
childReturnItems:
array childReturnItems
List of child return Items
-
comments:
string
Comments at ReturnItem Level
-
commerceItemId:
string
Commerce Id of the returned item
-
configuratorId:
string
Configurator Id of the returned item
-
customerAccountId:
string
The customer account ID associated to the current item.
-
deactivationDate:
string
The deactivation date in ISO format.
-
displayName:
string
Display Name of the Product
-
dispositionReason:
object dispositionReason
Disposition Reason
-
dynamicProperties:
array dynamicProperties
Array of custom properties at order line item level.
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
itemPromotionValueAdjustments:
object itemPromotionValueAdjustments
Item level promotion adjustments.
- manualAdjustmentShare: number
-
nonreturnable:
boolean
Indicates whether the item is returnable or not
-
nonReturnableReason:
string
Non returnable reason if item is non returnable
- orderDiscountShare: number
-
parentAssetKey:
string
The parentAssetKey ID associated to the current item.
-
price:
number
Total price of the item
-
productId:
string
Id of the return Item
-
quantityAvailableForReturn:
number
Quantity Available
-
quantityReceived:
number
Quantity Received
-
quantityReturned:
number
Quantity Returned
-
quantityShipped:
number
Quantity Shipped
-
quantityToReceive:
number
Quantity To Return
-
quantityToReturn:
number
Quantity To Return
-
returnItemId:
string
Id of the return Item
-
returnReason:
string
Reason to return an Item
-
returnRequired:
boolean
Boolean value to determine if the item has to be physically received.
-
rootAssetKey:
string
The rootAssetKey ID associated to the current item.
-
serviceAccountId:
string
The service account ID associated to the current item.
-
serviceId:
string
The service ID associated to the current item.
-
shippingGroupId:
string
Shipping group Id of the returned item
-
skuOptionInfo:
array skuOptionInfo
Product Variant Information.
-
skuProperties:
array skuProperties
Sku properties Information
-
suggestedRefundAmount:
number
Refund Cost for a returnItem
-
suggestedShippingRefund:
number
Shipping Refund for a returnItem
-
suggestedTaxRefund:
number
Tax Refund for a returnItem
-
transactionDate:
string
ISO formatted Date on which the service action should be triggered.
-
unAdjustedRefundAmount:
number
Refund Amount of the item excluding orderDiscountShare and ManualAdjustmentShare
-
unitPrice:
number
Unit price of the item
Nested Schema : additionalProperties
Type:
objectAdditional Properties if any returned by webhook.
Nested Schema : dispositionReason
Type:
objectDisposition Reason
Show Source
-
displayKey:
string
Key of the disposition Reason
-
displayName:
string
Name of the disposition Reason
Nested Schema : dynamicProperties
Type:
arrayArray of custom properties at order line item level.
Show Source
Nested Schema : externalData
Type:
arrayExternal data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : itemPromotionValueAdjustments
Type:
objectItem level promotion adjustments.
Show Source
-
adjustedAmount:
number
Amount adjusted as a result of applied promotion.
-
couponCode:
string
Code of the coupon applied.
-
itemPromotionRefNo:
string
Reference to the Item Level Promotion.
-
promotionAdjustmentType:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed.
-
promotionDesc:
string
Description of promotion
-
promotionId:
string
Id of the promotion
Nested Schema : items
Type:
Show Source
object-
id:
string
The ID of the dynamic property.
-
label:
string
The label of the dynamic property.
-
value:
string
The value of the dynamic property.
Nested Schema : items
Type:
Show Source
object-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
Show Source
object-
optionName:
string
Name of the Dynamic attribute
-
optionValue:
string
Value of the Dynamic attribute
Nested Schema : items
Type:
Show Source
object-
id:
string
ID of the Dynamic SKU Property.
-
name:
string
Name of the Dynamic SKU Property.
-
propertyType:
string
Type that indicates whether it is a base or a custom SKU property,
-
value:
string
Value of the Dynamic SKU Property.
Nested Schema : items
Type:
Show Source
object-
id:
string
The ID of the dynamic property.
-
label:
string
The label of the dynamic property.
-
value:
string
The value of the dynamic property.
Nested Schema : items
Type:
Show Source
object-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
Show Source
object-
optionName:
string
Name of the Dynamic attribute
-
optionValue:
string
Value of the Dynamic attribute
Nested Schema : items
Type:
Show Source
object-
id:
string
ID of the Dynamic SKU Property.
-
name:
string
Name of the Dynamic SKU Property.
-
propertyType:
string
Type that indicates whether it is a base or a custom SKU property,
-
value:
string
Value of the Dynamic SKU Property.
Nested Schema : description
Type:
objectcontains detailed info
Show Source
-
productIds:
array productIds
list of product id's
-
skuIds:
array skuIds
list of sku id's
Example Response (application/json)
{
"returnRequestStatus":"Full return",
"isExchangeRequest":false,
"returnItems":[
{
"quantityReturned":2,
"deactivationDate":"2018-06-27T12:59:59Z",
"dynamicProperties":[
{
"id":"ReferralCode",
"label":"ReferralCode",
"value":null
},
{
"id":"OfferEndsDate",
"label":"OfferEndsDate",
"value":"2020-07-02T03:42:42.962Z"
},
{
"id":"Discount",
"label":"Discount",
"value":0
},
{
"id":"GiftWrapping",
"label":"Gift Wrapping",
"value":false
},
{
"id":"CustomMessage",
"label":"Custom Message",
"value":null
},
{
"id":"name",
"label":"Name on product(Mug)",
"value":"My name"
},
{
"id":"ShippingInstructions",
"label":"Shipping Instructions",
"value":null
}
],
"displayName":"Playstation",
"externalData":[
],
"billingProfileId":"billingProfile-123",
"billingAccountId":"billingAcc-123",
"orderDiscountShare":0,
"childItems":[
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":2,
"productId":"prod10040",
"displayName":"Super Smash Brothers Brawl",
"externalData":[
],
"parentAssetKey":"123456",
"billingProfileId":"billingProfile-123",
"billingAccountId":"billingAcc-123",
"childItems":[
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":1,
"productId":"prod10039",
"displayName":"Wii Music",
"externalData":[
],
"parentAssetKey":"23456",
"billingProfileId":"billingProfile-123",
"billingAccountId":"billingAcc-123",
"rootAssetKey":"12345",
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10047",
"assetKey":"34567",
"route":"product/prod10039",
"customerAccountId":"customerAcc-123",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123",
"asset":false
}
],
"rootAssetKey":"123456",
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10041",
"assetKey":"23456",
"route":"product/prod10040",
"customerAccountId":"customerAcc-123",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123",
"asset":false
},
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":1,
"productId":"prod10038",
"displayName":"Wii Music",
"externalData":[
],
"parentAssetKey":"12345",
"billingProfileId":"billingProfile-123",
"billingAccountId":"billingAcc-123",
"rootAssetKey":"12345",
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10042",
"assetKey":"85748",
"route":"product/prod10038",
"customerAccountId":"customerAcc-123",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123",
"asset":false
}
],
"skuOptionInfo":[
],
"configuratorId":"12345677",
"assetKey":"12345",
"quantityAvailableForReturn":3,
"commerceItemId":"ci9000467",
"unAdjustedRefundAmount":25,
"suggestedShippingRefund":5.83,
"price":115,
"returnReason":"Incorrect Item",
"actionCode":"Add",
"promotionAdjustments":[
],
"serviceId":"service-123",
"quantityReceived":1,
"dispositionReason":{
"displayKey":"rejectedWithRefund",
"displayName":"Rejected With Refund"
},
"serviceAccountId":"serviceAcc-123",
"unitPrice":25,
"quantityToReturn":1,
"comments":null,
"productId":"prod10013",
"returnItemId":"300002",
"quantityToReceive":0,
"suggestedTaxRefund":2.01,
"shippingGroupId":"sg80417",
"parentAssetKey":null,
"manualAdjustmentShare":0,
"rootAssetKey":null,
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10030",
"skuProperties":[
{
"propertyType":"sku-base",
"name":"Name",
"id":"displayName",
"value":null
},
{
"propertyType":"sku-base",
"name":"Id",
"id":"id",
"value":"camerasku_1_1"
},
{
"propertyType":"sku-custom",
"name":"dynamicskuprop1",
"id":"dynamicskuprop1",
"value":"dynamicskuprop1"
}
],
"customerAccountId":"customerAcc-123",
"quantityShipped":5,
"adjustedPromotionReferences":"",
"additionalProperties":{
"property_2":"value_2",
"property_1":"value_1"
},
"activationDate":"2017-06-27T15:30:00Z",
"asset":false,
"actualRefundAmount":25,
"suggestedRefundAmount":25
}
],
"profileInfo":{
"lastName":"Anderson",
"firstName":"Kim",
"organization":{
"name":"Oracle India Pvt Ltd",
"id":"oracle"
},
"middleName":null,
"email":"kim@example.com"
},
"returnLabel":"return label 1",
"isManuallyAdjusted":false,
"authorizationNumber":"100001",
"orderInfo":{
"originOfOrder":"contactCenter",
"priceInfo":{
"total":156.82,
"amount":110.2,
"shipping":35,
"isTaxIncluded":false,
"tax":23.31,
"subTotal":200,
"orderDiscountAmount":2,
"currencyCode":"USD",
"totalWithoutTax":129.89
},
"recurringChargePriceInfo":{
"amount":20,
"total":20,
"shipping":0,
"subTotalByFrequency":[
{
"amount":20,
"frequency":"Monthly"
}
],
"taxByFrequency":[
{
"amount":0,
"frequency":"Monthly"
}
],
"tax":0,
"subTotal":20,
"currencyCode":"USD",
"totalWithoutTax":20
},
"orderId":"o10042",
"priceListGroup":{
"deleted":false,
"displayName":"UsDollar",
"repositoryId":"UsDollar",
"listPriceList":{
"repositoryId":"listPrices"
},
"active":true,
"salePriceList":{
"repositoryId":"salePrices"
},
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"hi_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"356"
},
"id":"UsDollar",
"locale":"hi_US",
"shippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
}
},
"siteId":"siteUS",
"creationDate":"2015-05-16T04:50:53.000Z",
"submittedDate":"2015-06-16T04:50:53.000Z"
},
"refundInfo":{
"shippingTaxRefund":2,
"suggestedTaxRefund":2.01,
"suggestedTotalRefund":32.84,
"actualShippingRefund":5.83,
"actualTaxRefund":2.01,
"otherRefund":0,
"refundDue":32.84,
"suggestedShippingRefund":5.83,
"returnFee":0,
"suggestedOrderRefund":25,
"appeasementRefundAdjustment":-15.3,
"unAdjustedRefundSubtotal":25,
"secondaryCurrencyAppeasementRefundAdjustment":0
},
"isSetteled":false,
"promotionAdjustments":{
"promotionAdjustmentsCount":0,
"orderPromotionValueAdjustments":[
],
"totalOrderDiscountAdjustment":0,
"nonReturnItemCostAdjustment":[
],
"itemPromotionValueAdjustments":[
],
"manyToManyPromotionCouponAdjustment":{
}
},
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagentui/v1/returnRequests/300002"
}
],
"additionalProperties":{
"property2":"tag",
"property":"display"
},
"state":{
"displayKey":"FULL_RETURN",
"displayName":"Full return"
},
"quoteInfo":{
"providerNote":null,
"notes":[
{
"providerDate":"2016-11-25T13:33:48.000Z",
"providerNote":"The quote is approved as per the request",
"profileType":null,
"profileId":"se-570031"
},
{
"profileType":null,
"profileId":"se-570031",
"requestDate":"2016-10-25T13:33:48.000Z",
"requesterNote":"provide 10 percent off on the total quantity"
}
],
"rejectionDate":null,
"requestDate":"2016-10-25T13:33:48.000Z",
"errorInfo":null,
"externalID":null,
"rejectionNote":null,
"quoteDate":"2016-10-25T13:35:32.000Z",
"expirationDate":"2026-04-28T18:53:48.000Z"
},
"trackingNumber":[
"http://localhost:9080/trackingNumber",
"http://localhost:9080/trackingNumber2"
],
"operation":"refund",
"paymentReversalInfo":[
{
"paymentGroupId":"pg10042",
"refundType":"tokenizedCreditCard",
"amount":32.84,
"creditCardInfo":{
"cardNumber":"xxxxxxxxxxxx1111"
},
"creditCardType":null,
"reversalMethod":"Card Payment Reversal",
"maxRefundAmount":156.82
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|100094|Organization passed in the header is currently inactive|
|100095|The order or return request does not belong to the current organization of the shopper profile|
|100096|The organization associated to the order or return request was deleted / does not exist|
|100097|The organization associated to the order or return request is currently inactive|
|100098|Current operation is being performed in an organization context and the shopper profile is not associated to any organization|
|100099|Current operation is being performed in an organization context and the order or return request does not belong to any organization|
|200127|Internal error occurred.|
|200131|Return Request Id passed in is null.|
|200132|Return Request is not in pending refund state.|
|30015|SiteId passed in x-ccsite header is currently inactive|
|30014|SiteId passed in x-ccsite header is invalid or the site was deleted|
|30020|The Site to which the order belongs was deleted|
|30021|The Site to which the order belongs is currently inactive|
|100101|The shopper profile does not belong to organization passed in the header|
|100102|Organization passed in the header is invalid or does not exist|
|30019|SiteId passed in x-ccsite header is not related to the order being worked upon|
Root Schema : errorModel
Type:
Show Source
object-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
arrayAn optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code