Billing automations
Last updated
Was this helpful?
Last updated
Was this helpful?
Restricted!This operation is currently in beta-test and as such it is subject to change.
Returns all billing automations. Note this operation uses and supports .
[PlatformAddress]/api/connector/v1/billingAutomations/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.
CompanyIds
array of string
optional, max 100 items
Unique identifiers of Company
associated with the billing automations.
BillingAutomationIds
array of string
optional, max 100 items
Unique identifiers of specific Billing automation
items.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
BillingAutomations
optional, max 1000 items
The list of filtered billing automations.
Cursor
string
optional
Unique identifier of the last returned billing automation. This can be used in Limitation in a subsequent request to fetch the next batch of billing automations.
Id
string
required
Unique identifier of the billing automation.
EnterpriseId
string
required
Unique identifier of the enterprise.
Name
string
required
Name of the billing automation.
Description
string
optional
Description of the billing automation.
CompaniesWithRelations
required, max 1000 items
List of companies with relations to the billing automation.
Prepayment
required
Type of prepayment.
AssignmentTargetType
required
Type of target company and customer assignment behavior.
TriggerType
required
Trigger type of billing automation.
BillAggregationType
required
Type of bill aggregation.
CreatedUtc
string
required
Creation date and time of the billing automation in UTC timezone in ISO 8601 format.
ProcessingStartOffset
string
optional
Processing start offset. Applicable only if the billing automation TriggerType
is set to Reccuring
.
OrderItemConsumptionPeriod
optional
Specifies the type of order item consumption period for the billing automation. This value is applicable only when the TriggerType
is set to Reccuring
.
Assignments
optional, max 20 items
List of billing automation assignments.
CompanyId
string
required
Unique identifier of the company.
CompanyRelations
required
Company relations.
PartnerCompany
boolean
required
Indicates whether the billing automation will apply if the company added to a reservation is a partner company.
TravelAgency
boolean
required
Indicates whether the billing automation will apply if the company added to a reservation is a travel agency.
All
- All
Prepaid
- Prepaid
CompanyAsDetails
- The company will be the associated account in the resulting routed bill, and the customer is the owner.
CompanyAsOwner
- The company will be the owner in the resulting routed bill, and the customer might be the associated account.
NoCompany
- The customer will be owner of the bill.
Continuous
- Billing automation is continuously triggered by reservation actions, such as creation, updates, and rebates.
Recurring
- Billing automation is executed monthly.
Legacy
- Billing automation is executed on reservation creation only. Items added later are not transfered to any bill.
OnePerReservation
- Create a separate bill for each reservation.
AggregateByCustomer
- Create a separate bill for each reservation owner.
AggregateAll
- Group all moved items on one bill.
AggregatePerReservationGroup
- Create a separate bill for each reservation group.
MonthBefore
- Only items with a consumption date within the previous month will be routed.
SameMonthAndMonthBefore
- Only items with a consumption date within this and the previous month will be routed.
SameMonth
- Only items with a consumption date within this month will be routed.
SameMonthAndMonthAfter
- Only items with a consumption date within this and the next month will be routed.
MonthAfter
- Only items with a consumption date within the next month will be routed.
Id
string
required
Unique identifier of the billing automation assignment.
BillingAutomationId
string
required
Unique identifier of the billing automation.
ServiceId
string
required
Unique identifier of the related service.
RoutedItemTypes
required
Type of items that are going to be routed.
RateIds
array of string
optional, max 100 items
Unique identifiers of Rates
used in billing automation conditions.
ProductCategoryIds
array of string
optional, max 100 items
Unique identifiers of Product Categories
used in billing automation conditions.
ProductIds
array of string
optional, max 100 items
Unique identifiers of Products
used in billing automation conditions.
AccountingCategoryAssignments
optional, max 100 items
List of accounting category assignments used in billing automation conditions.
SpaceOrder
boolean
required
Space order
CityTax
boolean
required
City tax
AllProducts
boolean
required
All products
Deposits
boolean
required
Deposits
AdditionalExpenses
boolean
required
Additional expenses
AllCustomItems
boolean
required
All custom items
AccountingCategoryId
string
required
Unique identifier of the accounting category.
ItemTypes
required
Type of the accounting category routed item.
Products
boolean
required
Specifies whether products under the given accounting category are routed.
CustomItems
boolean
required
Specifies whether custom items under the given accounting category are routed.
Restricted!This operation is currently in beta-test and as such it is subject to change.
Adds billing automations.
[PlatformAddress]/api/connector/v1/billingAutomations/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
BillingAutomations
required, max 100 items
Parameters of the new billing automations to be created.
Name
string
required, max length 255 characters
Name of the billing automation.
Description
string
optional, max length 1000 characters
Description of the billing automation.
CompaniesWithRelations
optional, max 1000 items
List of companies with relations indicating whether the company is considered a travel agency or a company in the reservation. Can only be empty if AssignmentTargetType
is CompanyAsDetails
or NoCompany
.
Prepayment
required
Type of prepayment.
AssignmentTargetType
required
Specifies the type of company assignment to the bill. If set to NoCompany
, the BillAggregationType
must be AggregateByCustomer
.
TriggerType
required
Trigger type of billing automation.
BillAggregationType
required
Specifies the type of bill aggregation. If the value is not AggregateByCustomer
, the AssignmentTargetType
must be CompanyAsOwner
.
OrderItemConsumptionPeriod
optional
Specifies the order item consumption period type for the billing automation. This is required if the TriggerType
is set to Reccuring
.
ProcessingStartOffset
string
optional, max length 20 characters
Specifies the processing start offset. This is required if the billing automation TriggerType
is set to Reccuring
.
Assignments
required, max 20 items
List of billing automation assignments.
ServiceId
string
required
Unique identifier of the related service.
RoutedItemTypes
required
Type of items that are going to be routed.
RateIds
array of string
optional, max 100 items
Unique identifiers of Rates
that will be applied as billing automation condition.
ProductCategoryIds
array of string
optional, max 100 items
Unique identifiers of Product Categories
that will be applied as billing automation condition.
ProductIds
array of string
optional, max 100 items
Unique identifiers of Products
that will be applied as billing automation condition.
AccountingCategories
optional, max 100 items
List of accounting categories that will be applied as billing automation condition.
BillingAutomations
optional
Billing automations affected by the operation.
Restricted!This operation is currently in beta-test and as such it is subject to change.
Updates one or more existing billing automations.
[PlatformAddress]/api/connector/v1/billingAutomations/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
BillingAutomationUpdates
required, max 100 items
Details of the billing automations to be updated.
BillingAutomationId
string
required
Unique identifier of the billing automation.
Name
optional, max length 255 characters
Name of the billing automation (or null should it not be updated).
Description
optional, max length 1000 characters
Description of the billing automation (or null should it not be updated).
Companies
optional, max length 1000 characters
List of companies with relations indicating whether the company should be considered as a travel agency or a company in the reservation. This list can only be empty if the AssignmentTargetType
is CompanyAsDetails
or NoCompany
. Set to null if the value is not updated.
Prepayment
optional
Type of prepayment (or null should it not be updated).
AssignmentTargetType
optional
Specifies the type of company assignment to the bill. If set to NoCompany
, the BillAggregationType
must be AggregateByCustomer
. Set to null if the value is not updated.
BillAggregationType
optional
Defines the aggregation target type for billing automation. If not AggregateByCustomer
, the AssignmentTargetType
must be CompanyAsOwner
. Set to null if the value is not updated.
OrderItemConsumptionPeriod
optional
Specifies the order item consumption period type for the billing automation. Required if the TriggerType
is recurring. Can be null if the value is not updated.
ProcessingStartOffset
optional, max length 20 characters
Processing start offset. Required if the billing automation TriggerType
is recurring (or null should it not be updated).
Value
optional
Value which is to be updated.
BillingAutomations
optional
Billing automations affected by the operation.
Restricted!This operation is currently in beta-test and as such it is subject to change.
Add, update or remove billing automation assignments of a specific billing automation.
[PlatformAddress]/api/connector/v1/billingAutomations/updateAssignments
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
BillingAutomationId
string
required
Unique identifier of the billing automation.
AssignmentsToAdd
optional, max 20 items
Parameters for adding new assignments (or null if not being updated).
AssignmentsToUpdate
optional, max 20 items
List of parameters for updating existing assignments (or null if not being updated).
AssignmentIdsToRemove
array of string
optional, max 100 items
List of unique identifiers for assignments to be removed (or null if not being updated).
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
BillingAutomationId
string
required
Unique identifier of the billing automation.
AssignmentsToAdd
optional, max 20 items
Parameters for adding new assignments (or null if not being updated).
AssignmentsToUpdate
optional, max 20 items
List of parameters for updating existing assignments (or null if not being updated).
AssignmentIdsToRemove
array of string
optional, max 100 items
List of unique identifiers for assignments to be removed (or null if not being updated).
BillingAutomationAssignmentId
string
required
Unique identifier of the billing automation assignment.
RoutedItemTypes
optional
Type of items that are going to be routed (or null
should it not be updated).
RateIds
optional, max length 100 characters
Unique identifiers of Rates
that will be applied as billing automation condition (or null
should it not be updated).
ProductCategoryIds
optional, max length 100 characters
Unique identifiers of Product Categories
that will be applied as billing automation condition (or null
should it not be updated).
ProductIds
optional, max length 100 characters
Unique identifiers of Products
that will be applied as billing automation condition (or null
should it not be updated).
AccountingCategories
optional, max length 100 characters
List of Accounting Categories
with their ItemTypes
that will be applied as billing automation condition (or null
should it not be updated).
SpaceOrder
optional
Space order (or null
should it not be updated).
CityTax
optional
City tax (or null
should it not be updated).
AllProducts
optional
Products (or null
should it not be updated).
Deposits
optional
Deposits(or null
should it not be updated).
AdditionalExpenses
optional
Additional expenses (or null
should it not be updated).
AllCustomItems
optional
Custom items (or null
should it not be updated).
Value
optional
Value which is to be updated.
Restricted!This operation is currently in beta-test and as such it is subject to change.
Deletes specified billing automations.
[PlatformAddress]/api/connector/v1/billingAutomations/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
BillingAutomationIds
array of string
required, max 100 items
Unique identifier of the billing automations to be deleted.
array of
array of
array of
array of
Unique identifier of the enterprise. Required when using , ignored otherwise.
array of
array of
array of
array of
array of
Unique identifier of the enterprise. Required when using , ignored otherwise.
array of
array of
array of
Unique identifier of the enterprise. Required when using , ignored otherwise.
array of
array of
Unique identifier of the enterprise. Required when using , ignored otherwise.
array of
array of
array of
Unique identifier of the enterprise. Required when using , ignored otherwise.