# Get the next receipt number `GET /api/v1/payments/{year}/goodone` Returns the indicative next receipt number for a year. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Payments → Read**. ## Path parameters - `year` (integer, required) — Fiscal year, 1970–9999. For series and document dates, use [Preview receipt numbering](/api/payments/receipt-preview.md). ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/payments/${YEAR:?Set YEAR}/goodone" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Response **200 OK** Returns the next number without reserving it. Example with fictional data and selected fields. ```json { "status": "success", "number": 15 } ``` ## 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.