Upsert invoice
Upsert an incoming service invoice with Client and Project context, authored net entries, and modifiers, preserving exact decimal values and the selected currency.
Path parameters
Body parameters
Optional 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.
01JQ2T5Y5Q3R8W9N6M4K2H7P1DContact identifier for the invoice, expense, income, or project contact in the current workspace.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1EID of the related bank account.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1GDisplay name of the resource.
Maximum length: 10000 characters.
Consulting servicesHuman-readable description of the resource.
Maximum length: 10000 characters.
Consulting services for January 2026Currency 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.
Consulting serviceHuman-readable description of the resource.
Maximum length: 10000 characters.
Monthly consulting serviceExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
2.00Unit code from the workspace catalog.
Minimum length: 1 character. · Maximum length: 128 characters.
hourExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
100.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%Tags assigned to the record.
at most 100 items
1 itemPayment schedule for the record.
at most 500 items
ShowHide 9 properties
Opaque identifier for this resource or reference.
01JQ2T5Y5Q3R8W9N6M4K2H7P1PID 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"
inboundID 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 pended.
2026-01-15T12:00:00.000ZISO 8601 timestamp for cancelled.
2026-01-15T12:00:00.000ZHeaders
Bearer workspace API key.
Bearer $NQD_API_KEYQuoted updatedAt timestamp used to reject stale writes. Send the latest value as If-Match: "<updatedAt>".
Minimum length: 3 characters. · pattern ^".+"$
"2026-01-15T12:00:00.000Z"Workspace scope for the request. Required for workspace operations and must belong to the authenticated identity.
Minimum length: 1 character. · Maximum length: 128 characters.
01JQ2T5Y5Q3R8W9N6M4K2H7P1AAn Invoice is an incoming service source. Use Client and Project for the service context and Entries for the priced units. It may be unpaid or partially paid; 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 31 properties
Opaque identifier for this resource or reference.
01JQ2T5Y5Q3R8W9N6M4K2H7P1PID of the related short.
INV-0001Optional client reference. Null means the current workspace owns the record; do not create a placeholder client.
nullProject identifier within the current workspace.
nullContact identifier for the invoice, expense, income, or project contact in the current workspace.
nullproject website for this invoice.
https://example.comclient website for this invoice.
1 itemclient type for this invoice.
Allowed values: "individual", "company", "government"
individualcontact website for this invoice.
1 itemID of the related bank account.
nullID of the related invoice recurring.
nullrecurring source name for this invoice.
Consulting servicesReferenced 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.00Display name of the record.
Consulting servicesOptional human-readable description of the record.
Consulting services for January 2026Notes attached to the record.
Consulting servicesTags assigned to the record.
1 itemApplied 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.
Consulting serviceOptional human-readable description of the record.
Maximum length: 10000 characters.
Monthly consulting serviceExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
2.00Unit code from the workspace catalog.
Minimum length: 1 character. · Maximum length: 128 characters.
hourExact decimal string used for financial calculations. Do not round or convert it to a display number.
Maximum length: 128 characters.
100.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%totals for this invoice.
ShowHide 7 properties
line totals within totals.
base within totals.
200.00Total before tax and other modifiers.
200.00Tax calculated from the workspace payable modifier.
30.00Total after tax and other price modifiers.
230.00Amount due after all applied modifiers.
230.00Amount converted to the workspace reporting currency.
230.00recurring on for this invoice.
2026-01-15Whether effective transactions cover the amount due.
falseIdentifier of the identity that created the record.
01JQ2T5Y5Q3R8W9N6M4K2H7P1BIdentifier of the identity that last updated the record.
nulldeleted by for this invoice.
nullTimestamp when effective transactions covered the amount due.
2026-01-15T12:00:00.000ZISO 8601 timestamp for pended.
nullISO 8601 timestamp for cancelled.
nullISO 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 ↗