You can get information about an order by using the order api:
curl -s \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ej577asf-a5k6-42yq-a3a2-fh03hb8cb58c" \ https://beta-api.ambita.com/infoland/flex/order/1234568/information
It will return a response like this:
{ "id": 1234568, "status": "FINISHED", "priceExclVat": 30, "priceInclVat": 37.5, "ordered": "2020-12-14T10:26:23.634+0100", "updated": "2021-03-23T07:40:23.336+0100", "reference": "test", "technicalReference": "some-technical-reference" "user": "USERNAME", "products": [ { "code": "WI30950100", "name": "Meglerbrev", "priceExclVat": 30, "priceInclVat": 37.5, "status": "FINISHED" } ] }
You can store this information in your application, but you need to updated 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.
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 |
NEW | The order is either new or in progress from our side. |