Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

URL = You can send prices to our PMS.

Endpoint: https://ws.icnea.net/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
sending is the basic one, and it will be saved in the first rate.

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
languagejson
{
  "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",
  

...

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

Our system will answer you with a success:

Code Block
languagejson
{
  "set_prices": {
    "status": "success"
  }
}

Or with an error and the message of the error:

Code Block
languagejson
{
  "set_prices": {
    "error": "wrong id"
  }
}

...