updateReturnRequest
put
/ccagent/v1/returnRequests/{id}
Update Return Request. It updates the returnRequest based on the operation value. Operation value can be any of receiveReturns/initiateRefund/adjustRefundAmounts/markManualRefund/markAsComplete. Updates details of items received against a return request with operation set as 'receiveReturns'.Additonally takes x-ccsite header. If the site information is not provided by default it takes the order site. Optionally takes X-CCOrganization header which is a JSON field with organization ID as value.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
string
Required:true
Return Request Id.
Header Parameters
- X-CCOrganization
-
Type:
string
The organization Id to which the order belongs- x-ccsite
Type:string
the site id on which the orders is laced
Body Parameter
Root Schema : updateReturnRequest_request
{
"op":"receiveReturns",
"returnItems":[
{
"returnItemId":"100003",
"dispositionReason":"acceptedWithRefund",
"quantityReceived":1
}
]
}
- adjustedShippingRefund
-
Type:
number
Adjusted Shipping refund amount. Related Endpoint Operations - AdjustRefundAmounts - adjustedTaxRefund
-
Type:
number
Adjusted item refund amount. Related Endpoint Operations - AdjustRefundAmounts - comment
-
Type:
string
Comments at returnRequest level. Related Endpoint Operations - AdjustRefundAmounts, MarkAsComplete - op
-
Type:
string
Required:true
Specify the operation to be performed. Related Endpoint Operations - ReceiveReturns, InitiateRefund, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - otherRefund
-
Type:
number
Adjusted Other refund amount. Related Endpoint Operations - AdjustRefundAmounts - returnFee
-
Type:
number
Adjusted return fee amount. Related Endpoint Operations - AdjustRefundAmounts - returnItems
-
Type:
array
returnItemsRequired:true
Additional Properties Allowed:List of returnable Items. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts - returnRequestId
-
Type:
string
Id of the return Request. Related Endpoint Operations - InitiateRefund
Nested Schema : returnItems
Nested Schema : items
Type:
object
- dispositionReason
-
Type:
string
Disposition Reason for Return Item - quantityReceived
-
Type:
number
Quantity Received - returnItemId
-
Type:
string
Id of the Return Item.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateReturnRequest_response
- isExchangeRequest
-
Type:
boolean
Either it is exchange / return request. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund - isManuallyAdjusted
-
Type:
boolean
Manually Adjusted Return Request. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - isSetteled
-
Type:
boolean
Settled Return Request. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - isSubmitExchangeOrderAllowed
-
Type:
boolean
Indicates whether submit exchange order allowed or not.It will get populated only in exchange flow. Related Endpoint Operations - ReceiveReturns - operation
-
Type:
string
The corresponding operation. Related Endpoint Operations - MarkManualRefund, MarkAsComplete - orderInfo
-
Type:
object
orderInfoAdditional Properties Allowed:Order Information. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - paymentReversalInfo
-
Type:
object
paymentReversalInfoAdditional Properties Allowed:Payment Reversal Info for Order. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - profileInfo
-
Type:
object
profileInfoAdditional Properties Allowed:Profile Information for the order. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts - promotionAdjustments
-
Type:
object
promotionAdjustmentsAdditional Properties Allowed:Total promotions at Return item and Order level. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - quoteInfo
-
Type:
object
quoteInfoAdditional Properties Allowed:the quote information of the order. Related Endpoint Operations - ReceiveReturns, MarkManualRefund, MarkAsComplete - refundInfo
-
Type:
object
refundInfoAdditional Properties Allowed:Refund Information at the returnRequest Level. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - returnItems
-
Type:
array
returnItemsAdditional Properties Allowed:List of returnable Items. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - returnRequestStatus
-
Type:
string
Status of Return Request. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete - state
-
Type:
string
The corresponding operation. Related Endpoint Operations - MarkManualRefund, MarkAsComplete - submitExchangeAllowedValidationMessage
-
Type:
object
submitExchangeAllowedValidationMessageAdditional Properties Allowed:submitExchangeAllowedValidationMessage will come in json response if isSubmitExchangeOrderAllowed property is false. Related Endpoint Operations - ReceiveReturns
Nested Schema : orderInfo
Type:
object
Order Information. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete
- creationDate
-
Type:
string
Date on which the Order was created. - orderId
-
Type:
string
Commerce id for this order. - priceInfo
-
Type:
object
priceInfoAdditional Properties Allowed:Price information of the order. - siteId
-
Type:
string
Site Id on which the Order was placed. - submittedDate
-
Type:
string
Date on which the Order was submitted.
Nested Schema : paymentReversalInfo
Type:
object
Payment Reversal Info for Order. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete
- creditCardInfo
-
Type:
object
creditCardInfoAdditional Properties Allowed:Credit Card Details. - reversalMethod
-
Type:
string
Payment Reversal Method
Nested Schema : profileInfo
Type:
object
Profile Information for the order. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts
-
Type:
string
Email address of the profile - firstName
-
Type:
string
First name of profile. - lastName
-
Type:
string
Last name of profile. - middleName
-
Type:
string
Middle name of profile.
Nested Schema : promotionAdjustments
Type:
object
Total promotions at Return item and Order level. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete
- itemPromotionValueAdjustments
-
Type:
object
itemPromotionValueAdjustmentsAdditional Properties Allowed:Item level promotion adjustments - nonReturnItemCostAdjustment
-
Type:
object
nonReturnItemCostAdjustmentAdditional Properties Allowed:The cost adjustment for item which are not returned. - orderPromotionValueAdjustments
-
Type:
object
orderPromotionValueAdjustmentsAdditional Properties Allowed:Order Level promotion adjustments - promotionAdjustmentsCount
-
Type:
integer
Count of the total number of promotions applied - totalOrderDiscountAdjustment
-
Type:
number
The total change in order level promotion value adjustments due to the return
Nested Schema : quoteInfo
Type:
object
the quote information of the order. Related Endpoint Operations - ReceiveReturns, MarkManualRefund, MarkAsComplete
- errorInfo
-
Type:
array
errorInfoAdditional Properties Allowed:the array of errors, if any - expirationDate
-
Type:
string
the expiration date of the quoted order, if any - externalId
-
Type:
string
the external id for the quote - notes
-
Type:
array
notesAdditional Properties Allowed:the notes (history) for the order - providerNote
-
Type:
string
the provider note for the quoted order - quoteDate
-
Type:
number
the date the order was quoted in milliseconds - rejectionDate
-
Type:
string
the rejection date for an order whose quote has been rejected by user - rejectionNote
-
Type:
string
the rejection note for an order whose quote has been rejected by user - requestDate
-
Type:
string
the date when the quote was requested in ISO format
Nested Schema : refundInfo
Type:
object
Refund Information at the returnRequest Level. Related Endpoint Operations - ReceiveReturns, AdjustRefundAmounts, MarkManualRefund, MarkAsComplete
- actualShippingRefund
-
Type:
number
Actual Shipping Refund at Item level - actualTaxRefund
-
Type:
number
Actual Tax Refund at Item level - otherRefund
-
Type:
number
Other Refund - refundDue
-
Type:
number
Total Amount of the Refund - returnFee
-
Type:
number
ReturnFee - shippingTaxRefund
-
Type:
number
Shipping tax Refund of all Return Items - suggestedOrderRefund
-
Type:
number
Refund Amount of all Return Items - suggestedShippingRefund
-
Type:
number
Shipping Refund of all Return Items - suggestedTaxRefund
-
Type:
number
Tax Refund of all Return Items - totalRefund
-
Type:
number
Total sum of all the Refunds - unAdjustedRefundSubtotal
-
Type:
number
Refund SubTotal calculated as summation of unAdjustedRefundAmount for all return Items.
Nested Schema : returnItems
Nested Schema : submitExchangeAllowedValidationMessage
Type:
object
submitExchangeAllowedValidationMessage will come in json response if isSubmitExchangeOrderAllowed property is false. Related Endpoint Operations - ReceiveReturns
- description
-
Type:
object
descriptionAdditional Properties Allowed:contains detailed info - errorCode
-
Type:
string
error code - message
-
Type:
string
message string
Nested Schema : priceInfo
Type:
object
Price information of the order.
- amount
-
Type:
number
The raw number that represents the price. - currencyCode
-
Type:
string
Indicates the currency of the price. For example, USD indicates that the price is in US dollars. - isTaxIncluded
-
Type:
boolean
Indicates if tax is included in item price - orderDiscountAmount
-
Type:
number
Total order Discount Amount. - shipping
-
Type:
number
The shipping cost of the order. - subTotal
-
Type:
number
The subtotal of the order before applying order-level promotions. - tax
-
Type:
number
The tax on the order. - total
-
Type:
number
The current working total, including all promotions, tax, and billing costs. - totalWithoutTax
-
Type:
number
The total cost without Tax.
Nested Schema : creditCardInfo
Nested Schema : itemPromotionValueAdjustments
Type:
object
Item level promotion adjustments
- adjustedAmount
-
Type:
number
Amount adjusted as a result of applied promotion. - couponCode
-
Type:
string
Code of the coupon applied. - itemPromotionRefNo
-
Type:
string
Reference to the Item Level Promotion. - promotionAdjustmentType
-
Type:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed. - promotionDesc
-
Type:
string
Description of promotion - promotionId
-
Type:
string
Id of the promotion
Nested Schema : nonReturnItemCostAdjustment
Type:
object
The cost adjustment for item which are not returned.
- amountAdjustment
-
Type:
number
Amount adjusted as result of item returned. - commerceItemId
-
Type:
string
Id of the commerce Item. - manualAdjustmentShareAdjustment
-
Type:
number
Manual Adjustment made. - orderDiscountShareAdjustment
-
Type:
number
The adjustment of order discount. - quantityAdjusted
-
Type:
number
The number of item adjusted. - shippingGroupId
-
Type:
string
Id of the shipping group. - shippingShareAdjustment
-
Type:
number
Adjustment made on the shipping group. - taxShareAdjustment
-
Type:
number
Adjustment of the applied Tax.
Nested Schema : orderPromotionValueAdjustments
Type:
object
Order Level promotion adjustments
- adjustedAmount
-
Type:
number
Amount adjusted as a result of applied promotion. - couponCode
-
Type:
string
Code of the coupon applied. - itemPromotionRefNo
-
Type:
string
Reference to the Item Level Promotion. - promotionAdjustmentType
-
Type:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed. - promotionDesc
-
Type:
string
Description of promotion - promotionId
-
Type:
string
Id of the promotion
Nested Schema : errorInfo
Nested Schema : notes
Nested Schema : items
Type:
object
- profileId
-
Type:
string
the profile id of the user - profileType
-
Type:
string
the profile type of the user that requested the quote - providerNote
-
Type:
string
the provider note for the quoted order - quoteDate
-
Type:
number
the date the order was quoted in milliseconds - rejectionDate
-
Type:
number
the rejection date for an order whose quote has been rejected by user - rejectionNote
-
Type:
string
the rejection note for an order whose quote has been rejected by user - requestDate
-
Type:
number
the date when the quote was requested in ISO format - requesterNote
-
Type:
string
the requester note
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the item by the configurator system. - activationDate
-
Type:
string
The activation date in ISO format. - actualRefundAmount
-
Type:
number
Actual Refund Amount at Item level - assetId
-
Type:
string
The asset ID corresponding to the current item. - billingAccountId
-
Type:
string
The billing account ID associated to the current item. - catRefId
-
Type:
string
Catalog Reference Id - childItems
-
Type:
array
childItemsAdditional Properties Allowed:Returned Item child items - comments
-
Type:
string
Comments at ReturnItem Level - commerceItemId
-
Type:
string
Commerce Id of the returned item - configuratorId
-
Type:
string
Configurator Id of the returned item - customerAccountId
-
Type:
string
The customer account ID associated to the current item. - deactivationDate
-
Type:
string
The deactivation date in ISO format. - displayName
-
Type:
string
Display Name of the Product - dispositionReason
-
Type:
object
dispositionReasonAdditional Properties Allowed:Disposition Reason - externalData
-
Type:
array
externalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - itemPromotionValueAdjustments
-
Type:
object
itemPromotionValueAdjustmentsAdditional Properties Allowed:Item level promotion adjustments. - manualAdjustmentShare
-
Type:
number
ManualAdjustmentShare for a returnItem - nonreturnable
-
Type:
boolean
Indicates whether an item is returnable or not - orderDiscountShare
-
Type:
number
OrderDiscountShare for a returnItem - price
-
Type:
number
Total price of the item - productId
-
Type:
string
Id of the return Item - quantityAvailableForReturn
-
Type:
number
Quantity Available - quantityReceived
-
Type:
number
Quantity Received - quantityReturned
-
Type:
number
Quantity Returned - quantityShipped
-
Type:
number
Quantity Shipped - quantityToReceive
-
Type:
number
Quantity To Return - quantityToReturn
-
Type:
number
Quantity To Return - returnItemId
-
Type:
string
Id of the return Item - returnReason
-
Type:
string
Reason to return an Item - serviceAccountId
-
Type:
string
The service account ID associated to the current item. - serviceId
-
Type:
string
The service ID associated to the current item. - shippingGroupId
-
Type:
string
Shipping group Id of the returned item - skuOptionInfo
-
Type:
array
skuOptionInfoAdditional Properties Allowed:Product Variant Information. - skuProperties
-
Type:
array
skuPropertiesAdditional Properties Allowed:Sku properties Information - suggestedRefundAmount
-
Type:
number
Refund Cost for a returnItem - suggestedShippingRefund
-
Type:
number
Shipping Refund for a returnItem - suggestedTaxRefund
-
Type:
number
Tax Refund for a returnItem - unAdjustedRefundAmount
-
Type:
number
Refund Amount of the item excluding orderDiscountShare and ManualAdjustmentShare - unitPrice
-
Type:
number
Unit price of the item
Nested Schema : childItems
Nested Schema : dispositionReason
Type:
object
Disposition Reason
- displayKey
-
Type:
string
Key of the disposition Reason - displayName
-
Type:
string
Name of the disposition Reason
Nested Schema : externalData
Nested Schema : itemPromotionValueAdjustments
Type:
object
Item level promotion adjustments.
- adjustedAmount
-
Type:
number
Amount adjusted as a result of applied promotion. - couponCode
-
Type:
string
Code of the coupon applied. - itemPromotionRefNo
-
Type:
string
Reference to the Item Level Promotion. - promotionAdjustmentType
-
Type:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed. - promotionDesc
-
Type:
string
Description of promotion - promotionId
-
Type:
string
Id of the promotion
Nested Schema : skuOptionInfo
Nested Schema : skuProperties
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the item by the configurator system. - activationDate
-
Type:
string
The activation date in ISO format. - assetId
-
Type:
string
The asset ID corresponding to the current item. - billingAccountId
-
Type:
string
The billing account ID associated to the current item. - catRefId
-
Type:
string
Catalog Reference Id of the child Item - childItems
-
Type:
array
childItemsAdditional Properties Allowed:Returned Item child items - customerAccountId
-
Type:
string
The customer account ID associated to the current item. - deactivationDate
-
Type:
string
The deactivation date in ISO format. - displayName
-
Type:
string
Product display name of the sub sku commerce item - externalData
-
Type:
array
externalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - productId
-
Type:
string
Product Id of teh - quantity
-
Type:
number
quantity of the child Item - route
-
Type:
string
Product path - selectedOptions
-
Type:
array
selectedOptionsAdditional Properties Allowed:Child Product Variant Information. - serviceAccountId
-
Type:
string
The service account ID associated to the current item. - serviceId
-
Type:
string
The service ID associated to the current item.
Nested Schema : childItems
Nested Schema : externalData
Nested Schema : selectedOptions
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the item by the configurator system. - activationDate
-
Type:
string
The activation date in ISO format. - assetId
-
Type:
string
The asset ID corresponding to the current item. - billingAccountId
-
Type:
string
The billing account ID associated to the current item. - catRefId
-
Type:
string
Catalog Reference Id of the child Item - customerAccountId
-
Type:
string
The customer account ID associated to the current item. - deactivationDate
-
Type:
string
The deactivation date in ISO format. - displayName
-
Type:
string
Product display name of the sub sku commerce item - externalData
-
Type:
array
externalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - productId
-
Type:
string
Product Id of teh - quantity
-
Type:
number
quantity of the child Item - route
-
Type:
string
Product path - selectedOptions
-
Type:
array
selectedOptionsAdditional Properties Allowed:Child Product Variant Information. - serviceAccountId
-
Type:
string
The service account ID associated to the current item. - serviceId
-
Type:
string
The service ID associated to the current item.
Nested Schema : externalData
Nested Schema : selectedOptions
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the externalData item by the configurator system. - name
-
Type:
string
The name to be associated with the externalData item. - values
-
Type:
object
valuesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
- dynamic_property_key
-
Type:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object
- optionName
-
Type:
string
Name of the Dynamic attribute. - optionValue
-
Type:
string
Value of the Dynamic attribute.
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the externalData item by the configurator system. - name
-
Type:
string
The name to be associated with the externalData item. - values
-
Type:
object
valuesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
- dynamic_property_key
-
Type:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object
- optionName
-
Type:
string
Name of the Dynamic attribute. - optionValue
-
Type:
string
Value of the Dynamic attribute.
Nested Schema : items
Type:
object
- actionCode
-
Type:
string
The action code that has been set on the externalData item by the configurator system. - name
-
Type:
string
The name to be associated with the externalData item. - values
-
Type:
object
valuesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
- dynamic_property_key
-
Type:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object
- optionName
-
Type:
string
Name of the Dynamic attribute - optionValue
-
Type:
string
Value of the Dynamic attribute
Nested Schema : items
Type:
object
- id
-
Type:
string
ID of the Dynamic SKU Property. - name
-
Type:
string
Name of the Dynamic SKU Property. - propertyType
-
Type:
string
Type that indicates whether it is a base or a custom SKU property, - value
-
Type:
string
Value of the Dynamic SKU Property.
Nested Schema : description
Type:
object
contains detailed info
- productIds
-
Type:
array
productIdsAdditional Properties Allowed:list of product id's - skuIds
-
Type:
array
skuIdsAdditional Properties Allowed:list of sku id's
Nested Schema : productIds
Nested Schema : skuIds
Example application/json
{
"returnRequestStatus":"Full return",
"isManuallyAdjusted":false,
"isExchangeRequest":false,
"returnItems":[
{
"quantityReturned":1,
"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":"OM-D E-M10 Digital Compact System Camera",
"externalData":[
],
"billingAccountId":"billingAcc-123",
"childItems":[
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":2,
"productId":"prod10040",
"displayName":"Super Smash Brothers Brawl",
"externalData":[
],
"billingAccountId":"billingAcc-123",
"childItems":[
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":1,
"productId":"prod10039",
"displayName":"Wii Music",
"externalData":[
],
"billingAccountId":"billingAcc-123",
"catRefId":"sku10049",
"route":"product/prod10039",
"customerAccountId":"customerAcc-123",
"assetId":"asset10001",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123"
}
],
"catRefId":"sku10041",
"route":"product/prod10040",
"customerAccountId":"customerAcc-123",
"assetId":"asset10001",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123"
},
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":1,
"productId":"prod10038",
"displayName":"Wii Music",
"externalData":[
],
"billingAccountId":"billingAcc-123",
"catRefId":"sku10042",
"route":"product/prod10038",
"customerAccountId":"customerAcc-123",
"assetId":"asset10001",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123"
}
],
"configuratorId":"12345677",
"skuOptionInfo":[
{
"optionValue":"Tan",
"optionName":"color"
},
{
"optionValue":"30.8-megapixels",
"optionName":"resolution"
}
],
"quantityAvailableForReturn":0,
"commerceItemId":"ci9000467",
"suggestedShippingRefund":35,
"assetId":"asset10001",
"price":200,
"returnReason":"Incorrect Item",
"actionCode":"Add",
"promotionAdjustments":[
],
"serviceId":"service-123",
"quantityReceived":1,
"dispositionReason":{
"displayKey":"acceptedWithRefund",
"displayName":"Accepted With Refund"
},
"serviceAccountId":"serviceAcc-123",
"unitPrice":200,
"quantityToReturn":1,
"comments":null,
"productId":"camera_1",
"returnItemId":"100003",
"quantityToReceive":0,
"shippingGroupId":"sg80417",
"suggestedTaxRefund":23.31,
"catRefId":"camerasku_1_5",
"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":1,
"adjustedPromotionReferences":"",
"activationDate":"2017-06-27T15:30:00Z",
"actualRefundAmount":200,
"suggestedRefundAmount":200
}
],
"orderInfo":{
"priceInfo":{
"total":256.31,
"amount":198,
"shipping":35,
"isTaxIncluded":false,
"tax":23.31,
"subTotal":200,
"orderDiscountAmount":2,
"currencyCode":"USD",
"totalWithoutTax":189.9
},
"orderId":"o10423",
"siteId":"siteUS",
"creationDate":"2015-03-27 15:53:01.0",
"submittedDate":"2015-03-27 15:54:01.0"
},
"refundInfo":{
"refundDue":256.31,
"suggestedShippingRefund":35,
"returnFee":0,
"suggestedOrderRefund":200,
"suggestedTaxRefund":23.31,
"suggestedTotalRefund":256.31,
"actualShippingRefund":35,
"actualTaxRefund":23.31,
"otherRefund":0
},
"isSetteled":false,
"promotionAdjustments":{
"promotionAdjustmentsCount":1,
"orderPromotionValueAdjustments":[
{
"adjustedAmount":2,
"promotionAdjustmentType":"Removed",
"promotionDesc":"Order Discount - SAVE$2ON20 - Coupon",
"couponCode":"SAVE2ON20",
"promotionId":"explicitOrderDiscount2on20"
}
],
"totalOrderDiscountAdjustment":2,
"nonReturnItemCostAdjustment":[
],
"itemPromotionValueAdjustments":[
],
"manyToManyPromotionCouponAdjustment":{
"SAVE2ON20":[
{
"adjustedAmount":2,
"promotionAdjustmentType":"Removed",
"promotionDesc":"Order Discount - SAVE$2ON20 - Coupon",
"promotionId":"explicitOrderDiscount2on20"
}
]
}
},
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagentui/v1/returnRequests/100003"
}
],
"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"
},
"paymentReversalInfo":{
"creditCardInfo":{
"cardNumber":"xxxxxxxxxxxx1111"
},
"reversalMethod":"Card Payment Reversal"
}
}
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|
|200219|{0} is an inactive reason.|
|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.|
|200218|{0} is an invalid reason.|
|200126|Invalid Input Parameter.|
|200125|Input passed in is null.|
|200131|Return Request Id passed in is null.|
|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|
|30019|SiteId passed in x-ccsite header is not related to the order being worked upon|
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Request:
{ "op": "receiveReturns", "returnItems": [{ "returnItemId": "100003", "dispositionReason": "acceptedWithRefund", "quantityReceived": 1 }] }
Sample Response Payload returned by endpoint:
{ "returnRequestStatus": "Full return", "isManuallyAdjusted": false, "isExchangeRequest": false, "returnItems": [{ "quantityReturned": 1, "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": "OM-D E-M10 Digital Compact System Camera", "externalData": [], "billingAccountId": "billingAcc-123", "childItems": [ { "serviceAccountId": "serviceAcc-123", "deactivationDate": "2018-06-27T12:59:59Z", "quantity": 2, "productId": "prod10040", "displayName": "Super Smash Brothers Brawl", "externalData": [], "billingAccountId": "billingAcc-123", "childItems": [{ "serviceAccountId": "serviceAcc-123", "deactivationDate": "2018-06-27T12:59:59Z", "quantity": 1, "productId": "prod10039", "displayName": "Wii Music", "externalData": [], "billingAccountId": "billingAcc-123", "catRefId": "sku10049", "route": "product/prod10039", "customerAccountId": "customerAcc-123", "assetId": "asset10001", "selectedOptions": [], "actionCode": "Add", "activationDate": "2017-06-27T15:30:00Z", "serviceId": "service-123" }], "catRefId": "sku10041", "route": "product/prod10040", "customerAccountId": "customerAcc-123", "assetId": "asset10001", "selectedOptions": [], "actionCode": "Add", "activationDate": "2017-06-27T15:30:00Z", "serviceId": "service-123" }, { "serviceAccountId": "serviceAcc-123", "deactivationDate": "2018-06-27T12:59:59Z", "quantity": 1, "productId": "prod10038", "displayName": "Wii Music", "externalData": [], "billingAccountId": "billingAcc-123", "catRefId": "sku10042", "route": "product/prod10038", "customerAccountId": "customerAcc-123", "assetId": "asset10001", "selectedOptions": [], "actionCode": "Add", "activationDate": "2017-06-27T15:30:00Z", "serviceId": "service-123" } ], "configuratorId": "12345677", "skuOptionInfo": [ { "optionValue": "Tan", "optionName": "color" }, { "optionValue": "30.8-megapixels", "optionName": "resolution" } ], "quantityAvailableForReturn": 0, "commerceItemId": "ci9000467", "suggestedShippingRefund": 35, "assetId": "asset10001", "price": 200, "returnReason": "Incorrect Item", "actionCode": "Add", "promotionAdjustments": [], "serviceId": "service-123", "quantityReceived": 1, "dispositionReason": { "displayKey": "acceptedWithRefund", "displayName": "Accepted With Refund" }, "serviceAccountId": "serviceAcc-123", "unitPrice": 200, "quantityToReturn": 1, "comments": null, "productId": "camera_1", "returnItemId": "100003", "quantityToReceive": 0, "shippingGroupId": "sg80417", "suggestedTaxRefund": 23.31, "catRefId": "camerasku_1_5", "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": 1, "adjustedPromotionReferences": "", "activationDate": "2017-06-27T15:30:00Z", "actualRefundAmount": 200, "suggestedRefundAmount": 200 }], "orderInfo": { "priceInfo": { "total": 256.31, "amount": 198, "shipping": 35, "isTaxIncluded": false, "tax": 23.31, "subTotal": 200, "orderDiscountAmount": 2, "currencyCode": "USD", "totalWithoutTax": 189.9 }, "orderId": "o10423", "siteId": "siteUS", "creationDate": "2015-03-27 15:53:01.0", "submittedDate": "2015-03-27 15:54:01.0" }, "refundInfo": { "refundDue": 256.31, "suggestedShippingRefund": 35, "returnFee": 0, "suggestedOrderRefund": 200, "suggestedTaxRefund": 23.31, "suggestedTotalRefund": 256.31, "actualShippingRefund": 35, "actualTaxRefund": 23.31, "otherRefund": 0 }, "isSetteled": false, "promotionAdjustments": { "promotionAdjustmentsCount": 1, "orderPromotionValueAdjustments": [{ "adjustedAmount": 2, "promotionAdjustmentType": "Removed", "promotionDesc": "Order Discount - SAVE$2ON20 - Coupon", "couponCode": "SAVE2ON20", "promotionId": "explicitOrderDiscount2on20" }], "totalOrderDiscountAdjustment": 2, "nonReturnItemCostAdjustment": [], "itemPromotionValueAdjustments": [], "manyToManyPromotionCouponAdjustment": {"SAVE2ON20": [{ "adjustedAmount": 2, "promotionAdjustmentType": "Removed", "promotionDesc": "Order Discount - SAVE$2ON20 - Coupon", "promotionId": "explicitOrderDiscount2on20" }]} }, "links": [{ "rel": "self", "href": "http://localhost:9080/ccagentui/v1/returnRequests/100003" }], "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" }, "paymentReversalInfo": { "creditCardInfo": {"cardNumber": "xxxxxxxxxxxx1111"}, "reversalMethod": "Card Payment Reversal" } }