Use document sequencing to generate new IDs automatically for common transactions and records, such as new customers, vendors, invoices, and more. For example, you can create a document sequence for invoices. This new sequence automatically creates a new ID, such as 'INV-0100' and increments the number each time a new invoice is created.
Note: Document sequences are called "accounting sequences" in the General Ledger.
Returns up to 100 document sequences from the collection with a key, ID, and link for each sequence. This operation is mostly for use in testing; use the query service to find document sequences that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "37",
- "id": "BOA_ACH_BatchNo",
- "href": "/objects/company-config/document-sequence/37"
}, - {
- "key": "27",
- "id": "Purchase Order",
- "href": "/objects/company-config/document-sequence/27"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new document sequence.
Document sequence to create
id required | string Unique name for the document sequence. Example: "Vendors" | ||||||||||||||||
printTitle | string The sequence name that prints on invoice PDFs. Example: "Vendors" | ||||||||||||||||
type | string Default: "numeric" Numeric or alpha sequence. Alpha sequences are currently only available for use with Cash Management, or French companies. Example: "numeric" | ||||||||||||||||
fixedLength | string or null The total length of the primary sequence, including any padding characters, up to 16 characters. Numeric sequences will be padded with zeroes and alpha sequence will be padded with a's. Example: "16" | ||||||||||||||||
fixedPrefix | string Characters that appear before the primary sequence. Example: "INV" | ||||||||||||||||
prefixSeparator | string Characters to use between the prefix and the auto-generated sequence. Example: "-" | ||||||||||||||||
fixedSuffix | string Characters that appear after the primary sequence. Example: "COMPANY" | ||||||||||||||||
suffixSeparator | string Characters to use between the auto-generated sequence and the suffix. Example: "-" | ||||||||||||||||
startingNumber | integer or null Starting number for Example: 1 | ||||||||||||||||
endingNumber | integer or null Ending number for Example: 100 | ||||||||||||||||
nextNumber | integer or null Next number. Required when Example: 1 | ||||||||||||||||
startingSequence | string or null Starting sequence value. Required when Example: "a" | ||||||||||||||||
endingSequence | string or null Ending sequence Example: "zzz" | ||||||||||||||||
nextSequence | string or null Next sequence. Required when Example: "a" | ||||||||||||||||
whenModified | string <date-time> Date and time when the document sequence was last modified. Example: "2024-04-01T11:28:12Z" | ||||||||||||||||
object Fiscal year rollover configuration for the document sequence, which will automatically restart the document sequence for each fiscal year.
Use the | |||||||||||||||||
| |||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
Created
Bad Request
{- "id": "Vendor Invoice",
- "printTitle": "Vendor Invoice",
- "type": "numeric",
- "fixedPrefix": "P",
- "fixedSuffix": "S",
- "prefixSeparator": "-",
- "suffixSeparator": "-",
- "startingNumber": 1,
- "endingNumber": null,
- "nextNumber": 1,
- "fixedLength": "4",
- "rollover": {
- "isEnabled": true,
- "fiscalYearAffixPosition": "prefix",
- "separator": "-",
- "fiscalYears": [
- {
- "fiscalYear": 2025,
- "nextNumber": 2025
}, - {
- "fiscalYear": 2026,
- "nextNumber": 2026
}
]
}
}
{- "ia::result": {
- "key": "107",
- "id": "Vendor Invoice",
- "href": "/objects/company-config/document-sequence/107"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a particular document sequence.
key required | string System-assigned key for a document sequence. Example: 107 |
OK
Bad Request
{- "ia::result": {
- "key": "107",
- "id": "BOA_ACH_BatchNo",
- "printTitle": "BOA_ACH_BatchNo",
- "fixedPrefix": "P",
- "fixedSuffix": "S",
- "prefixSeparator": "-",
- "suffixSeparator": "-",
- "startingNumber": 1,
- "endingNumber": null,
- "nextNumber": 1,
- "whenModified": "2014-01-08T11:28:12Z",
- "fixedLength": null,
- "status": "active",
- "type": "numeric",
- "startingSequence": null,
- "endingSequence": null,
- "nextSequence": null,
- "entity": {
- "key": "54",
- "id": "Western Region",
- "name": "Western Region",
- "href": "/objects/company-config/entity/54"
}, - "rollover": {
- "isEnabled": true,
- "enabledDate": "2024-02-14",
- "fiscalYearAffixPosition": "prefix",
- "separator": "-"
}, - "audit": {
- "createdDateTime": "2014-01-08T11:28:12Z",
- "modifiedDateTime": "2014-01-08T11:28:12Z",
- "createdBy": "109",
- "modifiedBy": "109"
}, - "fiscalYears": [
- {
- "id": "646",
- "key": "646",
- "documentSequence": {
- "key": "405"
}, - "fiscalYear": 2026,
- "nextNumber": 2026,
- "nextSequence": null,
- "audit": {
- "createdDateTime": "2024-02-14T12:34:02Z",
- "modifiedDateTime": "2024-02-14T12:34:02Z",
- "createdBy": "109",
- "modifiedBy": "109"
}
}, - {
- "id": "645",
- "key": "645",
- "documentSequence": {
- "key": "405"
}, - "fiscalYear": 2025,
- "nextNumber": 2025,
- "nextSequence": null,
- "audit": {
- "createdDateTime": "2024-02-14T12:34:02Z",
- "modifiedDateTime": "2024-02-14T12:34:02Z",
- "createdBy": "109",
- "modifiedBy": "109"
}
}
], - "href": "/objects/company-config/document-sequence/107"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing document sequence by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for a document sequence. Example: 107 |
printTitle | string The sequence name that prints on invoice PDFs. Example: "Vendors" | ||||||||||||||||
type | string Default: "numeric" Numeric or alpha sequence. Alpha sequences are currently only available for use with Cash Management, or French companies. Example: "numeric" | ||||||||||||||||
fixedLength | string or null The total length of the primary sequence, including any padding characters, up to 16 characters. Numeric sequences will be padded with zeroes and alpha sequence will be padded with a's. Example: "16" | ||||||||||||||||
fixedPrefix | string Characters that appear before the primary sequence. Example: "INV" | ||||||||||||||||
prefixSeparator | string Characters to use between the prefix and the auto-generated sequence. Example: "-" | ||||||||||||||||
fixedSuffix | string Characters that appear after the primary sequence. Example: "COMPANY" | ||||||||||||||||
suffixSeparator | string Characters to use between the auto-generated sequence and the suffix. Example: "-" | ||||||||||||||||
startingNumber | integer or null Starting number for Example: 1 | ||||||||||||||||
endingNumber | integer or null Ending number for Example: 100 | ||||||||||||||||
nextNumber | integer or null Next number. Required when Example: 1 | ||||||||||||||||
startingSequence | string or null Starting sequence value. Required when Example: "a" | ||||||||||||||||
endingSequence | string or null Ending sequence Example: "zzz" | ||||||||||||||||
nextSequence | string or null Next sequence. Required when Example: "a" | ||||||||||||||||
whenModified | string <date-time> Date and time when the document sequence was last modified. Example: "2024-04-01T11:28:12Z" | ||||||||||||||||
object Fiscal year rollover configuration for the document sequence, which will automatically restart the document sequence for each fiscal year.
Use the | |||||||||||||||||
| |||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
OK
Bad Request
{- "prefixSeparator": "-"
}
{- "ia::result": {
- "key": "107",
- "id": "BOA_ACH_BatchNo",
- "href": "/objects/company-config/document-sequence/107"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a document sequence.
key required | string System-assigned key for a document sequence. Example: 107 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}