# Generate a registration request PDF `POST /api/v1/presubscriptions/{id}/print` Generates a PDF of the registration request. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Presubscriptions → Write**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Path parameters - `id` (integer, required) — ID of the registration request. ## Body parameters - `template_id` (integer) — ID of an optional template override. ## 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/presubscriptions/${ID:?Set ID}/print" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --header "Content-Type: application/json" \ --data '{"template_id":29}' ``` ## Response **200 OK** Returns the generated PDF URL. The chosen print template is saved on the request. Example with fictional data and selected fields. ```json { "status": "success", "message": { "message_key": "entities.presubscription.messages.print_success" }, "url": "https://files.example.com/demo-registration.pdf" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `422` — The PDF could not be generated.