Mass cancellation of publication

Can­cels pub­li­ca­tion of 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 can­cel max 10 freights in one request.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ex­t/freights-api/v1/­cancelPub­li­ca­tion
  • 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 can­celled, freight pub­li­ca­tion must be active and not accept­ed.

Request

[
  848469,
  123123
]

Response

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