Refund

This endpoint is used to process a full or partial refund for a captured order. The order status value will be fully_refunded or partially_refunded based on the total amount refunded.

Path Params
uuid
required
length between 36 and 36
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

The unique Tamara order_id, obtained from the response of the /checkout Create Checkout Session endpoint for online checkout, or the /checkout/in-store-session (SMS Payment Link) and /checkout/in-store (QR Code) endpoints for in-store checkout. Must be a valid UUID, otherwise the request returns 404 with "No route found".

Body Params
total_amount
object
required

Total amount to be refunded to the customer, not including any discount amount. If it equals the captured amount, the order status becomes fully_refunded. If it is less, the order status becomes partially_refunded.

string
required

Notes or comments as a reference point that will be added to this order's transaction history.

string

The merchant's own internal refund ID, if any, to be stored on the refund request and order details.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json