Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

URL = https://ws.icnea.net/set_prices.aspx
To send us prices, there are a few fields that are mandatory and the update will not work if they
are not in the call: usr, lodging_id, dates > date, rates > price
If you don’t send “people”, “nights” or “minimum”, the system will consider that the price you are
sending is the basic one, and it will be saved in the first rate.
If you send 2 rates for the same people/nights, the system will read and save the second one.

{
"set_prices": {
"usr": "$8$8$8$8$",
"lodging_id": "81001",
"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",

7

"minimum": "3"
}]
}]
}
}

Our system will answer you with a success:

{
  "set_prices": {
    "status": "success"
  }
}

Or with an error:

{
  "set_prices": {
    "error": "wrong id"
  }
}

  • No labels