Get invoice for transport document data

Method allows to down­load basic infor­ma­tion about invoice for trans­port doc­u­ment. After that you will be able to down­load invoice scan also.

Url parameters and connection settings

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

Headers:

  • Con­tent-type: application/json
  • Accept: application/json
  • Autho­riza­tion: Bear­er {access_token}
  • Api-key: {unique_ap­p_api-key}

Authorization and access

Autho­riza­tion process is described here. Each API request must also con­sist of unique Api-key obtained dur­ing appli­ca­tion reg­is­tra­tion togeth­er 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.9,
  "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 down­load an invoice you have to give media_id and use method described here.