Get list of contractors

Allows to get full list of con­trac­tors added in Con­trac­tors mod­ule using Trans.eu Plat­form.

Url parameters and connection settings

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

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.

Available filters

List of avail­able fil­ters

  • com­pa­ny offi­ceId (?filter={“company_id”:{“$eq”:“11111111”}})
  • com­pa­ny vat num­ber (?filter={“vat_id”:{“$regex”:“PL11111111111111”}})
  • com­pa­ny coun­try (?filter={“country”:{“$in”:[“pl”]}})
  • coop­er­a­tion sta­tus — can be either sus­pend­ed or active (?filter={“cooperation_status”:{“$in”: [“SUSPENDED”]}})

Example response

{
  "page": 4,
  "page_count": 6,
  "page_size": 25,
  "partners": [
    {
      "company": {
        "address": {
          "country": "de",
          "locality": "Berlin",
          "number": null,
          "postal_code": "14979",
          "street": "Street 67"
        },
        "email": "info@trans.eu",
        "fax": "0049 111111111111",
        "financial_verification_status": null,
        "flags": [],
        "id": 12647,
        "name": "Test Spedition GmbH",
        "permissions": {
          "is_authorized": true,
          "is_blocked": false,
          "was_authorized_at_least_once": true
        },
        "roles": [
          "CARRIER"
        ],
        "status": "SUSPENDED",
        "telephone": "0049 111111111110",
        "vat_id": "DE11111111111"
      },
      "groups": [],
      "id": "3f6246fd-45ea-4641-8481-18f8e07bb22d",
      "notes": [
        "note"
      ]
    },
    {
      "next_contractor_example": "next_contractor_example"
    }
  ],
  "total_items": 140
}

Paging

When call­ing GET method, page should be added as para­me­ter in the URL, for exam­ple:

GET https://api.platform.trans.eu/ext/partners-api/v1/partners?page=4