The Spanish version is the authoritative reference. View in Spanish
GetNextNumber
POST /GetNextNumber
Prepend the Emission API URL for the environment (SBX or PRD) as the base.
Delivers the next available number from the primary range for a centralized profile biller. Must be invoked before issuing each document.
warning
The delivered number stays reserved and cannot be reused.
| Parameter | Type | Req. | Description |
|---|---|---|---|
countryId | string | Required | ISO country code |
accountCode | string | Required | Company tax ID (TaxId) |
billerId | string (UUID) | Required | ID of the biller requesting the number |
documentTypeId | int | Required | Document type to issue |
serie | string | Optional | Document series (depends on country) |
author | string | Required | User or system executing the operation (audit) |
GetNextNumber
{
"countryId": "py",
"accountCode": "{{taxId}}",
"billerId": "{{billerId}}",
"documentTypeId": 1,
"author": "user@empresa.com"
}The response includes the series, the assigned number, the document type and the assignment identifier.
Under construction
Response example pending validation.