Creating a satisfaction refund

Learn how to create a satisfaction refund.

Create a satisfaction refund for the order like this where 999999999 is the orderId and you provide the customer token:

cURL
cURL
curl --location --request POST 'http://{host}/orders/{orderid}/refunds?token={the customer's token}' \
--header 'Content-Type: application/json' \
--header 'authorization: bearer ***\
--data-raw '{
"reason": "Damaged Product",
"comments": "Damaged Product upon receiving",
"type": "Order Level",
"category": "Order Adjustments",
"refundAmount": {
"currency": "USD",
"value": 20
}
}'

A successful request returns a 200 response code:

JSON
JSON
No response. The body should be empty.