# Email a payment receipt `POST /api/v1/payments/{id}/send` Emails a system receipt to one recipient. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Payments → Write**. ## Headers - `X-Sport-Id` (integer) — Send the sport ID when the payment belongs to a sport. ## Path parameters - `id` (integer, required) — ID of the payment. ## Body parameters - `email` (string, required) — Recipient email address. Alias email_to. - `body_html` (string, required) — HTML email body. Alias body. - `subject` (string) — Email subject. - `msg` (string) — Optional extra message. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/payments/${ID:?Set ID}/send" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"email":"alex@example.com","subject":"Your club receipt","body_html":"

Your receipt is ready.

"}' ``` ## Response **200 OK** Returns a confirmation and, when available, the receipt link. Example with fictional data and selected fields. ```json { "status": "success", "message": { "message_key": "entities.payment.messages.send_success" }, "receipt_link": "https://files.example.com/demo-receipt-link" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — The supplied fields or payment state do not allow this action. - `404` — The requested record was not found. - `503` — The receipt link could not be prepared.