Orders
Order refund
post/order/{orderUuid}/refund
Request
- Base URLhttps://integrations-sandbox.shopback.com/demo/merchant
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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)
Request body */*
Example request
{
"description": "Out of stock/Color is not fit to my bedroom",
"refundedByEmail": "user@email.com",
"webhookUrl": "https://mystore.com/shopback/hooks",
"items": [
{
"sku": "93847598347"
}
]
}Response
successful operation
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"
}Changes
No recorded changes to this operation across all 2 revisions of this API.