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

« Previous Version 3 Next »

You can send prices to our PMS.

Endpoint: https://ws.icnea.net/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

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.

The JSON should look like this:

{
  "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:

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

Or with an error and the message of the error:

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

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.