Get the most recent refunds
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X GET "https://api.leapa.co/v2/refunds?pageFilterRefund=<pageFilterRefund>" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"object": "string",
"page": 0,
"size": 0,
"live": false,
"total_elements": 0,
"total_pages": 0,
"data": [
{
"id": "obj_5f21c8a40b",
"object": "string",
"amount": 45000,
"currency": "BIF",
"description": "Room 204, two nights",
"reason": "duplicate",
"status": "succeeded",
"receivingAccountId": "00012345678901",
"charge_id": "chg_5a90bc71de",
"created_date": 0,
"source_id": "src_0e7b3c95af",
"failure_reason": "lost_or_stolen_card",
"invoice_id": "inv_7c1f9a2b48",
"live": false,
"modified_date": 0,
"processing_id": "string"
}
]
}Query parameters
Appended to the URL after a `?`.
pageFilterRefundPageFilterRefundrequired
Response
objectstringObject name returned - Refund
pageinteger<int32>The current page returned
sizeinteger<int32>The total size in a page
livebooleanFlag to indicate whether this is live mode or not
total_elementsinteger<int32>The total elements
total_pagesinteger<int32>The total pages
dataarray of RefundResponseList of refunds
idstringrequiredThe refund Id
objectstringamountinteger<int64>requiredAmount refunded.
currencystringrequiredThree-Letter ISO currency code
Allowed values:BIFUSDKESXAFdescriptionstringDescription of the refund
reasonstringrequiredReason for the refund. Either duplicate, fraudulent, requested_by_customer or for an expired capture, expired_uncaptured_charge
Allowed values:duplicatefraudulentrequested_by_customerstatusstringStatus of the refund. Either succeeded, pending, or failed
Allowed values:succeededpaidpendingfailedreceivingAccountIdstringcharge_idstringrequiredCharge Id associate to this refund
created_dateinteger<int64>requiredUTC UNIX Epoch Timestamp in millisecond at which the object was created.
source_idstringrequiredID of the card account the refund was sent to
failure_reasonstringrequiredReason of the failure: lost_or_stolen_card, expired_or_canceled_card, or unknown
Allowed values:lost_or_stolen_cardexpired_or_canceled_cardunknowninvoice_idstringrequiredId of the invoice the charge was
livebooleanWhether the object exist in live or test mode.
modified_dateinteger<int64>UTC UNIX Epoch Timestamp in millisecond at which the object was modified.
processing_idstringReference Number of the bank deposit. Constraint: Notnull
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error