Versions Compared

Key

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

You can send prices to our PMS.

Endpoint: https://ws.icnea.net/pricing_set_prices.aspx

There are a few fields that are mandatory, and the update will not work if they are not in the call.

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.

...

Code Block
languagejson
{
  "set_prices": {
    "usr": "$8$8$8$8$a1b2c3d4e5",
    "lodging_id": "8100112341001",
    "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"
      }]
    }]
  }
}

...

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

...

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

...