List Refunds

GET {{baseUrl}}/v1/refunds?ending_before=<string>&limit=<string>&starting_after=<string>

Retrieve a list of all refunds.

Request Params

KeyDatatypeRequiredDescription
ending_beforestringThe ID of the refund created after the last refund you want to retrieve. String starting with refund_.
limitstringThe maximum number of refunds to return. Range, 1-100. Default is 10.
starting_afterstringThe ID of the refund created before the first refund you want to retrieve. String starting with refund_.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;created_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;MWK&quot;,&quot;ewallets&quot;:[{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ewallet&quot;:&quot;\u003cstring\u003e&quot;},{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ewallet&quot;:&quot;\u003cstring\u003e&quot;}],&quot;failure_reason&quot;:&quot;\u003cstring\u003e&quot;,&quot;fixed_side&quot;:&quot;\u003cstring\u003e&quot;,&quot;fx_rate&quot;:&quot;\u003cstring\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;merchant_debited_amount&quot;:&quot;\u003cstring\u003e&quot;,&quot;merchant_debited_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;merchant_reference_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metadata&quot;:{},&quot;payment&quot;:&quot;\u003cstring\u003e&quot;,&quot;payment_created_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;payment_method_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;proportional_refund&quot;:&quot;\u003cboolean\u003e&quot;,&quot;reason&quot;:&quot;\u003cstring\u003e&quot;,&quot;receipt_number&quot;:&quot;\u003cnumber\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cnumber\u003e&quot;},{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;created_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;GGP&quot;,&quot;ewallets&quot;:[{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ewallet&quot;:&quot;\u003cstring\u003e&quot;},{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ewallet&quot;:&quot;\u003cstring\u003e&quot;}],&quot;failure_reason&quot;:&quot;\u003cstring\u003e&quot;,&quot;fixed_side&quot;:&quot;\u003cstring\u003e&quot;,&quot;fx_rate&quot;:&quot;\u003cstring\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;merchant_debited_amount&quot;:&quot;\u003cstring\u003e&quot;,&quot;merchant_debited_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;merchant_reference_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metadata&quot;:{},&quot;payment&quot;:&quot;\u003cstring\u003e&quot;,&quot;payment_created_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;payment_method_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;proportional_refund&quot;:&quot;\u003cboolean\u003e&quot;,&quot;reason&quot;:&quot;\u003cstring\u003e&quot;,&quot;receipt_number&quot;:&quot;\u003cnumber\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;updated_at&quot;:&quot;\u003cnumber\u003e&quot;}],&quot;status&quot;:{&quot;error_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;operation_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;response_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}}