Contractor description

Struc­ture of get­ting part­ners list

FieldExam­pleTypeDescrip­tion
part­nersArray of objectsList of part­ners from con­trac­tors mod­ule
partners.idd1da6d90-b787-4086-a515-09a82203e­abfStringPart­ner id used to iden­ti­fy on part­ners list
NOTE: it is not a com­pa­ny id
partners.notesNoteStringNote added to part­ner
partners.groupsArray of objectsList of groups a part­ner is a mem­ber of
partners.groups.id8460ce1a-a74b-488f-8fb7-df969e7a5aefStringGroup id
partners.groups.nameGroup nameStringGroup name
partners.groups.descriptionExam­ple descrip­tionStringGroup descrip­tion
partners.companyObjectPart­ner’s com­pa­ny details
partners.company.addressObjectAddress
partners.company.address.countryPLStringCoun­try using ISO val­ues
partners.company.address.localityWrocławStringName of the city
partners.company.address.number12StringNum­ber
partners.company.address.postal_code19–598StringPostal code
partners.company.address.streetStreet 72StringStreet name
partners.company.emailmail@example.comStringEmail
partners.company.fax0048 111111111StringFax num­ber
partners.company.financial_verification_statusPOSITIVEStringFinan­cial ver­i­fi­ca­tion sta­tus
partners.company.id1038201IntCom­pa­ny id (Offi­ceId)
partners.company.nameExam­ple nameStringCom­pa­ny name
partners.company.permissionsObjectList of assigned per­mis­sions
partners.company.permissions.is_authorizedTrueBooleanAutho­riza­tion sta­tus
partners.company.permissions.is_blockedFalseBooleanDeter­mines if com­pa­ny has been blocked
partners.company.permissions.
was_authorized_at_least_once
TrueBooleanAutho­riza­tion sta­tus
partners.company.rolesCARRIERStringCom­pa­ny roles: car­ri­er, ship­per, for­warder
partners.company.statusACTIVEStringCoop­er­a­tion sta­tus — can be ACTIVE or SUSPENDED
partners.company.telephone0048 111111111StringTele­phone num­ber
partners.company.vat_idPL11111111111StringCom­pa­ny VAT num­ber or oth­er tax iden­ti­fi­ca­tion

Json example

{
  "page": 1,
  "page_count": 5,
  "page_size": 15,
  "partners": [
    {
      "id": "d1da6d90-b787-4086-a515-09a82203eabf",
      "groups": [
        {
          "id": "8460ce1a-a74b-488f-8fb7-df969e7a5aef",
          "name": "Group name",
          "description": "Example description"
        }
      ],
      "company": {
        "address": {
          "country": "PL",
          "locality": "Wrocław",
          "number": null,
          "postal_code": "19-598",
          "street": "Street 72"
        },
        "email": "mail@example.com",
        "fax": "0048 111111111",
        "financial_verification_status": "POSITIVE",
        "id": 1038201,
        "name": "Example name",
        "permissions": {
          "is_authorized": true,
          "is_blocked": false,
          "was_authorized_at_least_once": true
        },
        "roles": [
          "CARRIER"
        ],
        "status": "ACTIVE",
        "telephone": "0048 111111111",
        "vat_id": "PL11111111111"
      }
    }
  ]
}

Structure of getting single partner by ID

FieldExam­pleTypeDescrip­tion
idd1da6d90-b787-4086-a515-09a82203e­abfStringPart­ner id used to iden­ti­fy on part­ners list
NOTE: it is not a com­pa­ny id
groupsArray of objectsList of groups a part­ner is a mem­ber of
groups.id8460ce1a-a74b-488f-8fb7-df969e7a5aefStringGroup id
groups.nameGroup nameStringGroup name
groups.descriptionExam­ple descrip­tionStringGroup descrip­tion
com­pa­nyObjectPart­ner’s com­pa­ny details
company.addressObjectAddress
company.address.countryPLStringCoun­try using ISO val­ues
company.address.localityWrocławStringLocal­i­ty
company.address.number12StringNum­ber
company.address.postal_code19–598StringPostal code
company.address.streetStreet 72StringStreet name
company.emailmail@example.comStringEmail
company.fax0048 111111111StringFax num­ber
company.financial_verification_statusPOSITIVEStringFinan­cial ver­i­fi­ca­tion sta­tus
company.id1038201IntCom­pa­ny id (Offi­ceId)
company.nameExam­ple nameStringCom­pa­ny name
company.permissionsObjectList of assigned per­mis­sions
company.permissions.is_authorizedTrueBooleanAutho­riza­tion sta­tus
company.permissions.is_blockedFalseBooleanDeter­mines if com­pa­ny has been blocked
company.permissions.was_authorized_at_least_onceTrueBooleanAutho­riza­tion sta­tus
company.rolesCARRIERStringCom­pa­ny roles: car­ri­er, ship­per, for­warder
company.statusACTIVEStringCoop­er­a­tion sta­tus — can be ACTIVE or SUSPENDED
company.telephone0048 111111111StringTele­phone num­ber
company.vat_idPL11111111111StringCom­pa­ny VAT num­ber or oth­er tax iden­ti­fi­ca­tion
contractors_satisfactionObjectCon­tra­tors sat­is­fac­tion (in per­cents)
contractors_satisfaction.communication53IntAssess­ment for com­pa­nies in car­ri­er or ship­per role
contractors_satisfaction.documents_delivery100IntAss­es­ment for com­pa­ny in car­ri­er role
contractors_satisfaction.load_as_described92IntAssess­ment for com­pa­ny in ship­per role
contractors_satisfaction.waiting_for_loading76IntAssess­ment for com­pa­ny in ship­per role
contractors_satisfaction.caring_for_goods85IntAss­es­ment for com­pa­ny in car­ri­er role
contractors_satisfaction.service_as_agreed42IntAss­es­ment for com­pa­ny in car­ri­er role
contractors_satisfaction.transport_on_time_performance25IntAss­es­ment for com­pa­ny in car­ri­er role
contractors_satisfaction.waiting_for_unloading100IntAssess­ment for com­pa­ny in ship­per role
contractors_satisfaction.waiting_for_loading48IntAssess­ment for com­pa­ny in ship­per role
doc­u­mentsArray of objectsInfor­ma­tion about com­pa­ny doc­u­ments
documents.expire_date2022-07-21Time­stampDoc­u­ment expi­ra­tion date
documents.insurance_valueObjectInsur­ance val­ue (for insur­ance doc­u­ments only)
documents.insurance_value.currencyEURStringInsur­ance cur­ren­cy
documents.insurance_value.value1000IntInsur­ance val­ue
documents.issue_date2021-07-22Time­stampDoc­u­ment issue date
documents.mediaObjectDoc­u­ment infor­ma­tion
documents.media.pagesArrayUrl to doc­u­ment down­load (string type)
overall_rating4.8FloatCom­pa­ny rate (max­i­mum val­ue 5.0)
payment_statusObjectPay­ment assess­ment
payment_status.paid_on_time5IntAmount of pay­ments on time
payment_status.paid_with_delay4IntAmount of pay­ments with delay
payment_status.unpaid3IntAmount of unpaid trans­ac­tions
trans_riskObjectTran­sRisk val­ue
trans_risk.calculation_time2021–11-22T01:56:46.079+01:00Time­stampTran­sRisk cal­cu­la­tion date
trans_risk.descriptionGOODStringTran­sRisk descrip­tion (may be one of fol­low­ing: SUPER, VERY_GOOD, GOOD, MEDIOCRE, POOR, null)

Json example

{
    "company": {
        "address": {
            "country": "pl",
            "locality": "Wrocław",
            "number": 2,
            "postal_code": "53-146",
            "street": "Racławicka"
        },
        "email": "api@trans.eu",
        "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"
    }
}