Lists all refunds associated with a certain transaction.
GET
/
transactions
/
{transaction_id}
/
refunds
curl--request GET \--url https://api.{gr4vy_id}.gr4vy.app/transactions/{transaction_id}/refunds \--header'Authorization: Bearer <token>'
{"items":[{"type":"refund","id":"8724fd24-5489-4a5d-90fd-0604df7d3b83","transaction_id":"fe26475d-ec3e-4884-9553-f7356683f7f9","payment_service_refund_id":"refund_xYqd43gySMtori","status":"processing","currency":"USD","amount":1299,"reason":"Refund due to user request","created_at":"2013-07-16T19:23:00.000+00:00","updated_at":"2013-07-16T19:23:00.000+00:00","target_type":"payment-method","target_id":"c23ea83f-1b1c-4584-a0e8-78ef8c041949","external_identifier":"refund-789123","reconciliation_id":"7jZXl4gBUNl0CnaLEnfXbt","transaction_external_identifier":"transaction-789123","transaction_reconciliation_id":"7jZXl4gBUNl0CnaLEnfXbt"}],"limit":1,"next_cursor":"ZXhhbXBsZTE","previous_cursor":null}
This endpoint requires the transactions.read scope.
The base62 encoded refund ID. This represents a shorter version
of this refund's id which is sent to payment services, anti-fraud services,
and other connectors. You can use this ID to reconcile a payment service's
refund against our system.
The base62 encoded transaction ID. This represents a shorter version
of the related transaction's id which is sent to payment services,
anti-fraud services, and other connectors. You can use this ID to
reconcile a payment service's transaction against our system.
curl--request GET \--url https://api.{gr4vy_id}.gr4vy.app/transactions/{transaction_id}/refunds \--header'Authorization: Bearer <token>'
{"items":[{"type":"refund","id":"8724fd24-5489-4a5d-90fd-0604df7d3b83","transaction_id":"fe26475d-ec3e-4884-9553-f7356683f7f9","payment_service_refund_id":"refund_xYqd43gySMtori","status":"processing","currency":"USD","amount":1299,"reason":"Refund due to user request","created_at":"2013-07-16T19:23:00.000+00:00","updated_at":"2013-07-16T19:23:00.000+00:00","target_type":"payment-method","target_id":"c23ea83f-1b1c-4584-a0e8-78ef8c041949","external_identifier":"refund-789123","reconciliation_id":"7jZXl4gBUNl0CnaLEnfXbt","transaction_external_identifier":"transaction-789123","transaction_reconciliation_id":"7jZXl4gBUNl0CnaLEnfXbt"}],"limit":1,"next_cursor":"ZXhhbXBsZTE","previous_cursor":null}