Refunds
RefundPayment
Refunds a payment. You can refund the entire payment amount or a portion of it. You can use this endpoint to refund a card payment or record a refund of a cash or external payment. For more information, see Refund Payment.
post/v2/refunds
Request body
Example request
{
"amount_money": {
"amount": 1000,
"currency": "USD"
},
"app_fee_money": {
"amount": 10,
"currency": "USD"
},
"idempotency_key": "9b7f2dcf-49da-4411-b23e-a2d6af21333a",
"payment_id": "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY",
"reason": "Example"
}Response
Success
Example response
{
"refund": {
"amount_money": {
"amount": 1000,
"currency": "USD"
},
"app_fee_money": {
"amount": 10,
"currency": "USD"
},
"created_at": "2021-10-13T21:23:19.116Z",
"id": "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY_KlWP8IC1557ddwc9QWTKrCVU6m0JXDz15R2Qym5eQfR",
"location_id": "L88917AVBK2S5",
"order_id": "1JLEUZeEooAIX8HMqm9kvWd69aQZY",
"payment_id": "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY",
"reason": "Example",
"status": "PENDING",
"updated_at": "2021-10-13T21:23:19.508Z"
}
}