These presets provide flexibility in customizing document numbering.
The API resources / Organization Sales Setup includes two fields to define the default presets: one for invoices and another for credit notes.
✨ Ask AI
| HTTP | Operation | Type | Object |
|---|---|---|---|
| Query | operationalNumberPresetTexts filtered by id Why? |
||
| Query | operationalNumberPresetTexts |
The API resources / Organization Sales Setup includes two fields to define the default presets: one for invoices and another for credit notes.
query {
operationalNumberPresetTexts(
where: {
operation: { eq: INVOICE }
}
) {
edges {
node {
id
description
isDefault
operation
presetText
}
}
}
}
{
"data": {
"operationalNumberPresetTexts": {
"edges": [
{
"node": {
"id": "01234567-89ab-cdef-0123-456789abcdef",
"description": "Default invoice prefix",
"isDefault": true,
"operation": "INVOICE",
"presetText": "INV"
}
}
]
}
}
}
| Key | Value |
|---|---|
Authorization |
Bearer Current access Token How to find? |
X-TenantId |
Current tenant id Why deprecated ? |
X-OrganizationId |
Current organization Id How to find? |
x-api-key |
Primary or secondary subscription key of your app How to find? |
| Fields | Type | Description |
|---|---|---|
| id |
UUID | Id |
| creationDate |
DateTime | Creation date |
| modificationDate |
DateTime | Modification date |
| description | String | Description of the preset text |
| isDefault | Boolean | Indicates if it is the default preset |
| operation |
|
Operation type related to the preset |
| operationalNumberSeriesType |
|
Operational number series type |
| presetText | String | Preset text |