v1
latestOpenAPI 3.0.02026-07-244352379.2 KBOrders
Retrieve an Order
A GET request to /orders/{order_ref}/ retrieves the specified Order object.
The order_ref is the ref value that Forage returns in response to the request that created the order’s parent Session.
You can use this endpoint to request the transaction outcome from Forage after a customer completes a Fully Hosted or Custom Session.
get/api/orders/{order_ref}/
Headers
Authorizationstring required
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>.
Response
OK - Success
Example response
{
"ref": "93410bcaff",
"snap_total": "25.99",
"ebt_cash_total": "5.99",
"remaining_total": "10.99",
"product_list": [],
"platform_fee": "0.05",
"is_delivery": true,
"success_redirect_url": "https://www.your-app.com/status=SUCCEEDED",
"cancel_redirect_url": "https://www.your-app.com/status=CANCELED",
"supported_benefits": [
"snap",
"non_ebt"
],
"psp_customer_id": "cus_AJ6yA7mRH34mJT",
"status": "draft",
"payments": [],
"refunds": [],
"success_date": "2021-06-16T00:11:50.000000Z",
"receipt": {
"balance": {
"id": 12345
}
},
"expires_at": "2021-06-16T00:41:50.000000Z",
"previous_errors": []
}