Company contracts
Get all company contracts
Returns all contracts between the enterprise and other companies. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/companyContracts/getAll
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| array of string | optional, max 1000 items | Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token. |
| array of string | optional, max 1000 items | Unique identifiers of Services where the Travel agency contract belong to. |
| array of string | optional, max 1000 items | Unique identifiers of Companies assigned with Travel agency contracts. |
| array of string | optional, max 1000 items | Unique identifier of the Travel agency contract to fetch. |
| optional, max length 3 months | Interval in which Travel agency contract was updated. | |
| required | Limitation on the quantity of data returned. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Travel agency contract | required | The travel agency contracts. |
| string | optional | Unique identifier of the last and hence oldest contract returned. This can be used in Limitation in a subsequent request to fetch the next batch of older messages. |
Travel agency contract
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the contract. |
| string | required | Unique identifier of the Service the contract is related to. |
| string | required | Unique identifier of the contracted Company. |
| string | required | Creation date and time of the travel agency contract in UTC timezone in ISO 8601 format. |
| string | required | Last update date and time of the travel agency contract in UTC timezone in ISO 8601 format. |
| boolean | required | Whether the contract is still active. |
| boolean | optional | Whether commission of the travel agency is included in the rate. When |
| number | optional | Commission of the travel agency. |
| number | optional | Flat fee added to (or subtracted from) the reservation price when coming from Channel Managers. |
| number | optional | Percentage of the reservation price added to (or subtracted from) price when coming from Channel Managers. |
| required | Options of the travel agency contract. | |
| string | optional | Accounting code of the travel agency contract. |
| string | optional | The maximum time, when the invoice has to be be paid in ISO 8601 duration format. |
| string | optional | Unique identifier of the Business segment used for incoming reservations originating from Channel Managers, for this particular contract. |
| string | optional | Contact person of the travel agency. |
| string | optional | Contact email of the travel agency. |
| string | optional | Additional contact info of the travel agency. |
| string | optional | Additional notes of the travel agency contract. |
Travel agency contract options
Property | Type | Contract | Description |
---|---|---|---|
| boolean | required | Cancellation fee will be considered when calculating the travel agency commission estimate. |
| boolean | required | Reservations from travel agencies will not be automatically charged. |
Add company contracts
Adds one or more company contracts.
Request
[PlatformAddress]/api/connector/v1/companyContracts/add
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| array of Travel agency contract parameters | required | Information about travel agency contracts to be created. |
Travel agency contract parameters
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the Service the travel agency contract is created to. |
| string | required | Unique identifier of the Company the travel agency contract is issued to. |
| boolean | optional | Whether commission of the travel agency is included in the rate. |
| number | optional | Commission of the travel agency. Value must be between 0 and 1. |
| number | optional | Flat fee added to (or subtracted from) the reservation price when coming from Channel Managers. |
| number | optional | Percentage of the reservation price added to (or subtracted from) price when coming from Channel Managers. Value must be between -1 and 1. |
| required | Options of the travel agency contract. | |
| string | optional | Accounting code of the travel agency contract. |
| string | optional | The maximum time, when the invoice has to be be paid in ISO 8601 duration format. |
| string | optional | Unique identifier of the Business segment used for incoming reservations originating from Channel Managers, for this particular contract. |
| string | optional | Contact person of the travel agency. |
| string | optional | Contact email of the travel agency. |
| string | optional | Additional contact info of the travel agency. |
| string | optional | Additional notes of the travel agency contract. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Travel agency contract | required | The added travel agency contracts. |
Update company contracts
Updates one or more company contracts.
Request
[PlatformAddress]/api/connector/v1/companyContracts/update
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| required | Information about travel agency contracts to be updated. |
Travel agency contract update parameters
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the Travel agency contract. |
| optional | Whether commission of the travel agency is included in the rate. | |
| optional | Commission of the travel agency. | |
| optional | Flat fee added to (or subtracted from) the reservation price when coming from Channel Managers. | |
| optional | Percentage of the reservation price added to (or subtracted from) price when coming from Channel Managers. | |
| optional | Options of the travel agency contract. | |
| optional | Accounting code of the travel agency contract. | |
| optional | The maximum time, when the invoice has to be be paid in ISO 8601 duration format. | |
| optional | Unique identifier of the Business segment used for incoming reservations originating from Channel Managers, for this particular contract. | |
| optional | Contact person of the travel agency. | |
| optional | Contact email of the travel agency. | |
| optional | Additional contact info of the travel agency. | |
| optional | Additional notes of the travel agency contract. |
Travel agency contract update options
Property | Type | Contract | Description |
---|---|---|---|
| required | Cancellation fee will be considered when calculating the travel agency commission estimate. | |
| required | Reservations from travel agencies will not be automatically charged. |
Response
Property | Type | Contract | Description |
---|---|---|---|
| array of Travel agency contract | required | The updated travel agency contracts. |
Delete company contracts
Deletes one or more company contracts.
Request
[PlatformAddress]/api/connector/v1/companyContracts/delete
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Token identifying the client application. |
| string | required | Access token of the client application. |
| string | required | Name and version of the client application. |
| array of string | required, max 1000 items | Unique identifiers of the Travel agency contract to delete. |
| array of string | required, max 1000 items | Unique identifiers of the Service the travel agency contract belongs to. |
Response
Last updated