Add new contractor

This method allows you to add new con­trac­tor using his VAT num­ber or Offi­ceId. Only con­trac­tors with active access to freight exchange can be added.

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.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ex­t/­part­ners-api/v1/­part­ners
  • Http Method: POST

Headers

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

Description and example values

JsonIs requiredExam­pleTypeDescrip­tion
office_idNo1011111IntIden­ti­fi­ca­tion num­ber of com­pa­ny — at least one val­ue from office_id and vat_id must be added
vat_idNoPL1111111111StringCom­pa­ny vat_id num­ber — at least one val­ue from office_id and vat_id must be added

Example request

{
  "vat_id": "PL1111111111"
}

Example response

HTTP Code: 201
{}