Get next value

Get next sequence value

post/services/company-config/document-sequence/get-next-sequence

Increments and returns the next sequence value for a specified document sequence, optionally for a specified fiscal year.

SecurityOAuth2
Request
Request Body schema: application/json
One of:

get-next-sequence request

key
required
string

Document sequence key.

Example: "14"
id
string

Document sequence ID.

Example: "AR Inv"
fiscalYear
integer

Fiscal year. If fiscal year rollover is not enabled for the document sequence, this field has no effect.

Example: 2024
Responses
200

Executed

400

Bad Request

Request samples
application/json
{
  • "id": "AR Inv"
}
Response samples
application/json
{
  • "ia::result": {
    • "id": "AR Inv",
    • "nextSequence": "INV-16"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}