v1

latestOpenAPI 3.0.12026-07-24204977.5 KB
Orders

Order refund

post/order/{orderUuid}/refund

Path parameters

orderUuidstring required

order uuid

Headers

Authorizationstring required

Authorization

X-ShopBack-Idempotent-Idstring
Example:faa5e09a-8cf3-43f7-8309-d94deb426e66

Idempotent Id for the request. If this is absent, every request will be treated as unique and will be processed as such. (This is optional for now, but will be made required in the future)

Response

successful operation

status'ACCEPTED' | 'REJECTED' | 'DONE' | 'FAILED' required

Request processing status

requestIdstring

Request identifier. Present only if request has been accepted.

createdAtstring date-time

Request creation date-time in ISO-8601 date-time format. Present only if request has been accepted.

type'FULL' | 'PARTIAL' required

Type of refund.

codestring required

Response code. Useful to extract error details.

messagestring required

Response message

Example response

{
  "status": "ACCEPTED, REJECTED, DONE, FAILED",
  "requestId": "d04f56e9-412c-4e7a-8cb7-3f405ff96a13",
  "createdAt": "2022-04-01T04:01:41.041Z",
  "type": "FULL",
  "code": "accepted, in_process, duplicated_request, invalid_order_status, no_active_merchant_fee_schema_found,  refund_amount_too_large, refund_limit_exceeded",
  "message": "Request accepted"
}