Skip to content

Instantly share code, notes, and snippets.

@joshuacullenlux
Last active May 23, 2022 23:41
Show Gist options
  • Save joshuacullenlux/2ad8afd641822cf9bf8be9df2662a716 to your computer and use it in GitHub Desktop.
Save joshuacullenlux/2ad8afd641822cf9bf8be9df2662a716 to your computer and use it in GitHub Desktop.
expedia package rates

LEs current approach is to combine rooms by rate ids so that we can display standard rates and package rates in the same option tile.

We've noticed that for some searches the same rooms rate id is differen't between standard rates and package rates.

We get rate: 1234 with package: false
We get rate: 1234 with package: true

But sometimes in the response the same rates for a room come back with differen't id so we are unable to combine them.

"id": "334868",
"room_name": "Standard Room, 1 King Bed",
"rates": [
  {
    "id": "203592073",
    "status": "available",
    "available_rooms": 2147483647,
    "refundable": true,
    "member_deal_available": false,
    "sale_scenario": {
      "package": true,

vs

{
"id": "334868",
"room_name": "Standard Room, 1 King Bed",
"rates": [
  {
    "id": "381574325",
    "status": "available",
    "available_rooms": 2147483647,
    "refundable": true,
    "member_deal_available": false,
    "sale_scenario": {
      "package": false,
@joshuacullenlux
Copy link
Author

screenshot 2022-05-23 at 10 48 20 (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment