id from the return's items. reject_reason is required when decision is reject. Returns 400 if a verdict is missing or invalid, 409 if the return is not awaiting review.refunds:write.curl --location '/partner/v1/returns//inspect' \
--header 'X-Store-Id: {{partner_store_id}}' \
--header 'Accept-Language: en' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"item_id": "b2a4d9c3-7e61-4f0a-8c55-1f9e2d3c4b5a",
"result": "passed",
"decision": "accept"
},
{
"item_id": "c7d8e9f0-1a2b-4c3d-9e4f-5a6b7c8d9e0f",
"result": "damaged",
"decision": "reject",
"reject_reason": "Item arrived damaged",
"notes": "Torn seam"
}
]
}'{
"success": true,
"message": "string",
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"external_return_id": "string",
"request_number": 0,
"status": "string",
"refund_status": "string",
"source": "string",
"return_reason": "string",
"order_id": "string",
"currency": "string",
"requested_amount": 0,
"final_amount": 0,
"items": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"line_id": "string",
"name": "string",
"sku": "string",
"unit_price": 0,
"tax": 0,
"discount": 0,
"reason": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": {
"en": "string",
"ar": "string"
},
"return_types": [
"string"
]
},
"status": "string"
}
],
"refunds": [
{
"method": "string",
"amount": 0,
"status": "string",
"payment": {
"transaction_reference": "string",
"status": "string",
"amount": 0,
"fee": 0,
"currency": "string",
"value_date": "2019-08-24",
"from": {
"name": "string",
"account": "string",
"bic": "string"
},
"to": {
"name": "string",
"account": "string",
"bic": "string"
},
"created_at": "2019-08-24T14:15:22.123Z"
}
}
],
"attachments": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"url": "string",
"media_type": "string",
"created_at": "2019-08-24T14:15:22.123Z"
}
],
"shipments": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"direction": "string",
"status": "string",
"tracking_number": "string",
"carrier_tracking_number": "string",
"tracking_url": "string",
"label_url": "string",
"created_at": "2019-08-24T14:15:22.123Z"
}
],
"invoice_url": "string",
"submitted_at": "2019-08-24T14:15:22.123Z",
"approved_at": "2019-08-24T14:15:22.123Z",
"rejected_at": "2019-08-24T14:15:22.123Z",
"completed_at": "2019-08-24T14:15:22.123Z",
"created_at": "2019-08-24T14:15:22.123Z"
}
}