curl \
-X POST \
-F file=@hotel_rooms_data_xml.xml \
-F "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/<PRODUCT_CATALOG_ID>/hotel_rooms_batch
<property> in the <PropertyDataSet> XML node and provide room type by <RoomData>. Your file must begin with a <?xml declaration tag.curl \
-X POST \
-F file=@pricings_data_xml.xml \
-F "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/<PRODUCT_CATALOG_ID>/pricing_variables_batch
| File Format & Sample | Description |
|---|---|
XML with room types | XML Sample | Make sure the room types you want to provide pricing for already exist. Specify pricing ( <Baserate>) within each room type (<RoomBundle>) based on the combination of check in date (<Checkin>) and length of stay (<Nights>). The file must begin with the <?xml declaration tag. |
XML without room types | XML Sample | Specify pricing ( <Baserate>) for each combination of hotel ID (<Property>), check in date (<Checkin>), and length of stay (<Nights>). The file must begin with the <?xml declaration tag. |
| Field Name and Type | Description |
|---|---|
Propertytype: string | Required. A unique identifier of the hotel provided by advertiser as hotel_id in the hotel feed. |
RoomIDtype: string | Required. A unique identifier of the room type provided by advertiser. |
Nametype: string | Required. Name of the hotel room type. |
Descriptiontype: string | Required. Description of the hotel room type. |
BasePricetype: float | Required. The lowest price of the hotel room. You should include the currency. Example: 159 USD |
URLtype: string | Link to the hotel room page. |
CheckinDatetype: date | Required. Check in date for the price. We support up to 180 days from the date the feed is uploaded. Use ISO‑8601 (YYYY‑MM‑DD). |
Nightstype: int | Required. Number of nights staying in the hotel for the price. Max value: 14 |
Baseratetype: float | Required. Price based on checkin_date and length_of_stay.Example: 180 |
Taxtype: float | Required. Tax value for the stay. |
OtherFeestype: float | Required. Applicable fee for the stay. |
SalePricetype: float | The discounted price if applicable. Example: 159 |
SalePriceTaxtype: float | Tax value for the discounted price. |