Upsert expenses in a batch
Upsert expenses 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.
Maximum length: 10000 characters.
Office cleaningHuman-readable description of the resource.
Maximum length: 10000 characters.
Monthly office cleaning serviceID 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.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1CProject identifier within the current workspace.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1DID of the related expense recurring.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1SID of the related bank account.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1GNotes attached to the record.
Maximum length: 10000 characters.
Office cleaning service for January 2026Tags assigned to the record.
at most 100 items
1 itemCurrency 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.
at most 1000 items
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.
01JQ2T5Y5Q3R8W9N6M4K2H7P1RPayment schedule for the record.
at most 500 items
ShowHide 9 properties
Opaque identifier for this resource or reference.
01JQ2T5Y5Q3R8W9N6M4K2H7P1RID of the related original.
Consulting servicesExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
100.00Exact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
100.00Exact decimal string used for financial calculations. Do not round or convert it to a display number.
Allowed values: "replace"
replaceCurrency identifier for the amount. It selects the currency metadata used by the record.
01JQ2T5Y5Q3R8W9N6M4K2H7P1Fdirection within payment plan.
Allowed values: "inbound", "outbound"
outboundID of the related bank account.
01JQ2T5Y5Q3R8W9N6M4K2H7P1GISO 8601 timestamp for the authored or payment event. Recurring records preserve their scheduled occurrence.
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.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.
01JQ2T5Y5Q3R8W9N6M4K2H7P1AAn Expense is an outgoing payment source for a Vendor's service, whether that Vendor is an individual or a company. Client and Project are optional; a null Client means the current Workspace. Record cash separately through Transactions.
Send the complete writable representation or change set. Use the latest updatedAt for If-Match.
Response
Response headers
Returned records. Collections and batches use an array; single records use an object.
ShowHide 23 properties
Opaque identifier for this resource or reference.
01JQ2T5Y5Q3R8W9N6M4K2H7P1RID 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 expense recurring.
nullrecurring source name for this expense.
Consulting servicesID of the related bank account.
nullDisplay name of the record.
Office cleaningOptional human-readable description of the record.
Monthly office cleaning serviceReferenced 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.
at most 1000 items
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 itemExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
172.50totals for this expense.
ShowHide 7 properties
base within totals.
Maximum length: 128 characters.
150.00Total before tax and other modifiers.
Maximum length: 128 characters.
150.00Tax calculated from the workspace payable modifier.
Maximum length: 128 characters.
22.50Total after tax and other price modifiers.
Maximum length: 128 characters.
172.50Amount due after all applied modifiers.
Maximum length: 128 characters.
172.50Amount converted to the workspace reporting currency.
Maximum length: 128 characters.
172.50line totals within totals.
Notes attached to the record.
Office cleaning service for January 2026Identifier of the identity that created the record.
01JQ2T5Y5Q3R8W9N6M4K2H7P1BIdentifier of the identity that last updated the record.
nulldeleted by for this expense.
nullTimestamp when effective transactions covered the amount 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 ↗