This method allows you to add new contractor using his VAT number or OfficeId. Only contractors with active access to freight exchange can be added.
Authorization and access
Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/partners-api/v1/partners
- Http Method: POST
Headers
- Accept: application/json
- Content-type: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Description and example values
Json | Is required | Example | Type | Description |
office_id | No | 1011111 | Int | Identification number of company — at least one value from office_id and vat_id must be added |
vat_id | No | PL1111111111 | String | Company vat_id number — at least one value from office_id and vat_id must be added |
Example request
{
"vat_id": "PL1111111111"
}
Example response
HTTP Code: 201
{}