Archive selected freight

Archives select­ed freight, which was pre­vi­ous­ly cre­at­ed by logged user or any oth­er user’s com­pa­ny employ­ee.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ext/freights-api/v1/freights/{freight-id}/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

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.

Response

Response for prop­er­ly giv­en freight id is Http code 200 with no response con­tent.