Duffel API Changing an Order Collection

Number of APIs: 5

A walkthrough on how to make changes to an order using the Duffel API.

In order to follow this guide, we recommend you go first through our Duffel API Quick Start Collection where we cover how to make an order through our API.

In order to follow this guide, you'll need to:

  • Sign up for a Duffel Account (it takes about 1 minute!)
  • Create a test token from the Access Tokens page in your Dashboard and paste it in the Authorization section of the Qodex Collection (Don't forget to hit save afterwards)
  • Copy the id of the order you created in the Quick Start guide, and paste it as value for ORDER_ID in the Variables section of the Qodex Collection (Don't forget to hit save afterwards)

Our requests have a pre-defined sequence to replicate creating a booking in a real world scenario: 1. Getting a single order 2. Creating an order change request 3. Reviewing the available order change request offers 4. Creating a pending order change 5. Confirming an order change

NOTE: By running the requests in the sequence mentioned above, you'll get most fields automatically pre-filled for you.

  1. Create an order change request POST https://api.duffel.com/air/order_change_requests

  2. Review available order change offers GET https://api.duffel.com/air/order_change_requests/{{ORDER_CHANGE_REQUEST_ID}}

  3. Create a pending order change POST https://api.duffel.com/air/order_changes

  4. Confirm an order change POST https://api.duffel.com/air/order_changes/{{ORDER_CHANGE_ID}}/actions/confirm

  5. Getting a single order GET https://api.duffel.com/air/orders/{{ORDER_ID}}