get https://api.us.uat.ascenda.com/orders
This endpoint retrieves a list of orders.
(Workflow Advisory 1) Checking for your Order status
Ascenda recommends that you use the Webhook workflow as the most efficient way to handle order outcomes; You should only use this as a last resort if you cannot support webhooks.
Not all programs support near real-time fulfillment. Some programs may take more than a day to finalise the transaction outcome. The GET order endpoint is generally inefficient for you to poll for statuses in a real-time manner.
(Workflow Advisory 2) Statuses to observe for order fulfillment outcomes
You should observe the order_items[].status field to determine fulfillment status. A status of fulfilled
is the only valid indicator of success. If the status is cancelled
or failed
, consider the fulfillment as unsuccessful and refund the points back to the user.