# Generate an invoice PDF `POST /api/v1/invoices/{id}/print` Generates a PDF for one certification. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Invoices → Write**. ## Path parameters - `id` (integer, required) — ID of the invoice. ## Body parameters - `template_id` (integer) — Override the configured print template for this request. ## 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/invoices/${ID:?Set ID}/print" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"template_id":27}' ``` ## Response **200 OK** Returns the PDF URL in `url`. Example with fictional data and selected fields. ```json { "status": "success", "message": { "message_key": "entities.invoice.messages.print_success" }, "url": "https://files.example.com/certification-demo.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.