{"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":{"intended_payment_methods":{"description":"The payment methods you intend to use to pay for the offer.","items":{"oneOf":[{"additionalProperties":false,"properties":{"card_id":{"description":"The ID of the card you intend to pay with","type":"string","maxLength":16000},"type":{"description":"The type of payment method you intend to use","enum":["card"],"type":"string","maxLength":16000}},"required":["type","card_id"],"type":"object","maxProperties":100},{"additionalProperties":false,"properties":{"airline_credit_id":{"description":"The ID of the airilne credit you intend to pay with","type":"string","maxLength":16000},"type":{"description":"The type of payment method you intend to use","enum":["airline_credit"],"type":"string","maxLength":16000}},"required":["type","airline_credit_id"],"type":"object","maxProperties":100}]},"type":"array","maxItems":100},"intended_services":{"description":"The services you intend to book along with the offer.","items":{"additionalProperties":false,"properties":{"id":{"description":"Duffel's unique identifier for the resource","type":"string","maxLength":16000},"quantity":{"description":"The quantity of the service you intend 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}},"required":["intended_payment_methods","intended_services"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["path","data"],"additionalProperties":false},"name":"Flights: Price an offer with intended payment methods","id":"duffel.api.air.offers.price","example":{"path":{"id":"resource_fixture"},"data":{"intended_services":[{"quantity":1,"id":"ase_00009UhD4ongolulWd9123"}],"intended_payment_methods":[{"type":"card","card_id":"tcd_0000A3t2sL46m5eDF45kWW"},{"type":"airline_credit","airline_credit_id":"acd_0000A3t2sL46m5eDF45kWW"}]}},"maxRequests":1,"summary":false}}