URL = You can send prices to our PMS.
Endpoint: https://ws.icnea.net/pricing_set_prices.aspx
To send us prices, there There are a few fields that are mandatory, and the update will not work if they
are not in the call: usr, .
Parameter | Type | Mandatory? | Description |
---|---|---|---|
usr | string | yes | |
lodging_id |
...
integer | yes | ||
dates | array | yes | |
date | date | yes | date that you want to update |
rates | array | yes | |
people | integer | no | number of people for this rate |
nights | integer | no | length of stay for this rate (if you have different prices for length of stay) |
price | decimal | yes | price that you want to update |
minimum | integer | no | minimum stay restriction for this date |
Info |
---|
If you don’t send “people”, “nights” or “minimum”, the system will consider that the price you are |
Note |
---|
If you send 2 rates for the same people/nights, the system will read and save the second one. |
The JSON should look like this:
Code Block | ||
---|---|---|
| ||
{ "set_prices": { "usr": " |
...
a1b2c3d4e5", "lodging_id": " |
...
12341001", "dates": [{ "date": "2017-10-01", "rates": [{ "people": "2", "nights": "1", "price": "110.00", "minimum": "3" }, { "people": "3", "nights": "1", "price": "125.00", "minimum": "3" }, { "people": "4", "nights": "1", "price": "135.00", "minimum": "3" }] }, { "date": "2017-10-02", "rates": [{ "people": "2", "nights": "1", "price": "110.00", "minimum": "3" }, { "people": "3", "nights": "1", "price": "125.00", "minimum": "3" }, { "people": "4", "nights": "1", "price": "135.00", |
...
"minimum": "3" }] }] } } |
Our system will answer you with a success:
Code Block | ||
---|---|---|
| ||
{ "pricing_set_prices_response": { "status": "success" } } |
Or with an error and the message of the error:
Code Block | ||
---|---|---|
| ||
{ "pricing_set_prices_response": { "error": "wrong id" } } |
...