Get contractor by id

This method allows you to down­load part­ner details

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ext/partners-api/v1/partners/{partnerId}
  • Http Method: GET

Headers

  • Accept: application/json
  • Con­tent-type: 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.

Response example

{
  "company": {
    "address": {
      "country": "pl",
      "locality": "Wrocław",
      "number": 2,
      "postal_code": "53-146",
      "street": "Racławicka"
    },
    "email": "api@trans.eu",a
    "fax": "22222222",
    "financial_verification_status": "NEGATIVE",
    "flags": [],
    "id": 11111111,
    "name": "Test company",
    "permissions": {
      "is_authorized": true,
      "is_blocked": false,
      "was_authorized_at_least_once": true
    },
    "roles": [
      "FORWARDER"
    ],
    "status": "ACTIVE",
    "telephone": "12345678",
    "type": "STANDARD",
    "vat_id": "7777777777"
  },
  "contractors_satisfaction": {
    "communication": 53,
    "documents_delivery": 100,
    "load_as_described": 92,
    "waiting_for_loading": 76
  },
  "documents": [
    {
      "expire_date": "2022-07-21",
      "insurance_value": {
        "currency": "EUR",
        "value": 1234
      },
      "issue_date": "2021-07-22",
      "media": {
        "pages": [
          "https://platform.trans.eu/app/media-storage/v1/assets/5cfa11a6-4ff1-4bfd-a87f-3ffe3d6eb87d"
        ]
      }
    }
  ],
  "groups": [
    {
      "description": null,
      "id": "2e249789-795a-40de-bcd8-3805dadce93c",
      "name": "test"
    }
  ],
  "id": "1f4c0772-5d23-4ff4-a10c-42a45f7dbd86",
  "overall_rating": 4.8,
  "payments_status": {
    "paid_on_time": 5,
    "paid_with_delay": 4,
    "unpaid": 3
  },
  "trans_risk": {
    "calculation_time": "2021-11-22T02:02:12.147+01:00",
    "description": "GOOD"
  }
}