v1
latestOpenAPI 3.0.02026-07-244352379.2 KBRetrieve all PaymentRefunds for a Payment
A GET request to /payments/{payment_ref}/refunds/ retrieves a list of all PaymentRefunds associated with a Payment.
To inspect a particular PaymentRefund, use /payments/{payment_ref}/refunds/{refund_ref}/.
Headers
An OAuth 2.0 bearer token that validates the request. You can use either a short-lived session token if the request is coming from the front-end, or an authentication token for server-side requests. Pass the token in this header after the word Bearer and a whitespace, for example Bearer <api_key>.
A unique merchant ID that Forage provides during onboarding, as in 123ab45c67. The Merchant ID can be found in the Forage sandbox or production dashboard.
The Forage version, represented as a string with the format of a YYYY-MM-DD date.
If not specified in the request header, then the version defaults to the value set in the Forage dashboard.
Response
OK - Success
Example response
[
{
"merchant_fixed_settlement": 5.11,
"platform_fixed_settlement": 5.11,
"pos_terminal": {
"provider_terminal_id": "1234"
},
"ref": "45e3f12a90",
"payment_ref": "b873fe62dc",
"funding_type": "ebt_snap",
"created": "2021-06-16T00:11:50.000000Z",
"updated": "2021-06-16T00:11:50.000000Z",
"status": "succeeded",
"receipt": {
"ref_number": "45e3f12a90",
"is_voided": true,
"snap_amount": "25.99",
"ebt_cash_amount": "10.99",
"other_amount": "5.99",
"sales_tax_applied": "5.16",
"balance": {
"snap": "72.94",
"non_snap": "32.16",
"updated": "2021-06-16T00:11:50.000000Z-07:00"
},
"last_4": "3456",
"message": "Approved",
"transaction_type": "Refund",
"created": "2021-06-16T00:11:50.000000Z-07:00"
},
"previous_errors": []
}
]