Upsert expense templates in a batch
Upsert expense templates atomically. Send an array of complete writable records, each with its resource ID. One invalid record rejects the entire batch.
Body parameters
Display name of the resource.
Minimum length: 1 character. · Maximum length: 255 characters.
Office cleaningHuman-readable description of the resource.
Maximum length: 10000 characters.
Monthly office cleaning serviceNotes attached to the record.
Maximum length: 10000 characters.
Office cleaning service for January 2026ID of the related vendor.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1COptional client reference. Null means the current workspace owns the record; do not create a placeholder client.
Must be present and may be null.
Minimum length: 1 character. · Maximum length: 128 characters.
nullProject identifier within the current workspace.
Must be present and may be null.
Minimum length: 1 character. · Maximum length: 128 characters.
nullID of the related bank account.
Must be present and may be null.
Minimum length: 1 character. · Maximum length: 128 characters.
nullTags assigned to the record.
at most 100 items
1 itemrecurrence months for this expense template.
maximum 1200 · greater than 0
1Currency identifier for the amount. It selects the currency metadata used by the record.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1FApplied economic entries. Each entry is a reusable priced unit for a product, service, plan, or other calculable line. Entry prices are authored net prices; the workspace tax modifier calculates VAT.
ShowHide 7 properties
Opaque identifier for this resource or reference.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1HStable identity of this saved modifier application. Preserve it when updating a financial record, including repeated uses of the same catalog modifier.
Minimum length: 1 character. · Maximum length: 128 characters.
Consulting servicesDisplay name of the resource.
Maximum length: 10000 characters.
Office cleaningHuman-readable description of the resource.
Maximum length: 10000 characters.
Monthly office cleaning serviceExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
3.00Unit code from the workspace catalog.
Minimum length: 1 character. · Maximum length: 128 characters.
itemExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
50.00Modifiers applied to one entry or the whole source. Supported values are signed fixed amounts or percentages, such as `15.00%` or `-25.00`; arbitrary multiplication and division are not supported.
at most 1000 items
ShowHide 6 properties
Opaque identifier for this resource or reference.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1JStable identity of this saved modifier application. Preserve it when updating a financial record, including repeated uses of the same catalog modifier.
Minimum length: 1 character. · Maximum length: 128 characters.
Consulting servicesDisplay name of the resource.
Minimum length: 1 character. · Maximum length: 10000 characters.
VATHuman-readable description of the resource.
Maximum length: 10000 characters.
Value added taxentry index within modifiers.
100Modifier value. A trailing `%` marks a percentage; a leading `-` marks a decrease. Modifiers support fixed or percentage adjustments, not arbitrary multiplication or division.
Maximum length: 128 characters.
15.00%Opaque identifier for this resource or reference.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1SISO 8601 timestamp for started.
Must be present and may be null.
2026-01-15T12:00:00.000ZISO 8601 timestamp for ended.
Must be present and may be null.
2026-01-15T12:00:00.000ZTimestamp used for stale-edit protection. Preserve the server value when updating.
2026-01-15T12:00:00.000ZHeaders
Bearer workspace API key.
Bearer $NQD_API_KEYWorkspace scope for the request. Required for workspace operations and must belong to the authenticated identity.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1ASend the complete writable representation or change set. Use the latest updatedAt for If-Match.
Recurring templates store schedules. The recurring process creates due records and payments.
Response
Response headers
Returned records. Collections and batches use an array; single records use an object.
ShowHide 28 properties
Opaque identifier for this resource or reference.
01JQ2T5Y5Q3R8W9N6M4K2H7P1SID of the related vendor.
01JQ2T5Y5Q3R8W9N6M4K2H7P1COptional client reference. Null means the current workspace owns the record; do not create a placeholder client.
nullProject identifier within the current workspace.
nullID of the related bank account.
nullDisplay name of the record.
Office cleaningOptional human-readable description of the record.
Monthly office cleaning serviceNotes attached to the record.
Office cleaning service for January 2026Referenced currency with its opaque ID and ISO 4217 currency code.
ShowHide 3 properties
Opaque identifier for this resource or reference.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1FISO 4217 currency code, such as SAR or USD.
Minimum length: 1 character. · Maximum length: 128 characters.
SARCurrency conversion quote used for reporting, including source, target, and rate.
ShowHide 3 properties
ISO 4217 code of the source currency in this persisted quote.
Minimum length: 1 character. · Maximum length: 128 characters.
SARISO 4217 code of the target reporting currency in this persisted quote.
Minimum length: 1 character. · Maximum length: 128 characters.
SARExact decimal conversion rate from the quote source currency to its target currency.
Maximum length: 128 characters.
1.00Applied economic entries. Each entry is a reusable priced unit for a product, service, plan, or other calculable line. Entry prices are authored net prices; the workspace tax modifier calculates VAT.
ShowHide 7 properties
Opaque identifier for this resource or reference.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1HStable identity of this saved modifier application. Preserve it when updating a financial record, including repeated uses of the same catalog modifier.
Minimum length: 1 character. · Maximum length: 128 characters.
Consulting servicesDisplay name of the record.
Maximum length: 10000 characters.
Office cleaningOptional human-readable description of the record.
Maximum length: 10000 characters.
Monthly office cleaning serviceExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
3.00Unit code from the workspace catalog.
Minimum length: 1 character. · Maximum length: 128 characters.
itemExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
50.00Modifiers applied to one entry or the whole source. Supported values are signed fixed amounts or percentages, such as `15.00%` or `-25.00`; arbitrary multiplication and division are not supported.
at most 1000 items
ShowHide 6 properties
Opaque identifier for this resource or reference.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1JStable identity of this saved modifier application. Preserve it when updating a financial record, including repeated uses of the same catalog modifier.
Minimum length: 1 character. · Maximum length: 128 characters.
Consulting servicesDisplay name of the record.
Minimum length: 1 character. · Maximum length: 10000 characters.
VATOptional human-readable description of the record.
Maximum length: 10000 characters.
Value added taxentry index within modifiers.
100Modifier value. A trailing `%` marks a percentage; a leading `-` marks a decrease. Modifiers support fixed or percentage adjustments, not arbitrary multiplication or division.
Maximum length: 128 characters.
15.00%Tags assigned to the record.
1 itemrecurrence months for this expense template.
1Identifier of the identity that created the record.
01JQ2T5Y5Q3R8W9N6M4K2H7P1BIdentifier of the identity that last updated the record.
nulldeleted by for this expense template.
nullExact decimal string used for financial calculations. Do not round or convert it to a display number.
172.50totals for this expense template.
ShowHide 7 properties
base within totals.
150.00Total before tax and other modifiers.
150.00Tax calculated from the workspace payable modifier.
22.50Total after tax and other price modifiers.
172.50Amount due after all applied modifiers.
172.50Amount converted to the workspace reporting currency.
172.50line totals within totals.
vendor website for this expense template.
1 itemproject website for this expense template.
https://example.comclient website for this expense template.
1 itemclient type for this expense template.
Allowed values: "individual", "company", "government"
individualISO 8601 timestamp for started.
2026-01-15T12:00:00.000ZISO 8601 timestamp for ended.
2026-01-15T12:00:00.000ZISO 8601 timestamp for next due.
2026-01-15T12:00:00.000ZISO 8601 timestamp for the authored or payment event. Recurring records preserve their scheduled occurrence.
2026-01-15T12:00:00.000ZTimestamp used for stale-edit protection. Preserve the server value when updating.
2026-01-15T12:00:00.000ZISO 8601 timestamp when the record was deleted, or null when it exists.
nullPossible errors
Response headers
Error details returned for a failed request.
ShowHide 4 properties
Stable machine-readable error or resource code.
invalid_inputHuman-readable explanation of the result or error.
The request could not be validated.Correlation identifier for support and request tracing.
550e8400-e29b-41d4-a716-446655440000Additional structured details about the result or error.
ShowHide 1 property
Structured field issues returned when request validation fails.
ShowHide 3 properties
Field path where the validation issue occurred.
One of: string alternative 1, number alternative 2
0 itemsMachine-readable reason for the validation issue.
Allowed values: "expected_type", "required", "unexpected_property", "invalid_value", "invalid_json", "invalid_query", "unsupported_media_type", "body_too_large", "body_timeout", "conflicting_scope", "missing_header", "concurrency_required", "invalid_resource_id", "invalid_request"
invalid_requestStable machine-readable error or resource code.
invalid_input{
"error": {
"code": "invalid_input",
"message": "The request could not be validated.",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"details": {
"issues": [
{
"path": [],
"reason": "invalid_request"
}
]
}
}
}View raw OpenAPI operation
Use the machine-readable contract for client generation and payload validation.
Open OpenAPI contract ↗