Vouchers
Get all vouchers
Returns all rate vouchers filtered by Service, voucher code or voucher identifier. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/vouchers/getAll
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.
EnterpriseIds
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.
Extent
required
Extent of data to be returned. Whether only specific voucher info should be returned or related items as well.
ServiceIds
array of string
required, max 1000 items
VoucherIds
array of string
optional, max 1000 items
Unique identifiers of vouchers.
CompanyIds
array of string
optional, max 1000 items
Unique identifiers of the companies.
VoucherCodeValues
array of string
optional, max 1000 items
Value of voucher codes used by customers.
ActivityStates
optional
Whether to return only active, only deleted, or both types of record. If not specified, both active and deleted records will be returned.
UpdatedUtc
optional, max length 3 months
ExternalIdentifiers
array of string
optional, max 1000 items
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Voucher Extent
Extent of data to be returned. Whether only specific voucher info should be returned or related items as well.
Vouchers
boolean
optional
Whether the response should contain main information about vouchers.
VoucherAssignments
boolean
optional
Whether the response should contain assignments between vouchers and Rates.
Rates
boolean
optional
Whether the response should contain detail of assigned rates.
VoucherCodes
boolean
optional
Whether the response should contain voucher codes used by customers. Deprecated! Use voucherCodes/getAll
Companies
boolean
optional
Whether the response should contain detail of related companies. Deprecated! Use companies/getAll
Response
Vouchers
optional
Details about vouchers added to the system.
VoucherCodes
optional
Information about voucher codes used by customers.
VoucherAssignments
optional
Rates
optional
The assigned rates.
Companies
optional
The related companies and travel agencies.
Cursor
string
optional
Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.
Voucher
Id
string
required
Unique identifier of voucher.
ServiceId
string
required
Name
string
required, max length 128 characters
Internal name of the voucher.
CreatedUtc
string
required
Creation date and time of the voucher in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the voucher in UTC timezone in ISO 8601 format.
Type
required
Type of the voucher.
CompanyId
string
optional
TravelAgencyId
string
optional
OccupiableIntervalStartUtc
string
optional
Start of the time interval, expressed as the timestamp for the start of the first time unit, in UTC timezone ISO 8601 format (or null if the start time should not be updated).
OccupiableIntervalEndUtc
string
optional
End of the time interval, expressed as the timestamp for the start of the last time unit, in UTC timezone ISO 8601 format (or null if the end time should not be updated).
ExternalIdentifier
string
optional, max length 255 characters
Identifier of the voucher from external system.
IsActive
boolean
required
Whether the voucher is still active.
ActivityState
required
Whether voucher is active or deleted. Deprecated! Use IsActive
instead.
Voucher Type
Public
PartnerCompany
TravelAgency
Voucher assignment
VoucherId
string
required
RateId
string
required
Add vouchers
Adds the specified vouchers to the specified Services. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/vouchers/add
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.
EnterpriseId
string
optional
VoucherParameters
required, max 1000 items
Vouchers to be added.
Voucher Parameters
ServiceId
string
required
Unique identifier of Service.
Name
string
required, max length 128 characters
Internal name of the voucher.
Type
required
Type of the voucher.
CompanyId
string
optional
Unique identifier of Company.
AssignedRateIds
array of string
optional, max 10 items
Unique identifiers of Rates.
OccupiableIntervalStartUtc
string
optional
Start of the interval in which the voucher can be applied.
OccupiableIntervalEndUtc
string
optional
End of the interval in which the voucher can be applied.
ExternalIdentifier
string
optional, max length 255 characters
Identifier of the voucher from external system.
Response
Vouchers
optional
Details about vouchers added to the system.
Update vouchers
Updates information about the specified vouchers. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/vouchers/update
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.
EnterpriseId
string
optional
VoucherUpdates
required, max 1000 items
Details of voucher updates.
Vouchers update parameters
VoucherId
string
required
Unique identifier of the Voucher.
Name
optional, max length 128 characters
Internal name of the voucher (or null
if the name should not be updated).
Type
optional
Type of the voucher e.g. 'Public', 'PartnerCompany' or 'TravelAgency' (or null
if the type should not be updated).
CompanyId
optional
Unique identifier of Company (Company or Travel Agency) the voucher is related to. This is required for Type of PartnerCompany
or TravelAgency
. Use null
if Company should not be updated.
AssignedRateIds
optional
Unique identifiers of Rates (or null
should it not be updated).
OccupiableIntervalStartUtc
optional
Start of the interval in which the voucher can be applied (or null
if the start time should not be updated).
OccupiableIntervalEndUtc
optional
End of the interval in which the voucher can be applied (or null
if the end time should not be updated).
ExternalIdentifier
optional, max length 255 characters
Identifier of the voucher from external system (or null
if the identifier should not be updated).
Assigned rate ids
Has same structure as Array of strings update value.
Value
array of string
optional, max 10 items
Unique identifiers of Rates (or null
should it not be updated).
Response
Vouchers
optional
Details about vouchers added to the system.
Delete vouchers
Delete specified vouchers. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/vouchers/delete
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.
EnterpriseId
string
optional
VoucherIds
array of string
required, max 1000 items
Unique identifiers of the vouchers to be deleted.
Response
Last updated
Was this helpful?