{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"additionalProperties":false,"properties":{"driver":{"additionalProperties":false,"properties":{"date_of_birth":{"description":"The driver date of birth.","format":"date","type":"string","maxLength":16000},"email":{"description":"The driver email address.","format":"email","pattern":".+@.+","type":"string","maxLength":16000},"family_name":{"description":"The driver family name.","minLength":2,"type":"string","maxLength":16000},"given_name":{"description":"The driver given name.","minLength":2,"type":"string","maxLength":16000},"phone_number":{"description":"The driver phone number in E.164 format.","type":"string","maxLength":16000},"user_id":{"anyOf":[{"description":"The customer user `id` that is associated with the driver. This will allow the driver to manage their booking.","type":"string","maxLength":16000},{"type":"null"}]}},"required":["given_name","family_name","email","phone_number","date_of_birth"],"type":"object","maxProperties":100},"inbound_flight_number":{"anyOf":[{"description":"The inbound flight number, if applicable.","type":"string","maxLength":16000},{"type":"null"}]},"metadata":{"anyOf":[{"description":"Metadata contains a set of key-value pairs that you can attach to an object. It can be useful for storing additional information about the object, in a structured format. Duffel does not use this information. You should not store sensitive information in this field.\nThe metadata is a collection of key-value pairs, both of which are strings. You can store a maximum of 50 key-value pairs, where each key has a maximum length of 40 characters and each value has a maximum length of 500 characters.\nKeys must only contain numbers, letters, dashes, or underscores.\n","type":"object","maxProperties":100},{"type":"null"}]},"payment":{"anyOf":[{"additionalProperties":false,"description":"Payment information for the booking.","properties":{"method":{"description":"The payment method.","enum":["card"],"type":"string","maxLength":16000},"three_d_secure_session_id":{"description":"The identifier of the 3DS session to use for payment.","type":"string","maxLength":16000}},"required":["method","three_d_secure_session_id"],"type":"object","maxProperties":100},{"type":"null"}]},"quote_id":{"description":"The identifier of the quote to book.","type":"string","maxLength":16000},"supplier_loyalty_programme_account_number":{"anyOf":[{"description":"The supplier loyalty programme account number, if applicable.","type":"string","maxLength":16000},{"type":"null"}]},"users":{"description":"The `id`s of customer users that would be allowed to manage the booking.","items":{"type":"string","maxLength":16000},"type":"array","maxItems":100}},"required":["quote_id","driver"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["data"],"additionalProperties":false},"name":"Cars: Create a Booking","id":"duffel.api.cars.bookings.create","example":{"data":{"users":["icu_0000B0nwceAOyWuOFJ23NJ"],"quote_id":"qut_0000Bx4Af0b5l45AT50eqO","payment":{"three_d_secure_session_id":"3ds_0000A3t2sL46m5eDF45kWW","method":"card"},"metadata":{"custom_field":"custom_value_123"},"driver":{"user_id":"icu_0000B0nwceAOyWuOF3pz1M","phone_number":"+442080160509","given_name":"Amelia","family_name":"Earheart","email":"amelia.earheart@duffel.com","date_of_birth":"1990-01-01"}}},"maxRequests":1,"summary":false}}