Transaction Flow

Transaction List

The Reseller needs to develop the different transactions in order to get all the information required for creating a reservation that can be successfully sent to the Supplier via the Redeam Booking API.

Please note that the order in which the calls are made is very important. IDs received in the responses are used for the next request which would fail without these IDs.

  1. Suppliers - mandatory

    1. Get one supplier: GET /suppliers/{supplier_id}
    2. Get multiple suppliers: GET /suppliers
  2. Products - mandatory

    1. Get one product: GET /suppliers/{supplierid}/products/{product id}
    2. Get multiple products: GET /suppliers/{supplier_id}/products
  3. Rates - mandatory

    1. Get one rate: GET /suppliers/{supplierid}/products/{product id}/rates/{rate_id}
    2. Get multiple rates: GET /suppliers/{supplier_id}/products/{product_id}/rates
  4. Price Schedule - mandatory

    1. GET/suppliers/{supplier_id}/products/{product_id}/pricing/schedule
  5. Availability - mandatory

    1. Retrieve a single availability: GET /suppliers/{supplierid}/products/{product id}/availability
    2. Retrieve a list of availabilities: GET /suppliers/{supplier_id}/products/{product_id}/availabilities
  6. Create Hold - mandatory

    1. POST/holds
  7. Create booking - mandatory

    1. POST /bookings
  8. Cancel booking - optional

    1. PUT /bookings/cancel/{booking_id}
  9. Retrieve hold - optional

    1. GET /holds/{hold_id}
  10. Release hold - optional

    1. DELETE /holds/{hold_id}
  11. Retrieve booking - optional

    1. GET /bookings/{booking_id}

Transaction Diagram

This diagram shows the transaction dialog between you and Redeam. The numbers link the API call names and their link to the API spec to the order in which the call is made.

Transaction Flow Example

This example demonstrates the steps required for a booking using the Redeam Booking API referred to the numbers linking the calls to the diagram above:

1 Get Supplier

Request

JSON
Copy

Response

JSON
Copy

2 Get Product

Request

JSON
Copy

Response

JSON
Copy

3 Get Rate

Request

JSON
Copy

Response

JSON
Copy

4 Get Price Schedule

Request

JSON
Copy

Response

JSON
Copy

5 Get Availability

Request

JSON
Copy

Response

JSON
Copy

6 Create Hold

Request

JSON
Copy

Response

JSON
Copy

7 Create Booking

Request

JSON
Copy

Response

JSON
Copy

8 Cancel Booking

Request

JSON
Copy

Response

No response body, only 200 or other errors

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard