GET api/access/v1/contractors/{contractorId}/contracts

Get contracts for contractor

Request Information

Requires Authorization!

In order to make a request to work 2 headers are required, a ClientId and a ClientSecret

URI Parameters

NameDescriptionTypeAdditional information
contractorId

Id of contractor

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ContractContractor
NameDescriptionTypeAdditional information
ContractId

globally unique identifier

None.

ContractorId

globally unique identifier

None.

Status

ContractContractorStatus

None.

StaffedByCompanyId

globally unique identifier

None.

EmployedByCompanyId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ContractId": "d380e381-15aa-4930-8fd4-3d14cf997b48",
    "ContractorId": "9c2a2fa7-588f-4564-aa98-fa3b6424413a",
    "Status": 0,
    "StaffedByCompanyId": "0de47bd5-c270-4fbf-825a-224d5b2f3f78",
    "EmployedByCompanyId": "c8bb89d8-854b-4009-8df1-b9f602a7663c"
  },
  {
    "ContractId": "d380e381-15aa-4930-8fd4-3d14cf997b48",
    "ContractorId": "9c2a2fa7-588f-4564-aa98-fa3b6424413a",
    "Status": 0,
    "StaffedByCompanyId": "0de47bd5-c270-4fbf-825a-224d5b2f3f78",
    "EmployedByCompanyId": "c8bb89d8-854b-4009-8df1-b9f602a7663c"
  }
]

application/xml, text/xml

Sample:
<ArrayOfContractContractor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSG.Systems.DataAPI.AccessProvider.Models">
  <ContractContractor>
    <ContractId>d380e381-15aa-4930-8fd4-3d14cf997b48</ContractId>
    <ContractorId>9c2a2fa7-588f-4564-aa98-fa3b6424413a</ContractorId>
    <EmployedByCompanyId>c8bb89d8-854b-4009-8df1-b9f602a7663c</EmployedByCompanyId>
    <StaffedByCompanyId>0de47bd5-c270-4fbf-825a-224d5b2f3f78</StaffedByCompanyId>
    <Status>Active</Status>
  </ContractContractor>
  <ContractContractor>
    <ContractId>d380e381-15aa-4930-8fd4-3d14cf997b48</ContractId>
    <ContractorId>9c2a2fa7-588f-4564-aa98-fa3b6424413a</ContractorId>
    <EmployedByCompanyId>c8bb89d8-854b-4009-8df1-b9f602a7663c</EmployedByCompanyId>
    <StaffedByCompanyId>0de47bd5-c270-4fbf-825a-224d5b2f3f78</StaffedByCompanyId>
    <Status>Active</Status>
  </ContractContractor>
</ArrayOfContractContractor>