Method allows to download basic information about invoice for transport document. After that you will be able to download invoice scan also.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • Endpoint: /ext/orders-api/v1/orders/{orderId}/invoice
  • Method: GET

Headers:

  • Content-type: application/json
  • Accept: application/json
  • Authorization: Bearer {access_token}
  • Api-key: {unique_app_api-key}

Authorization and access

Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.

Json response example

{
    "currency": "pln",
    "file_link": "https://api.platform.trans.eu/ext/media-storage-api/v1/assets/72d71c93-355b-4119-9c5d-2460f368297b",
    "gross_value": 1512.90,
    "invoice_id": null,
    "invoice_issuance_date": "2021-12-13",
    "invoice_number": "13/12/1234",
    "media_id": "72d71c93-355b-4119-9c5d-2460f368297b",
    "net_value": 1230,
    "payment_due_date": "2021-12-20",
    "payment_offset_days": 7,
    "sales_date": "2021-12-13",
    "tax_value": 23
}

 

Downloading invoice file

In order to download an invoice you have to give media_id and use method described here.