API - Planyo Web Services - recalculate_price

Ti trovi qui: Planyo » Aiuto » API » recalculate_price

recalculate_price

Description:

Use this function to recalculate the price of an existing reservation. A recalculation may be needed for example if the pricing manager rules were changed since the reservation was made, or if a voucher was applied at a later time, etc.

Input:

reservation_id int required
ID of the reservation
method string required
must be set to recalculate_price
language string optional
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key string required
your API key - Click here to get your key. If your API key uses a hash key, you must also include the parameters hash_key and hash_timestamp.

Output:

price float
New reservation price after the recalculation
currency string
Currency the price is expressed in

API playground:

Click here to test this function in the API playground.