Skip to content

Issue a refund (full / line-item / partial-amount) + a credit note

POST
/admin/v1/orders/{orderId}/refunds
curl --request POST \
--url https://your-store.example.com/admin/v1/orders/example/refunds \
--header 'Content-Type: application/json' \
--data '{ "reason": "example", "items": [ { "orderItemId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "quantity": 1, "restock": true } ], "amount": 1, "restock": true, "idempotencyKey": "example" }'
orderId
required
string
Media type application/json
object
reason
string
>= 1 characters <= 1000 characters
items
Array<object>
>= 1 items
object
orderItemId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
quantity
required
integer
> 0 <= 9007199254740991
restock
boolean
amount
integer
> 0 <= 9007199254740991
restock
boolean
idempotencyKey
required
string
>= 1 characters <= 255 characters
Example generated
{
"reason": "example",
"items": [
{
"orderItemId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"quantity": 1,
"restock": true
}
],
"amount": 1,
"restock": true,
"idempotencyKey": "example"
}