# Resend a traveller email (/docs/api-reference/orders/resend-email)

`POST /v1/orders/{id}/emails/resend`

Sends an email of a hosted-site order to its traveller again.

For a traveller who did not receive an email. The body names the email: `{"type":"receipt"}`, the receipt
of what was charged to the traveller's card, or `{"type":"delivery","orderItemId":"..."}`, one item's
delivery email (its codes, eSIM installation, top-up or booking confirmation). The email is built as the order
reads now, in the site's brand and the traveller's language, and goes only to the address the traveller gave
at checkout; the body takes no address. Requires the `manage` order permission; a site credential can
send its own site's emails.
            
Returns `{ orderId, type, orderItemId, recipient }`, the address masked, once the email service took the
email. An order of another partner, or an item not in the order, is `404` / `10004`. An order with
no traveller email address (not placed on a hosted site, or the traveller's details were erased) is
`422` / `18006` (`EMAIL_NOT_SUPPORTED`), reason `NO_TRAVELLER_EMAIL`. An email that cannot
be sent now is `409` / `18007` (`EMAIL_NOT_AVAILABLE`) with `details[0].reason`:
`NOTHING_TO_SEND` (nothing was charged yet, or the item is not delivered yet), `NOT_ELIGIBLE` (the
item was rejected or refunded, its codes are withheld, or what it delivered has ended), `IN_PROGRESS` (a
refund or another change of the order is running; try again shortly), `EMAILS_OFF`, or
`UNSUBSCRIBED` (path `id`: the traveller unsubscribed from the site's emails; it stays so until they
resubscribe). An order's emails
can be sent again five times in any hour, across every credential; past that, `429` / `10006`
(`RATE_LIMITED`), reason `RATE_LIMITED`, with `Retry-After`. A refusal of the email service
is `503` / `10007` (with `Retry-After` when known) or `502` / `10008`; nothing was
sent, so send the same request again.
            
Requires an `Idempotency-Key` header (a UUID). The same key and body never send twice: a completed request
answers as it did, one still running is `409` / `12002`, and a different body `409` /
`12001`. Sending the email again later needs a new key.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | `string` | Order id (`id` from the order response). |
| `Idempotency-Key` | header | yes | `string` | UUID idempotency key for safe retries of this operation. |

## Request body

- `application/json`: `OrderEmailResendRequest`
- `text/json`: `OrderEmailResendRequest`
- `application/*+json`: `OrderEmailResendRequest`

## Responses

### 200

OK

- `text/plain`: `OrderEmailResendResult`
- `application/json`: `OrderEmailResendResult`
- `text/json`: `OrderEmailResendResult`

### 400

Invalid partner request or model validation failure.

- `application/json`: `ErrorResponse`

### 401

Unauthorized

- `text/plain`: `ErrorResponse`
- `application/json`: `ErrorResponse`
- `text/json`: `ErrorResponse`

### 403

Forbidden

- `text/plain`: `ErrorResponse`
- `application/json`: `ErrorResponse`
- `text/json`: `ErrorResponse`

### 404

Not Found

- `text/plain`: `ErrorResponse`
- `application/json`: `ErrorResponse`
- `text/json`: `ErrorResponse`

### 409

The idempotency key: a request with this key is still running (12002): send the same request, key and body again after Retry-After seconds; or it was used for a different request (12001). A finished request sent again with the same key and body returns 200 with the result of the first call, rebuilt from the record that call created as it reads now: nothing runs again, and a status that has moved on since shows its current value.

- `application/json`: `ErrorResponse`

### 422

Unprocessable Content

- `text/plain`: `ErrorResponse`
- `application/json`: `ErrorResponse`
- `text/json`: `ErrorResponse`

### 429

Too many requests from this IP address. Wait for Retry-After seconds, then send the same request again; an order keeps its Idempotency-Key and body.

- `application/json`: `ErrorResponse`

### 502

Bad Gateway

- `text/plain`: `ErrorResponse`
- `application/json`: `ErrorResponse`
- `text/json`: `ErrorResponse`

### 503

Idempotency state is temporarily unavailable; retry the same request and key.

- `application/json`: `ErrorResponse`

The full schemas are in the OpenAPI specification at /openapi.json.