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
-
Type:
stringRequired:trueId of returnRequest.
Header Parameters
- X-CCOrganization
-
Type:
stringThe organization Id to which the order belongs
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getReturnRequest_response
- isExchangeRequest
-
Type:
booleanEither it is exchange / return request - isManuallyAdjusted
-
Type:
booleanManually Adjusted Return Request - isSetteled
-
Type:
booleanSettled Return Request - isSubmitExchangeOrderAllowed
-
Type:
booleanIndicates whether submit exchange order allowed or not.It will get populated only in exchange flow. - orderInfo
-
Type:
objectorderInfoAdditional Properties Allowed:Order Information. - paymentReversalInfo
-
Type:
arraypaymentReversalInfoAdditional Properties Allowed:Payment Reversal Info for Order. - profileInfo
-
Type:
objectprofileInfoAdditional Properties Allowed:Profile Information for the order. - promotionAdjustments
-
Type:
objectpromotionAdjustmentsAdditional Properties Allowed:Total promotions at Return item and Order level - quoteInfo
-
Type:
objectquoteInfoAdditional Properties Allowed:the quote information of the order - refundInfo
-
Type:
objectrefundInfoAdditional Properties Allowed:Refund Information at the returnRequest Level. - returnItems
-
Type:
arrayreturnItemsAdditional Properties Allowed:List of returnable Items - returnRequestStatus
-
Type:
stringStatus of Return Request - state
-
Type:
objectstateAdditional Properties Allowed:state - submitExchangeAllowedValidationMessage
-
Type:
objectsubmitExchangeAllowedValidationMessageAdditional Properties Allowed:submitExchangeAllowedValidationMessage will come in json response if isSubmitExchangeOrderAllowed property is false
Nested Schema : orderInfo
Type:
objectOrder Information.
- creationDate
-
Type:
stringDate on which the Order was created. - orderId
-
Type:
stringCommerce id for this order. - priceInfo
-
Type:
objectpriceInfoAdditional Properties Allowed:Price information of the order. - priceListGroup
-
Type:
objectpriceListGroupAdditional Properties Allowed:PriceList group of the order. - siteId
-
Type:
stringSite Id on which the Order was placed. - submittedDate
-
Type:
stringDate on which the Order was submitted.
Nested Schema : paymentReversalInfo
Nested Schema : profileInfo
Type:
objectProfile Information for the order.
-
Type:
stringEmail address of the profile - firstName
-
Type:
stringFirst name of profile. - lastName
-
Type:
stringLast name of profile. - middleName
-
Type:
stringMiddle name of profile. - organization
-
Type:
arrayorganizationAdditional Properties Allowed:The Organization associated with the B2B customer profile.
Nested Schema : promotionAdjustments
Type:
objectTotal promotions at Return item and Order level
- itemPromotionValueAdjustments
-
Type:
objectitemPromotionValueAdjustmentsAdditional Properties Allowed:Item level promotion adjustments - nonReturnItemCostAdjustment
-
Type:
objectnonReturnItemCostAdjustmentAdditional Properties Allowed:The cost adjustment for item which are not returned. - orderPromotionValueAdjustments
-
Type:
objectorderPromotionValueAdjustmentsAdditional Properties Allowed:Order Level promotion adjustments - promotionAdjustmentsCount
-
Type:
integerCount of the total number of promotions applied - totalOrderDiscountAdjustment
-
Type:
numberThe total change in order level promotion value adjustments due to the return
Nested Schema : quoteInfo
Type:
objectthe quote information of the order
- errorInfo
-
Type:
arrayerrorInfoAdditional Properties Allowed:the array of errors, if any - expirationDate
-
Type:
stringthe expiration date of the quoted order, if any - externalId
-
Type:
stringthe external id for the quote - notes
-
Type:
arraynotesAdditional Properties Allowed:the notes (history) for the order - providerNote
-
Type:
stringthe provider note for the quoted order - quoteDate
-
Type:
numberthe date the order was quoted in milliseconds - rejectionDate
-
Type:
stringthe rejection date for an order whose quote has been rejected by user - rejectionNote
-
Type:
stringthe rejection note for an order whose quote has been rejected by user - requestDate
-
Type:
stringthe date when the quote was requested in ISO format
Nested Schema : refundInfo
Type:
objectRefund Information at the returnRequest Level.
- actualShippingRefund
-
Type:
numberActual Shipping Refund at Item level - actualTaxRefund
-
Type:
numberActual Tax Refund at Item level - otherRefund
-
Type:
numberOther Refund - refundDue
-
Type:
numberTotal Amount of the Refund - returnFee
-
Type:
numberReturnFee - suggestedOrderRefund
-
Type:
numberRefund Amount of all Return Items - suggestedShippingRefund
-
Type:
numberShipping Refund of all Return Items - suggestedTaxRefund
-
Type:
numberTax Refund of all Return Items - totalRefund
-
Type:
numberTotal sum of all the Refunds - unAdjustedRefundSubtotal
-
Type:
numberRefund SubTotal calculated as summation of unAdjustedRefundAmount for all return Items.
Nested Schema : returnItems
Nested Schema : state
Type:
objectstate
- displayKey
-
Type:
stringKey of returned request status. - displayName
-
Type:
stringTranslated Value of returned request status.
Nested Schema : submitExchangeAllowedValidationMessage
Type:
objectsubmitExchangeAllowedValidationMessage will come in json response if isSubmitExchangeOrderAllowed property is false
- description
-
Type:
objectdescriptionAdditional Properties Allowed:contains detailed info - errorCode
-
Type:
stringerror code - message
-
Type:
stringmessage string
Nested Schema : priceInfo
Type:
objectPrice information of the order.
- amount
-
Type:
numberThe raw number that represents the price. - currencyCode
-
Type:
stringIndicates the currency of the price. For example, USD indicates that the price is in US dollars. - isTaxIncluded
-
Type:
booleanIndicates if tax is included in item price - orderDiscountAmount
-
Type:
numberTotal order Discount Amount. - shipping
-
Type:
numberThe shipping cost of the order. - subTotal
-
Type:
numberThe subtotal of the order before applying order-level promotions. - tax
-
Type:
numberThe tax on the order. - total
-
Type:
numberThe current working total, including all promotions, tax, and billing costs. - totalWithoutTax
-
Type:
numberThe total cost without Tax.
Nested Schema : priceListGroup
Type:
objectPriceList group of the order.
- active
-
Type:
booleanActive status of pricelist group. - currency
-
Type:
objectcurrencyAdditional Properties Allowed:Currency of the PriceList group. - deleted
-
Type:
booleanPricelist group deleted status. - displayName
-
Type:
stringDisplay Name. - id
-
Type:
stringId. - listPriceList
-
Type:
objectlistPriceListAdditional Properties Allowed:Price List for list prices - locale
-
Type:
stringLocale. - repositoryId
-
Type:
stringRepository Id. - salePriceList
-
Type:
objectsalePriceListAdditional Properties Allowed:Price List for sale prices - shippingSurchargePriceList
-
Type:
objectshippingSurchargePriceListAdditional Properties Allowed:Price List for shipping surcharge prices
Nested Schema : currency
Type:
objectCurrency of the PriceList group.
- currencyCode
-
Type:
stringCurrency Code. - displayName
-
Type:
stringDisplay Name. - fractionalDigits
-
Type:
integerFractional Digits. - numericCode
-
Type:
stringNumeric Code. - repositoryId
-
Type:
stringRepository Id. - symbol
-
Type:
stringcurrency Symbol.
Nested Schema : listPriceList
Type:
objectPrice List for list prices
- repositoryId
-
Type:
stringRepository ID of the list prices
Nested Schema : salePriceList
Type:
objectPrice List for sale prices
- repositoryId
-
Type:
stringRepository ID of the sale prices
Nested Schema : shippingSurchargePriceList
Type:
objectPrice List for shipping surcharge prices
- repositoryId
-
Type:
stringRepository ID of the shipping surcharge prices
Nested Schema : items
Type:
object- amount
-
Type:
numberThe amount pertaining to the credit card - creditCardInfo
-
Type:
objectcreditCardInfoAdditional Properties Allowed:Credit Card Details. - creditCardType
-
Type:
stringThe type of the credit card - maxRefundAmount
-
Type:
numberThe maximum amount that can be refunded from the card - paymentGroupId
-
Type:
stringId of the payment group - refundType
-
Type:
stringType of the refund. For example this can be tokenized credit card - reversalMethod
-
Type:
stringPayment Reversal Method - state
-
Type:
stringThe state of the return request
Nested Schema : creditCardInfo
Nested Schema : organization
Nested Schema : items
Type:
object- id
-
Type:
stringThe id of the organization. - name
-
Type:
stringThe name of of the organization.
Nested Schema : itemPromotionValueAdjustments
Type:
objectItem level promotion adjustments
- adjustedAmount
-
Type:
numberAmount adjusted as a result of applied promotion. - couponCode
-
Type:
stringCode of the coupon applied. - itemPromotionRefNo
-
Type:
stringReference to the Item Level Promotion. - promotionAdjustmentType
-
Type:
stringType of promotion Adjustment. Possible values are Adjusted / Removed. - promotionDesc
-
Type:
stringDescription of promotion - promotionId
-
Type:
stringId of the promotion
Nested Schema : nonReturnItemCostAdjustment
Type:
objectThe cost adjustment for item which are not returned.
- amountAdjustment
-
Type:
numberAmount adjusted as result of item returned. - commerceItemId
-
Type:
stringId of the commerce Item. - manualAdjustmentShareAdjustment
-
Type:
numberManual Adjustment made. - orderDiscountShareAdjustment
-
Type:
numberThe adjustment of order discount. - quantityAdjusted
-
Type:
numberThe number of item adjusted. - shippingGroupId
-
Type:
stringId of the shipping group. - shippingShareAdjustment
-
Type:
numberAdjustment made on the shipping group. - taxShareAdjustment
-
Type:
numberAdjustment of the applied Tax.
Nested Schema : orderPromotionValueAdjustments
Type:
objectOrder Level promotion adjustments
- adjustedAmount
-
Type:
numberAmount adjusted as a result of applied promotion. - couponCode
-
Type:
stringCode of the coupon applied. - itemPromotionRefNo
-
Type:
stringReference to the Item Level Promotion. - promotionAdjustmentType
-
Type:
stringType of promotion Adjustment. Possible values are Adjusted / Removed. - promotionDesc
-
Type:
stringDescription of promotion - promotionId
-
Type:
stringId of the promotion
Nested Schema : errorInfo
Nested Schema : notes
Nested Schema : items
Type:
object- profileId
-
Type:
stringthe profile id of the user - profileType
-
Type:
stringthe profile type of the user that requested the quote - providerNote
-
Type:
stringthe provider note for the quoted order - quoteDate
-
Type:
numberthe date the order was quoted in milliseconds - rejectionDate
-
Type:
numberthe rejection date an order whose quote has been rejected by user - rejectionNote
-
Type:
stringthe rejection note for an order whose quote has been rejected by user - requestDate
-
Type:
numberthe date when the quote was requested in ISO format - requesterNote
-
Type:
stringthe requester note
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the item by the configurator system. - activationDate
-
Type:
stringThe activation date in ISO format. - actualRefundAmount
-
Type:
numberActual Refund Amount at Item level - adjustedPromotionReferences
-
Type:
stringReference to the Promotions linked to this returnItem - assetId
-
Type:
stringThe asset ID corresponding to the current item. - billingAccountId
-
Type:
stringThe billing account ID associated to the current item. - catRefId
-
Type:
stringCatalog Reference Id - childItems
-
Type:
arraychildItemsAdditional Properties Allowed:Returned Item child items - comments
-
Type:
stringComments at ReturnItem Level - commerceItemId
-
Type:
stringCommerce Id of the returned item - configuratorId
-
Type:
stringConfigurator Id of the returned item - customerAccountId
-
Type:
stringThe customer account ID associated to the current item. - deactivationDate
-
Type:
stringThe deactivation date in ISO format. - displayName
-
Type:
stringDisplay Name of the Product - dispositionReason
-
Type:
objectdispositionReasonAdditional Properties Allowed:Disposition Reason - dynamicProperties
-
Type:
arraydynamicPropertiesAdditional Properties Allowed:Array of custom properties at order line item level. - externalData
-
Type:
arrayexternalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - itemPromotionValueAdjustments
-
Type:
objectitemPromotionValueAdjustmentsAdditional Properties Allowed:Item level promotion adjustments. - manualAdjustmentShare
-
Type:
numberManualAdjustmentShare for a returnItem - nonreturnable
-
Type:
booleanIndicates whether the item is returnable or not - orderDiscountShare
-
Type:
numberOrderDiscountShare for a returnItem - price
-
Type:
numberTotal price of the item - productId
-
Type:
stringId of the return Item - quantityAvailableForReturn
-
Type:
numberQuantity Available - quantityReceived
-
Type:
numberQuantity Received - quantityReturned
-
Type:
numberQuantity Returned - quantityShipped
-
Type:
numberQuantity Shipped - quantityToReceive
-
Type:
numberQuantity To Return - quantityToReturn
-
Type:
numberQuantity To Return - returnItemId
-
Type:
stringId of the return Item - returnReason
-
Type:
stringReason to return an Item - serviceAccountId
-
Type:
stringThe service account ID associated to the current item. - serviceId
-
Type:
stringThe service ID associated to the current item. - shippingGroupId
-
Type:
stringShipping group Id of the returned item - skuOptionInfo
-
Type:
arrayskuOptionInfoAdditional Properties Allowed:Product Variant Information. - skuProperties
-
Type:
arrayskuPropertiesAdditional Properties Allowed:Sku properties Information - suggestedRefundAmount
-
Type:
numberRefund Cost for a returnItem - suggestedShippingRefund
-
Type:
numberShipping Refund for a returnItem - suggestedTaxRefund
-
Type:
numberTax Refund for a returnItem - unAdjustedRefundAmount
-
Type:
numberRefund Amount of the item excluding orderDiscountShare and ManualAdjustmentShare - unitPrice
-
Type:
numberUnit price of the item
Nested Schema : childItems
Nested Schema : dispositionReason
Type:
objectDisposition Reason
- displayKey
-
Type:
stringKey of the disposition Reason - displayName
-
Type:
stringName of the disposition Reason
Nested Schema : dynamicProperties
Nested Schema : externalData
Nested Schema : itemPromotionValueAdjustments
Type:
objectItem level promotion adjustments.
- adjustedAmount
-
Type:
numberAmount adjusted as a result of applied promotion. - couponCode
-
Type:
stringCode of the coupon applied. - itemPromotionRefNo
-
Type:
stringReference to the Item Level Promotion. - promotionAdjustmentType
-
Type:
stringType of promotion Adjustment. Possible values are Adjusted / Removed. - promotionDesc
-
Type:
stringDescription of promotion - promotionId
-
Type:
stringId of the promotion
Nested Schema : skuOptionInfo
Nested Schema : skuProperties
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the item by the configurator system. - activationDate
-
Type:
stringThe activation date in ISO format. - assetId
-
Type:
stringThe asset ID corresponding to the current item. - billingAccountId
-
Type:
stringThe billing account ID associated to the current item. - catRefId
-
Type:
stringCatalog Reference Id of the child Item - customerAccountId
-
Type:
stringThe customer account ID associated to the current item. - deactivationDate
-
Type:
stringThe deactivation date in ISO format. - displayName
-
Type:
stringProduct display name of the sub sku commerce item - externalData
-
Type:
arrayexternalDataAdditional Properties Allowed:External data to be associated with a commerce item, provided by a configurator system. - productId
-
Type:
stringProduct Id of teh - quantity
-
Type:
numberquantity of the child Item - route
-
Type:
stringProduct path - selectedOptions
-
Type:
arrayselectedOptionsAdditional Properties Allowed:Child Product Variant Information. - serviceAccountId
-
Type:
stringThe service account ID associated to the current item. - serviceId
-
Type:
stringThe service ID associated to the current item.
Nested Schema : externalData
Nested Schema : selectedOptions
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the externalData item by the configurator system. - name
-
Type:
stringThe name to be associated with the externalData item. - values
-
Type:
objectvaluesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
- dynamic_property_key
-
Type:
stringThis property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object- optionName
-
Type:
stringName of the Dynamic attribute. - optionValue
-
Type:
stringValue of the Dynamic attribute.
Nested Schema : items
Type:
object- id
-
Type:
stringThe ID of the dynamic property. - label
-
Type:
stringThe label of the dynamic property. - value
-
Type:
stringThe value of the dynamic property.
Nested Schema : items
Type:
object- actionCode
-
Type:
stringThe action code that has been set on the externalData item by the configurator system. - name
-
Type:
stringThe name to be associated with the externalData item. - values
-
Type:
objectvaluesAdditional Properties Allowed:The array of values associated with an externalData item.
Nested Schema : values
Type:
objectThe array of values associated with an externalData item.
- dynamic_property_key
-
Type:
stringThis property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
object- optionName
-
Type:
stringName of the Dynamic attribute - optionValue
-
Type:
stringValue of the Dynamic attribute
Nested Schema : items
Type:
object- id
-
Type:
stringID of the Dynamic SKU Property. - name
-
Type:
stringName of the Dynamic SKU Property. - propertyType
-
Type:
stringType that indicates whether it is a base or a custom SKU property, - value
-
Type:
stringValue of the Dynamic SKU Property.
Nested Schema : description
Type:
objectcontains detailed info
- productIds
-
Type:
arrayproductIdsAdditional Properties Allowed:list of product id's - skuIds
-
Type:
arrayskuIdsAdditional Properties Allowed:list of sku id's
Nested Schema : productIds
Nested Schema : skuIds
Example 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":[
],
"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":[
],
"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":"sku10047",
"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"
}
],
"skuOptionInfo":[
],
"configuratorId":"12345677",
"quantityAvailableForReturn":3,
"commerceItemId":"ci9000467",
"unAdjustedRefundAmount":25,
"suggestedShippingRefund":5.83,
"assetId":"asset10001",
"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",
"manualAdjustmentShare":0,
"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":"",
"activationDate":"2017-06-27T15:30:00Z",
"actualRefundAmount":25,
"suggestedRefundAmount":25
}
],
"profileInfo":{
"lastName":"Anderson",
"firstName":"Kim",
"organization":{
"name":"Oracle India Pvt Ltd",
"id":"oracle"
},
"middleName":null,
"email":"kim@example.com"
},
"isManuallyAdjusted":false,
"orderInfo":{
"priceInfo":{
"total":156.82,
"amount":110.2,
"shipping":35,
"isTaxIncluded":false,
"tax":23.31,
"subTotal":200,
"orderDiscountAmount":2,
"currencyCode":"USD",
"totalWithoutTax":129.89
},
"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,
"refundDue":32.84,
"suggestedShippingRefund":5.83,
"returnFee":0,
"suggestedOrderRefund":25,
"suggestedTaxRefund":2.01,
"suggestedTotalRefund":32.84,
"unAdjustedRefundSubtotal":25,
"actualShippingRefund":5.83,
"actualTaxRefund":2.01,
"otherRefund":0
},
"isSetteled":false,
"promotionAdjustments":{
"promotionAdjustmentsCount":0,
"orderPromotionValueAdjustments":[
],
"totalOrderDiscountAdjustment":0,
"nonReturnItemCostAdjustment":[
],
"itemPromotionValueAdjustments":[
],
"manyToManyPromotionCouponAdjustment":{
}
},
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagentui/v1/returnRequests/300002"
}
],
"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"
},
"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.|
|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|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"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": [],
"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": [],
"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": "sku10047",
"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"
}
],
"skuOptionInfo": [],
"configuratorId": "12345677",
"quantityAvailableForReturn": 3,
"commerceItemId": "ci9000467",
"unAdjustedRefundAmount": 25,
"suggestedShippingRefund": 5.83,
"assetId": "asset10001",
"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",
"manualAdjustmentShare": 0,
"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": "",
"activationDate": "2017-06-27T15:30:00Z",
"actualRefundAmount": 25,
"suggestedRefundAmount": 25
}],
"profileInfo": {
"lastName": "Anderson",
"firstName": "Kim",
"organization": {
"name": "Oracle India Pvt Ltd",
"id": "oracle"
},
"middleName": null,
"email": "kim@example.com"
},
"isManuallyAdjusted": false,
"orderInfo": {
"priceInfo": {
"total": 156.82,
"amount": 110.2,
"shipping": 35,
"isTaxIncluded": false,
"tax": 23.31,
"subTotal": 200,
"orderDiscountAmount": 2,
"currencyCode": "USD",
"totalWithoutTax": 129.89
},
"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,
"refundDue": 32.84,
"suggestedShippingRefund": 5.83,
"returnFee": 0,
"suggestedOrderRefund": 25,
"suggestedTaxRefund": 2.01,
"suggestedTotalRefund": 32.84,
"unAdjustedRefundSubtotal": 25,
"actualShippingRefund": 5.83,
"actualTaxRefund": 2.01,
"otherRefund": 0
},
"isSetteled": false,
"promotionAdjustments": {
"promotionAdjustmentsCount": 0,
"orderPromotionValueAdjustments": [],
"totalOrderDiscountAdjustment": 0,
"nonReturnItemCostAdjustment": [],
"itemPromotionValueAdjustments": [],
"manyToManyPromotionCouponAdjustment": {}
},
"links": [{
"rel": "self",
"href": "http://localhost:9080/ccagentui/v1/returnRequests/300002"
}],
"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"
},
"operation": "refund",
"paymentReversalInfo": [{
"paymentGroupId": "pg10042",
"refundType": "tokenizedCreditCard",
"amount": 32.84,
"creditCardInfo": {"cardNumber": "xxxxxxxxxxxx1111"},
"creditCardType": null,
"reversalMethod": "Card Payment Reversal",
"maxRefundAmount": 156.82
}]
}