Pricing
Provides pricing information for various endpoints.
To use this capability, add octo/pricing
to your Octo-Capabilities
header.
This capability supports dynamic pricing, allowing transfer and product prices to change daily and at different start times. Ensure your system can support this level of pricing before integration.
Pricing Transfers
POST
/{host}/transfers
Returns top-level pricing by option in the transfer.
Request Body
currency
string
The currency to use
Response
On the response the only changes from the original schema is on the Transfer Options Object:
The defaultCurrency
is the default currency for Transfer Option, if you omit the currency
parameter on future endpoints this is the value Rhomtrip will fallback to. availableCurrencies
are all the possible currencies that we accept for the transfer option.
All the options of a transfer have the following availableCurrencies
: USD, EUR and GBP
Additionally, we will incorporate an object called pricing
into each transfer option. Below is a detailed explanation of each field within this pricing object:
original
The original price for this product which will be the same or higher than the sale amount. Use this to show a discount has been applied e.g. $10 $8.50
retail
The sale price you should charge your customers.
net
The wholesale rate the supplier will charge you for this sale.
currency
The currency.
currencyPrecision
All pricing is given in integers to avoid floating point rounding issues. e.g. USD = 2 and JPY = 0. To convert a price to decimal you should do: price
/ (10 ** currencyPrecision
) where ** is to the power of e.g. Math.pow(10, currencyPrecision
).
includedTaxes
Any taxes included in the retail and/or net price.
Booking Reservation
POST
/{host}/bookings
The booking reservation call
Request Body
currency
string
The currency to use
Response
This capability extends the booking schema to add a pricing field which gives you the final price of the booking as well as any included taxes. The final price includes tax, and should be what you display to the guest as the amount they need to pay.
We include the net amount as well as any taxes included in the net price.
Last updated