Connector API
Search…
Company contracts

Get all company contracts

Returns all contracts between the enterprise and other companies.

Request

[PlatformAddress]/api/connector/v1/companyContracts/getAll
1
{
2
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
3
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
4
"Client": "Sample Client 1.0.0"
5
}
Copied!
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.

Response

1
{
2
"TravelAgencyContracts": [
3
{
4
"Commission": null,
5
"CommissionIncluded": null,
6
"CompanyId": "04ba69d8-ff17-494f-be27-92422e100aa1",
7
"Id": "c172d21a-5595-44ab-8088-014eedd5bbf3",
8
"ServiceId": "24e2ead5-65a8-4ed9-8286-abdb00f08a1f",
9
"IsActive": true
10
}
11
]
12
}
Copied!
Property
Type
Contract
Description
TravelAgencyContracts
required
The travel agency contracts.

Travel agency contract

Property
Type
Contract
Description
Id
string
required
Unique identifier of the contract.
ServiceId
string
required
Unique identifier of the Service the contract is related to.
CompanyId
string
required
Unique identifier of the contracted Company.
IsActive
boolean
required
Whether the contract is still active.
CommissionIncluded
boolean
optional
Whether commission of the travel agency is included in the rate.
Commission
number
optional
Commission of the travel agency.