Financial
Request a sale refund
Creates a refund request for a PAID sale. The body must include the amount to refund and may include a reason and a callback URL.
PUT
Headers
Example:
"your-x-api-key"
Example:
"your-x-api-token"
Path Parameters
UUID of the sale to be refunded
Body
application/json
Amount to refund (≤ original sale total)
Example:
150
Refund reason (optional)
Maximum length:
255
Example:
"shopper's request"
Callback URL (optional)
Maximum length:
255
Example:
"https://merchant.com/refund/callback"
Response
200
application/json
refund request accepted
Response status code.
- 0 – success
- ‑1 – validation failure
- 998 – transaction not found
- 1000 – transaction not PAID
Available options:
0
, -1
, 998
, 1000
Example:
0
Response message
Example:
"success"
Refund transaction UUID
Example:
"a3b59529-ac56-3e24-9011-320456dd9491"
Currency code
Example:
"BRL"
Original sale total
Example:
11
Total amount already refunded (after this request)
Example:
11
Merchant balance after the request
Example:
16495.84
Discounts applied to sale
Example:
0
Shopper information