Retrieve return requests
get
/ccstore/v1/orders/{id}/returnRequests
Retrieves all return requests for the specified order.
Prerequisite: The user must be logged in. See REST API Authentication.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The order ID to retreive all related return requests.
Header Parameters
-
X-CCAsset-Language: string
Instructs the endpoint to use the specified locale code for content returned in the response. The locale supplied in the header must be supported by your store.
-
X-CCOrganization: string
Current organization context of the logged in user
Response
Supported Media Types
- application/json
200 Response
Returned when the operation succeeds.
Root Schema : listReturnRequests_response
Type:
Show Source
object
-
items:
array items
List of all return requests related to an order.
Nested Schema : items
Type:
Show Source
object
-
additionalProperties:
object additionalProperties
Additional properties returned by return request validation webhook
-
authorizationNumber:
string
RMA of the return request
-
createdDate:
string
The authorization date of the return request.
-
isExchangeRequest:
boolean
Either it is exchange / return request.
-
nonreturnable:
boolean
Indicates whether the item is returnable or not
-
nonReturnableReason:
string
Non returnable reason for the item being non-returnable
-
operation:
string
The return operation of the return request
-
returnItems:
array returnItems
List of return items in the return request.
-
returnLabel:
string
Return label of the return request
-
returnRequestId:
string
The ID of the return request.
-
state:
string
Status of Return Request.
-
totalRefund:
number
The total refund amount of the return request.
-
totalReturnQuantity:
number
The total returned quantity in the return request.
-
trackingNumber:
array trackingNumber
Tracking Number of return request
Nested Schema : additionalProperties
Type:
object
Additional properties returned by return request validation webhook
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
additionalProperties:
object additionalProperties
Additional properties returned by return request validation webhook
-
catRefId:
string
The SKU ID of the return item.
-
productId:
string
The Product ID of the return item.
-
quantityToReturn:
integer
The quantity Returned of the return item.
-
returnReason:
string
The return reason of the return item.
-
returnRequired:
boolean
Boolean value to determine if the item has to be physically received.
-
state:
string
The state of the return item.
Nested Schema : additionalProperties
Type:
object
Additional properties returned by return request validation webhook
Example Response (links)
[
{
"rel":"self",
"href":"http://store.example.com/ccstoreui/v1/orders/o30411/returnRequests"
}
]
Example Response (items)
[
{
"returnRequestId":"200002",
"returnLabel":"a5445afg5",
"isExchangeRequest":false,
"authorizationNumber":"12345",
"createdDate":"1513930292000",
"returnItems":[
{
"quantityToReturn":"1",
"productId":"Product_36Exy",
"returnReason":"Did Not Like",
"additionalProperties":{
"name2":"value2",
"name1":"value1"
},
"state":"AWAITING_RETURN",
"catRefId":"Sku_36Fxy"
}
],
"totalRefund":"24.63",
"additionalProperties":{
"name2":"value2",
"name1":"value1"
},
"state":"Approved",
"totalReturnQuantity":"1",
"trackingNumber":[
"1234567890"
],
"operation":"process"
},
{
"returnRequestId":"200001",
"returnLabel":"a5445afg5",
"isExchangeRequest":false,
"authorizationNumber":"12345",
"createdDate":"1513929715000",
"returnItems":[
{
"quantityToReturn":"1",
"productId":"Product_36Exy",
"returnReason":"Did Not Like",
"additionalProperties":{
"name2":"value2",
"name1":"value1"
},
"state":"AWAITING_RETURN",
"catRefId":"Sku_36Fxy"
}
],
"totalRefund":"24.63",
"additionalProperties":{
"name2":"value2",
"name1":"value1"
},
"state":"Approved",
"totalReturnQuantity":"1",
"trackingNumber":[
"1234567890"
],
"operation":"process"
},
{
"returnRequestId":"100003",
"returnLabel":null,
"isExchangeRequest":false,
"authorizationNumber":"100003",
"createdDate":"1513774357000",
"returnItems":[
{
"quantityToReturn":"1",
"productId":"Product_36Exy",
"returnReason":"Did Not Like",
"additionalProperties":{
},
"state":"AWAITING_RETURN",
"catRefId":"Sku_36Fxy"
}
],
"totalRefund":"24.63",
"additionalProperties":{
},
"state":"Approved",
"totalReturnQuantity":"1",
"trackingNumber":null,
"operation":"process"
},
{
"returnRequestId":"100002",
"returnLabel":null,
"isExchangeRequest":false,
"authorizationNumber":"100002",
"createdDate":"1513774188000",
"returnItems":[
{
"quantityToReturn":"1",
"productId":"Product_36Exy",
"returnReason":"Did Not Like",
"additionalProperties":{
},
"state":"AWAITING_RETURN",
"catRefId":"Sku_36Fxy"
}
],
"totalRefund":"24.63",
"additionalProperties":{
},
"state":"Approved",
"totalReturnQuantity":"1",
"trackingNumber":null,
"operation":"process"
},
{
"returnRequestId":"100001",
"returnLabel":null,
"isExchangeRequest":false,
"authorizationNumber":"100001",
"createdDate":"1513773501000",
"returnItems":[
{
"quantityToReturn":"1",
"productId":"Product_36Exy",
"returnReason":"Did Not Like",
"additionalProperties":{
},
"state":"AWAITING_RETURN",
"catRefId":"Sku_36Fxy"
}
],
"totalRefund":"24.63",
"additionalProperties":{
},
"state":"Approved",
"totalReturnQuantity":"1",
"trackingNumber":null,
"operation":"process"
}
]
Default Response
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
The error response:
Error Code | Description | Possible Fix |
---|---|---|
28107 | Order not found. | Enter a valid order ID |
The error response:
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:
array
An 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