Retrieve a list of changes made on an order, including returns, exchanges, etc...The changes can be filtered by fields like FILTER FIELDS. The changes can also be paginated.
Request Request Example
JavaScript
Shell
Java
Swift
curl--location-g--request GET '{{BASE_URL}}/admin/orders//changes'
Response Response Example
200 - Example 1
Request
Authorization
or
or
or
Path Params
id
stringÂ
required
The order's ID.
Query Params
fields
stringÂ
fields
optional
Comma-separated fields that should be included in the returned data. if a field is prefixed with + it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.
Responses
🟢200OK
application/json
OK
Body
The details of an order's changes.
order_changes
array[object (AdminOrderChange) {25}]Â
required
An order's changes.
order
object (AdminOrder)Â
required
The order's details.
return_order
object (AdminReturn)Â
required
The return's details.
exchange
object (AdminExchange)Â
required
The exchange's details.
claim
object (AdminClaim)Â
required
The claim's details.
id
stringÂ
id
required
The order change's ID.
version
numberÂ
version
required
The order change's version. This will be the order's version when the change is applied.
order_id
stringÂ
order_id
required
The ID of the order this change applies on.
return_id
stringÂ
return_id
required
The ID of the associated return.
exchange_id
stringÂ
exchange_id
required
The ID of the associated exchange.
claim_id
stringÂ
claim_id
required
The ID of the associated claim.
actions
array[object (AdminOrderChangeAction) {15}]Â
required
The order change's actions.
requested_by
stringÂ
requested_by
required
The ID of the user that requested the change.
requested_at
string <date-time>
requested_at
required
The date the order change was requested.
confirmed_by
stringÂ
confirmed_by
required
The ID of the user that confirmed the order change.
confirmed_at
string <date-time>
confirmed_at
required
The date the order change was confirmed.
declined_by
stringÂ
declined_by
required
The ID of the user that declined the order change.
declined_reason
stringÂ
declined_reason
required
The reason the order change was declined.
metadata
objectÂ
required
The order change's metadata, can hold custom key-value pairs.
declined_at
string <date-time>
declined_at
required
The date the order change was declined.
canceled_by
stringÂ
canceled_by
required
The ID of the user that canceled the order change.