{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"properties":{"airline_iata_code":{"description":"The two-character IATA code for the airline that issued this credit","type":"string","maxLength":16000},"amount":{"description":"The monetary value of this airline credit","type":"string","maxLength":16000},"amount_currency":{"description":"The currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.\n","type":"string","maxLength":16000},"code":{"description":"The code which identifies the airline credit to the airline and will be used to redeem the airline credit","type":"string","maxLength":16000},"expires_at":{"description":"The datetime at which the airline credit expires and will no longer be eligible for payment","type":"string","maxLength":16000},"family_name":{"description":"The family name of the customer this credit is for.\n\nRequired if `user_id` is not provided.\n","type":"string","maxLength":16000},"given_name":{"description":"The given name of the customer this credit is for.\n\nRequired if `user_id` is not provided.\n","type":"string","maxLength":16000},"issued_on":{"description":"The date the airline credit was issued by the airline","format":"date","type":"string","maxLength":16000},"type":{"description":"Type of the airline credit","enum":["eticket","mco","emd"],"type":"string","maxLength":16000},"user_id":{"description":"Duffel's unique identifier for the customer user that the credit should be associated with.\n\nEither provide `user_id` or both `given_name` and `family_name`.\n","type":"string","maxLength":16000}},"required":["code","amount","amount_currency","issued_on","airline_iata_code","expires_at","type"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["data"],"additionalProperties":false},"name":"Flights: Create an airline credit","id":"duffel.api.air.airline-credits.create","example":{"data":{"user_id":"icu_00009hj8USM7Ncg31cBCLL","type":"eticket","issued_on":"2020-04-11","given_name":"John","family_name":"Smith","expires_at":"2024-04-11T15:48:11.642Z","code":"1234567890123","amount_currency":"GBP","amount":"90.80","airline_iata_code":"AA"}},"maxRequests":1,"summary":false}}