Prepare a flight offer email
egf_prepare_flight_offerChecks an email that would send one fare from a flight search to the traveller as a formal offer, and returns who it goes to and what it offers, with a confirmation_token valid for 15 minutes. Nothing is sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Traveller's name, used to address the email. | |
| Yes | Where to send the offer. | ||
| adults | No | Adults on the offer. Defaults to 1. | |
| infants | No | Lap infants on the offer. | |
| message | No | A sentence or two of context for the traveller, e.g. why this option was chosen. | |
| children | No | Children on the offer. | |
| offer_id | Yes | offer_id of the chosen fare, exactly as the flight search returned it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| Yes | Where the offer would go. | ||
| price | No | Per person, when the search is still held. | |
| adults | Yes | ||
| infants | Yes | ||
| carriers | No | ||
| children | Yes | ||
| offer_id | Yes | ||
| departure | No | Local departure, ISO 8601 (YYYY-MM-DDTHH:MM). | |
| expires_at | Yes | ISO 8601 date-time after which the token is refused. | |
| confirmation_token | Yes | Authorises sending exactly this email. |