v1
latestOpenAPI 3.0.02026-07-244352379.2 KBOrders
Update an Order
A PATCH request to /orders/{order_ref}/ modifies the indicated Order object.
The order_ref is the ref value that Forage returns in response to the request that created the Order’s parent Session.
On success, the API responds with the updated Order.
To modify payments associated with an Order, send a request to Update an OrderPayment instead.
patch/api/orders/{order_ref}/
Headers
Authorizationstring required
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>.
Request body
Example request
{
"external_location_id": "6e3b2ff7-51c8-4c64-befa-2eac90f7c3e9"
}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": []
}