Splitting an order

High level example API flow for splitting an order. This feature is still in development.

Splitting an order creates two orders from one. One or more passengers are split off the original order. The new order then has its own reference and can be serviced without interfering with the original order.

Splitting an order takes at least 2 steps:

  1. Split the order - POST /v1/servicing/orderSplit?supplierCode=BAE&supplierBookingReference=abcd

    • Set the request URL parameters as appropriate
    • NOTE request body has been omitted from this example
    • The request body must contain two lists of passenger DIDs indicating which passengers are to be moved to the new order
      • To find the DID for a given passenger check the order retrieval response
    • If initially successful the response will then need polling
  2. Poll for response - GET /v1/servicing/orderSplit/poll?asyncOperationToken=b3604d53-2e29-4d03-923d-565a98d7ad1e

    • asyncOperationToken is from previous response
    • Multiple polls may be required
    • The response if successful will show the new order that has been split off the original one
      • bookingReferences can be checked to find the ORDER_ID of this new order