{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"properties":{"order_id":{"description":"The `id` of the order you want to pay for.","type":"string","maxLength":16000},"payment":{"description":"The payment details to use to pay for the order","properties":{"amount":{"description":"The amount of the payment for the order, plus selected services.\nThis should be the `total_amount` of the order you're paying for plus the `total_amount`s of all of the services specified under the `services` of the order.","type":"string","maxLength":16000},"currency":{"description":"The currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.\nThis should be the `total_currency` of the order.","type":"string","maxLength":16000},"three_d_secure_session_id":{"description":"The `id` of the 3DSecure Session ID. This is the authentication when paying by [card](/docs/api/v2/card).","type":"string","maxLength":16000},"type":{"description":"The payment method you want to use for this order.\nIf you are an IATA agent with your own agreements with airlines, in some cases, you can pay using ARC/BSP cash by specifying `arc_bsp_cash`.\nYou must pay using your Duffel account's balance by specifying `balance`. In [test mode](/docs/api/overview/test-mode), your balance is unlimited.\nOtherwise, you can pay by [card](docs/api/v2/card). If you're not sure which of these options applies to you, get in touch with the Duffel support team at <help@duffel.com>.","enum":["arc_bsp_cash","balance","card"],"type":"string","maxLength":16000}},"required":["type","amount","currency"],"type":"object","maxProperties":100}},"required":["order_id","payment"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["data"],"additionalProperties":false},"name":"Flights: Create a payment","id":"duffel.api.air.payments.create","example":{"data":{"payment":{"type":"balance","three_d_secure_session_id":"3ds_0000AWr2XsTRIF1Vp34gh5","currency":"GBP","amount":"30.20"},"order_id":"ord_00003x8pVDGcS8y2AWCoWv"}},"maxRequests":1,"summary":false}}