Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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/ordersorder/1234568/information

It will return a response like this:

Code Block
{
  "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 show 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.