...
Code Block |
---|
curl -s \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ej577asf-a5k6-42yq-a3a2-fh03hb8cb58c" \
https://beta-api.ambita.com/infoland/v1/flex/order/1234568/information |
...
You can store this information in your application, but you need to updated update the information when you receive a push message with the id, since the price might be updated due to cancellation of a product or something similar. Polling is an example on how you can receive updates.
A table of statuses that the response can return:
Status code | description |
---|---|
FINISHED | The order has finished from our side |
CANCELLED | The order has been cancelled from our side |
PROCESSING | The order has been started, but has not been finished |
NEW | The order is either new or in progress from our side. |