{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"path":{"type":"object","properties":{"booking_id":{"type":"string","minLength":2,"maxLength":100,"pattern":"^[A-Za-z][A-Za-z0-9_-]+$"}},"required":["booking_id"],"additionalProperties":false},"data":{"properties":{"approved_charges":{"description":"Describes what kinds of charges are approved for this payment instruction.\n\nThe accommodation should charge the provided card for all approved\ncharges, and charge the guest for the rest.\n","properties":{"base":{"description":"Whether the accommodation should charge the provided card for the base price of the booking.","type":"boolean"},"fees":{"description":"Whether the accommodation should charge the provided card for the fees of the booking.","type":"boolean"},"other":{"anyOf":[{"description":"Any other approved charges, as free text items.","type":"string","maxLength":16000},{"type":"null"}]},"taxes":{"description":"Whether the accommodation should charge the provided card for the taxes of the booking.","type":"boolean"}},"required":["base","taxes","fees"],"type":"object","maxProperties":100},"card_id":{"description":"The `id` of the payment card to use for payment.\n\nThe card must be a lodged card (created with `multi_use` set to `true`).\n","type":"string","maxLength":16000},"invoice":{"description":"Describes where to send the invoice for this charge.","properties":{"address_city":{"type":"string","maxLength":16000},"address_country_code":{"type":"string","maxLength":16000},"address_line_1":{"type":"string","maxLength":16000},"address_line_2":{"type":"string","maxLength":16000},"address_postal_code":{"type":"string","maxLength":16000},"address_region":{"type":"string","maxLength":16000},"company_name":{"type":"string","maxLength":16000},"send_to":{"type":"string","maxLength":16000}},"required":["company_name","address_line_1","address_city","address_region","address_postal_code","address_country_code","send_to"],"type":"object","maxProperties":100},"limit_amount":{"description":"The limit of the approved amount. The accommodation should not charge the provided card more than this amount.","type":"string","maxLength":16000},"limit_currency":{"description":"The currency of the `limit_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.","type":"string","maxLength":16000}},"required":["card_id","approved_charges","limit_amount","limit_currency","invoice"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["path","data"],"additionalProperties":false},"name":"Stays: Creating a booking payment instruction","id":"duffel.api.stays.bookings.payment-instructions.create","example":{"path":{"booking_id":"resource_fixture"},"data":{"limit_currency":"USD","limit_amount":"1437.55","invoice":{"send_to":"invoice@merchant.io","company_name":"Merchant","address_region":"London","address_postal_code":"SW1A 2AA","address_line_2":"Westminster","address_line_1":"10 Downing St","address_country_code":"GB","address_city":"London"},"card_id":"tcd_0000AS0NZdKjjnnHZmSUbI","approved_charges":{"taxes":true,"other":"Parking up to $50. Food up to $20","fees":true,"base":true}}},"maxRequests":1,"summary":false}}