v1
latestOpenAPI 3.0.02026-07-244352379.2 KBRetrieve all OrderRefunds for an Order
A GET request to /orders/{order_ref}/refunds/ retrieves all OrderRefunds associated with the provided order_ref.
On success, the API responds with an array of OrderRefunds.
Headers
An OAuth 2.0 authentication token that validates the request. Send a POST to the /o/token/ endpoint to generate an authentication token. 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
[
{
"ref": "45e3f12a90",
"order": "83b1c754ae",
"funding_type": "ebt_snap",
"status": "processing",
"created": "2021-06-16T00:11:50.000000Z",
"updated": "2021-06-16T00:11:50.000000Z",
"receipt": {
"balance": {
"id": 12345
}
},
"tpp_lookup_id": "re_3JemUSGfBYJeLEva0af6My64"
}
]