Mass freight archiving

Mass freight archiv­ing for sev­er­al freights, which were pre­vi­ous­ly cre­at­ed by logged user or any oth­er user’s com­pa­ny employ­ee. You can archive max 10 freights in one request.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ex­t/freights-api/v1/freight­s/archive
  • Method: POST

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.

Requirements

To be archived, freight pub­li­ca­tion must be in either can­celled or accept­ed.

Request

[
  848469,
  123123
]

Response

{
  "freights": [
    {
      "id": 848469
    },
    {
      "id": 123123
    }
  ]
}