{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"properties":{"order_id":{"description":"The order ID you wish to change","type":"string","maxLength":16000},"private_fares":{"additionalProperties":true,"description":"The private fare codes for this order change request. The key is the airline's IATA code that provided the private fare code. The `corporate_code` and `tour_code` are provided to you by the airline and the `tracking_reference` is to identify your business by the airlines. The private fares for Order Change Requests work in much the same way as they do when searching for an offer request","type":"object","maxProperties":100},"slices":{"description":"The [slices](/docs/api/overview/key-concepts) that make up this offer request. One-way journeys can be expressed using one slice, whereas return trips will need two.","properties":{"add":{"description":"The search criteria for slices which you wish to add to your order","items":{"description":"The search criteria for a slice to be added","properties":{"cabin_class":{"anyOf":[{"description":"The cabin that the passengers want to travel in","enum":["first","business","premium_economy","economy"],"type":"string","maxLength":16000},{"type":"null"}]},"departure_date":{"description":"The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the passengers want to depart","format":"date","type":"string","maxLength":16000},"destination":{"description":"The 3-letter IATA code for the city or airport where this slice ends","type":"string","maxLength":16000},"origin":{"description":"The 3-letter IATA code for the city or airport where this slice starts","type":"string","maxLength":16000}},"type":"object","maxProperties":100},"type":"array","maxItems":100},"remove":{"description":"The slices that you wish to remove from your order","items":{"description":"The slice ID for the slice to be removed","properties":{"slice_id":{"description":"Duffel's unique identifier for the resource","type":"string","maxLength":16000}},"type":"object","maxProperties":100},"type":"array","maxItems":100}},"type":"object","maxProperties":100}},"required":["order_id"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["data"],"additionalProperties":false},"name":"Flights: Create an order change request","id":"duffel.api.air.order-change-requests.create","example":{"data":{"slices":{"remove":[{"slice_id":"xxx_00009hthhsUZ8W4LxQgkjo"}],"add":[{"origin":"LHR","destination":"JFK","departure_date":"2020-04-24","cabin_class":"economy"}]},"private_fares":{"UA":[{"corporate_code":"1234","tour_code":"578DFL"}]},"order_id":"ord_0000A3bQ8FJIQoEfuC07n6"}},"maxRequests":1,"summary":false}}