Price Jump

This service allows accepting or rejecting detected price variations for a product, confirming whether to proceed with the updated value.

patch/book/{reservationId}/recovery

Request

  • Base URL
    https://api-dev.despegar.com/v3
  • URL
    https://api-dev.despegar.com/v3/book/{reservationId}/recovery
  • Auth
    API key in header x-apikey

Path parameters

reservationIdstring required

This field must be filled in with the id of an existing reservation or with the 'external_booking_reference' sent when closing the reservation.

Query parameters

test_case'pricejump' required

Optional parameter for testing purposes. Use 'pricejump' to simulate a price jump scenario.

Request body

message_type'PRICE_JUMP' required

This field must be populated with the value returned by the GET endpoint.

Example request

{
  "price_jump_confirmations": [
    {
      "flavor_id": "F0"
    }
  ]
}

Response

OK

Changes

    • breaking

      request property was restricted to a list of enum values

    • breaking

      the request property became required

    • info

      added the new PRICE_JUMP enum value to the request property