Retrieve rate info

πŸ†•
The Sandbox environment is available exclusively to new partners who begin their integration in Q4 2025.
https://api-sandbox.worldota.net/api/b2b/v3/search/lookuprate/

The call gets one hotel rate. The response format is as in the Retrieve hotelpage call.

⚠️
To have permission to the call with your API key, contact the API support team.

Sandbox limitations

⚠️
Use all field values and API keys obtained from the sandbox environment only within the sandbox. Don’t mix them with test or production environments.

Request

  • language. Input value is ignored, the value is always en.

Response

  • Not supported fields:
    • hotels.rates.payment_options.payment_types.cancellation_penalties.policies.commission_info.charge.amount_gross.
    • hotels.rates.payment_options.payment_types.cancellation_penalties.policies.commission_info.charge.amount_commission.
  • currency_code. For every object with this field, the value is always USD.

Request example

curl --user '<KEY_ID>:<API_KEY>' 'https://api-sandbox.worldota.net/api/b2b/v3/search/lookuprate/' \
--header 'Content-Type: application/json' \
--data '{
  "book_hash": "p-86ccba07-27ab-489b-b549-c956ea928811",
  "language": "en"
}'

Request body

Response

Response example

{
  "data": {
    "hotels": [
      {
        "id": "arbatapart_apartments",
        "hid": 6297236,
        "rates": [
          {
            "book_hash": "h-86ccba07-27ab-489b-b549-c956ea928811",
            "match_hash": "m-2796124d-1ccc-42a5-b1f7-7d57e0e61f90",
            "daily_prices": [
              "306.00"
            ],
            "meal": "nomeal",
            "meal_data": {
              "value": "nomeal",
              "has_breakfast": false,
              "no_child_meal": true
            },
            "payment_options": {
              "payment_types": [
                {
                  "amount": "306.00",
                  "show_amount": "306.00",
                  "currency_code": "USD",
                  "show_currency_code": "USD",
                  "by": null,
                  "is_need_credit_card_data": false,
                  "is_need_cvc": false,
                  "type": "deposit",
                  "vat_data": {
                    "included": false,
                    "applied": false,
                    "amount": "0.00",
                    "currency_code": "USD",
                    "value": "0.00"
                  },
                  "tax_data": {},
                  "perks": {},
                  "commission_info": {
                    "show": {
                      "amount_gross": "306.00",
                      "amount_net": "306.00",
                      "amount_commission": "0.00"
                    },
                    "charge": {
                      "amount_gross": "306.00",
                      "amount_net": "306.00",
                      "amount_commission": "0.00"
                    }
                  },
                  "cancellation_penalties": {
                    "policies": [
                      {
                        "start_at": null,
                        "end_at": "2025-04-25T00:00:00",
                        "amount_charge": "306.00",
                        "amount_show": "306.00",
                        "commission_info": {
                          "show": {
                            "amount_gross": "0.00",
                            "amount_net": "0.00",
                            "amount_commission": "0.00"
                          },
                          "charge": {
                            "amount_gross": "0.00",
                            "amount_net": "0.00",
                            "amount_commission": "0.00"
                          }
                        }
                      }
                    ],
                    "free_cancellation_before": "2025-04-25T00:00:00"
                  },
                  "recommended_price": null
                },
                {
                  "amount": "306.00",
                  "show_amount": "306.00",
                  "currency_code": "USD",
                  "show_currency_code": "USD",
                  "by": null,
                  "is_need_credit_card_data": false,
                  "is_need_cvc": false,
                  "type": "now",
                  "vat_data": {
                    "included": false,
                    "applied": false,
                    "amount": "0.00",
                    "currency_code": "USD",
                    "value": "0.00"
                  },
                  "tax_data": {},
                  "perks": {},
                  "commission_info": {
                    "show": {
                      "amount_gross": "306.00",
                      "amount_net": "306.00",
                      "amount_commission": "0.00"
                    },
                    "charge": {
                      "amount_gross": "306.00",
                      "amount_net": "306.00",
                      "amount_commission": "0.00"
                    }
                  },
                  "cancellation_penalties": {
                    "policies": [
                      {
                        "start_at": null,
                        "end_at": "2025-04-25T00:00:00",
                        "amount_charge": "306.00",
                        "amount_show": "306.00",
                        "commission_info": {
                          "show": {
                            "amount_gross": "0.00",
                            "amount_net": "0.00",
                            "amount_commission": "0.00"
                          },
                          "charge": {
                            "amount_gross": "0.00",
                            "amount_net": "0.00",
                            "amount_commission": "0.00"
                          }
                        }
                      }
                    ],
                    "free_cancellation_before": "2025-04-25T00:00:00"
                  },
                  "recommended_price": null
                }
              ]
            },
            "bar_rate_price_data": null,
            "rg_ext": {
              "class": 4,
              "quality": 0,
              "sex": 0,
              "bathroom": 1,
              "bedding": 1,
              "family": 0,
              "capacity": 2,
              "club": 0,
              "bedrooms": 1,
              "balcony": 0,
              "view": 0,
              "floor": 0
            },
            "room_name": "Double Junior Suite",
            "room_name_info": null,
            "serp_filters": [
              "has_bathroom"
            ],
            "sell_price_limits": null,
            "allotment": 1000,
            "amenities_data": [
              "king-bed",
              "non-smoking"
            ],
            "any_residency": true,
            "deposit": null,
            "no_show": {
              "amount": "0.00",
              "currency_code": "USD",
              "from_time": "00:00:00"
            },
            "room_data_trans": {
              "main_room_type": "Double Junior Suite",
              "main_name": "Double Junior Suite",
              "bathroom": null,
              "bedding_type": null,
              "misc_room_type": null
            },
            "legal_info": null
          }
        ],
        "bar_price_data": null
      }
    ],
    "original_request_params": {
      "checkin": "2025-04-25",
      "checkout": "2025-04-26",
      "guests": [
        {
          "adults": 2,
          "children": []
        }
      ],
      "residency": "gb"
    }
  },
  "debug": {
    "request": {
      "book_hash": "p-86ccba07-27ab-489b-b549-c956ea928811",
      "language": "en"
    },
    "key_id": 6,
    "validation_error": null
  },
  "status": "ok",
  "error": null
}

Errors

The error field has the value specified in the headers below.

invalid_params

The book_hash field is required.

contract_mismatch

An attempt to make the to check the rate found with the different contract.

rate_not_found

  • The rate with the book_hash field value isn’t found.
  • The book_hash field value has expired.

Send another search request and change the book_hash field value.

core_search_error

An internal search error. Has 500 status code.