{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"path":{"type":"object","properties":{"id":{"type":"string","minLength":2,"maxLength":100,"pattern":"^[A-Za-z][A-Za-z0-9_-]+$"}},"required":["id"],"additionalProperties":false},"data":{"properties":{"add_services":{"description":"The services you want to add to the order.","items":{"properties":{"id":{"description":"The `id` of the service from the offer's `available_services` that you want to book","type":"string","maxLength":16000},"quantity":{"description":"The quantity of the service to book. This will always be `1` for seat services.","minimum":1,"type":"integer"}},"required":["id","quantity"],"type":"object","maxProperties":100},"type":"array","maxItems":100},"payment":{"description":"The payment details to pay for the services.","properties":{"amount":{"description":"The amount of the payment.\n\nThis should be the same as the `total_amount` of all the services specified in\n`add_services`.\n","type":"string","maxLength":16000},"currency":{"description":"The currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.","type":"string","maxLength":16000},"type":{"description":"The type of payment you want to apply to the services.\n\nYou must pay using your Duffel account's balance by specifying `balance`.\nIn [test mode](/docs/api/overview/test-mode), your balance is unlimited.\n","enum":["balance"],"type":"string","maxLength":16000}},"required":["type","amount","currency"],"type":"object","maxProperties":100}},"required":["add_services","payment"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["path","data"],"additionalProperties":false},"name":"Flights: Add a service to an order","id":"duffel.api.air.orders.services.create","example":{"path":{"id":"resource_fixture"},"data":{"payment":{"type":"balance","currency":"GBP","amount":"30.20"},"add_services":[{"quantity":1,"id":"ase_00009hj8USM7Ncg31cB123"}]}},"maxRequests":1,"summary":false}}