Zum Inhalt springen

Update an accounting document

POST
/accountingDocuments.update
curl --request POST \
--url https://api.sancho-wms.pl/v1/accountingDocuments.update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "integrationId": 1, "id": 1, "expectedModifiedAt": "example", "values": { "documentType": "invoice", "documentNumber": "example", "issueDate": "2026-04-15", "operationDate": "2026-04-15", "taxPointDate": "2026-04-15", "dueDate": "2026-04-15", "currency": { "symbol": "example", "rate": 1, "units": 1, "date": "2026-04-15" }, "eInvoice": { "system": "ksef", "number": "example" }, "notes": "example", "taxReporting": { "country": "PL", "ksefMarker": "OFF", "vatDeclarationMonth": "example", "gtu": [ "GTU_01" ], "procedures": [ "WSTO_EE" ], "documentMarker": "FP", "splitPayment": true, "cashAccounting": true }, "counterPartyId": 1, "paymentMethodId": 1, "precedingInvoice": { "id": 1, "number": "example", "issueDate": "2026-04-15", "eInvoiceNumber": "example" }, "kind": "purchase", "receiptDate": "2026-04-15", "lines": [ { "description": "example", "net": 1, "tax": 1, "taxRate": { "percent": 1, "category": "standardRated" }, "account": { "kind": "number", "number": "example" }, "dimensions": [ { "dimensionId": 1, "valueId": 1 } ], "deductible": "full", "lineKind": "goods", "categoryId": 1 } ], "integrationType": "comarch-optima", "vatRegisterId": 1, "transactionKind": "domestic", "categoryId": 1, "categoryDescription": "example", "proposedJournalEntry": { "journalId": 1, "bookingDate": "2026-04-15", "description": "example", "lines": [ { "debitAccount": { "kind": "number", "number": "example" }, "creditAccount": { "kind": "number", "number": "example" }, "amount": 1, "description": "example", "categoryId": 1 } ] }, "deductionDate": "2026-04-15" } }'

Replaces a document with the full image in values: header, lines, JPK_V7 codes and proposed journal entry, and answers result, the document as accountingDocuments.get reads it after the write, with warnings (empty for now). The ERP recalculates its cash-flow items from the new amounts, so read them again after an update. expectedModifiedAt is the modifiedAt you read; a document changed since (by the accountant, or by an edit of its proposed journal entry) is 409 documentConflict. A document keeps its kind (vatRegisterKindMismatch). Any document can be changed, the accountant’s own included. A document with a booking entry, a draft entry included, is 422 documentPosted, one exported to an accounting office 422 documentExported unless the connector’s ERP operator may change exported documents, and one whose VAT return month is in an approved, final return 422 taxPeriodClosed. A settled payment does not stop a change, as in the ERP: an update keeps the settlement against the new amount, and a delete removes the payment with its settlements, leaving the cash transaction unsettled. A value the ERP cannot store is 422 notSupported with its path: documentType creditNote, debitNote or other, a precedingInvoice, a line’s account or dimensions, an eInvoice whose system is not ksef, taxReporting: null, a line taxRate.category that would read back as another under the transactionKind (an exempt or outOfScope line states 0 for both taxRate.percent and tax), a documentType or taxReporting.documentMarker the document’s VAT register would read back otherwise, and taxReporting.gtu or taxReporting.procedures codes on a purchase, which mark only sales. proposedJournalEntry is the journal entry you approved, kept on the document until it is posted; it needs double-entry books and the ERP’s general-ledger module (notDoubleEntry, ledgerNotLicensed otherwise), a fiscal year containing bookingDate (noFiscalYear), a journal of that year (invalidReference at proposedJournalEntry.journalId) and accounts a line may book onto (invalidReference at the line’s account, ledgerAccountNotPostable). Name an account as { kind: "number", number } or { kind: "subledger", parentNumber, entry }: a counterparty’s subledger account is opened when missing. Send proposedJournalEntry: null for a company without double-entry books (bookkeeping kpir or ryczalt).

Media typeapplication/json
object
integrationId
required
number
id
required
Any of:
integer
> 0 <= 9007199254740991
expectedModifiedAt
required
string
values
required
AccountingDocumentWrite
One of: discriminator: integrationType
ComarchOptimaAccountingDocumentWrite
One of: discriminator: kind
ComarchOptimaAccountingDocumentPurchaseWrite
object
documentType
required
string
Allowed values: invoice creditNote debitNote customsDeclaration internalDocument salesSummary other
documentNumber
required
string
>= 1 characters <= 256 characters
issueDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
operationDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
taxPointDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
dueDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
currency
required
Any of:
object
symbol
required
string
>= 1 characters <= 3 characters
rate
required
number
> 0
units
required
integer
> 0 <= 9007199254740991
date
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
eInvoice
required
Any of:
EInvoiceWrite
object
system
required
string
Allowed values: ksef sdi peppol other
number
required
string
>= 1 characters <= 256 characters
notes
required
Any of:
string
<= 2048 characters
taxReporting
required
Any of:
TaxReportingWrite
One of: discriminator: country
PlTaxReportingWrite
object
country
required
string
Allowed value: PL
ksefMarker
required
Any of:
string
Allowed values: OFF BFK DI
vatDeclarationMonth
required
Any of:
string
/^\d{4}-(0[1-9]|1[0-2])$/
gtu
required
Array<string>
Allowed values: GTU_01 GTU_02 GTU_03 GTU_04 GTU_05 GTU_06 GTU_07 GTU_08 GTU_09 GTU_10 GTU_11 GTU_12 GTU_13
procedures
required
Array<string>
Allowed values: WSTO_EE IED TP TT_WNT TT_D MR_T MR_UZ I_42 I_63 B_SPV B_SPV_DOSTAWA B_MPV_PROWIZJA
documentMarker
required
Any of:
string
Allowed values: FP MK VAT_RR
splitPayment
required
boolean
cashAccounting
required
boolean
counterPartyId
required
integer
> 0 <= 9007199254740991
paymentMethodId
required
Any of:
integer
> 0 <= 9007199254740991
precedingInvoice
required
Any of:
object
id
required
Any of:
integer
> 0 <= 9007199254740991
number
required
string
>= 1 characters <= 256 characters
issueDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
eInvoiceNumber
required
Any of:
string
>= 1 characters <= 256 characters
kind
required
string
Allowed value: purchase
receiptDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
lines
required
Array<object>
>= 1 items
object
description
required
Any of:
string
<= 50 characters
net
required
number
tax
required
number
taxRate
required
object
percent
required
number
<= 100
category
required
string
Allowed values: standardRated zeroRated exempt reverseCharge intraCommunity export outOfScope other
account
required
Any of:
ComarchOptimaLedgerAccountRef
One of:
object
kind
required
string
Allowed value: number
number
required
string
>= 1 characters <= 50 characters
dimensions
required
Any of:
Array<object>
object
dimensionId
required
integer
> 0 <= 9007199254740991
valueId
required
integer
> 0 <= 9007199254740991
deductible
required
string
Allowed values: full none partial
lineKind
required
Any of:
string
Allowed values: goods other fixedAssets services vehicles realEstate fuel
categoryId
required
Any of:
integer
> 0 <= 9007199254740991
integrationType
required
string
Allowed value: comarch-optima
vatRegisterId
required
Any of:
integer
> 0 <= 9007199254740991
transactionKind
required
Any of:
string
Allowed values: domestic nonEu nonEuVatRefund intraCommunity intraCommunityTriangular domesticBuyerLiable outsideCountry outsideCountryNp intraCommunityBuyerLiable nonEuBuyerLiable ossProcedure smeProcedure
categoryId
required
Any of:
integer
> 0 <= 9007199254740991
categoryDescription
required
Any of:
string
<= 50 characters
proposedJournalEntry
required
Any of:
ProposedJournalEntryWrite
object
journalId
required
integer
> 0 <= 9007199254740991
bookingDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
description
required
Any of:
string
<= 256 characters
lines
required
Array<object>
>= 1 items
object
debitAccount
required
Any of:
ComarchOptimaLedgerAccountRef
One of:
object
kind
required
string
Allowed value: number
number
required
string
>= 1 characters <= 50 characters
creditAccount
required
Any of:
ComarchOptimaLedgerAccountRef
One of:
object
kind
required
string
Allowed value: number
number
required
string
>= 1 characters <= 50 characters
amount
required
number
description
required
Any of:
string
<= 256 characters
categoryId
required
Any of:
integer
> 0 <= 9007199254740991
deductionDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/

Successful response

Media typeapplication/json
AccountingDocumentWriteResult
object
result
required
AccountingDocument
One of: discriminator: integrationType
ComarchOptimaAccountingDocument
object
id
required
number
kind
required
string
Allowed values: purchase sales
documentType
required
string
Allowed values: invoice creditNote debitNote customsDeclaration internalDocument salesSummary other
origin
required
string
Allowed values: invoice other eInvoice imported manual
status
required
string
Allowed values: draft approved posted reversed voided
number
required
string | null
documentNumber
required
string
invoiceId
required
number | null
counterParty
required
Any of:
object
id
required
number | null
name
required
string
taxId
required
string | null
taxIdCountry
required
string | null
country
required
string | null
issueDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
operationDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
receiptDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
taxPointDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
recordedDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
dueDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
paymentMethodId
required
number | null
currency
required
string
exchangeRate
required
Any of:
DocumentExchangeRateOutput
object
rate
required
number
units
required
number
date
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
sourceId
required
number
totals
required
object
net
required
number
tax
required
number
gross
required
number
totalsBase
required
object
net
required
number
tax
required
number
gross
required
number
eInvoice
required
Any of:
EInvoice
object
system
required
string
Allowed values: ksef sdi peppol other
number
required
string
>= 1 characters <= 256 characters
precedingInvoice
required
null
notes
required
string | null
journalEntry
required
Any of:
object
id
required
number
number
required
string
journalId
required
number
status
required
string
Allowed values: draft approved posted reversed voided
taxReporting
required
Any of:
TaxReporting
One of: discriminator: country
PlTaxReporting
object
country
required
string
Allowed value: PL
ksefMarker
required
Any of:
string
Allowed values: OFF BFK DI
vatDeclarationMonth
required
Any of:
string
/^\d{4}-(0[1-9]|1[0-2])$/
gtu
required
Array<string>
Allowed values: GTU_01 GTU_02 GTU_03 GTU_04 GTU_05 GTU_06 GTU_07 GTU_08 GTU_09 GTU_10 GTU_11 GTU_12 GTU_13
procedures
required
Array<string>
Allowed values: WSTO_EE IED TP TT_WNT TT_D MR_T MR_UZ I_42 I_63 B_SPV B_SPV_DOSTAWA B_MPV_PROWIZJA
documentMarker
required
Any of:
string
Allowed values: FP MK VAT_RR
splitPayment
required
boolean
cashAccounting
required
boolean
modifiedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
modifiedBy
required
string | null
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
createdBy
required
string | null
importSource
required
Any of:
ImportSourceOutput
object
appId
required
string
rowId
required
string
integrationId
required
number
integrationType
required
string
Allowed value: comarch-optima
vatRegisterId
required
number | null
vatRegisterCode
required
string
position
required
number
transactionKind
required
string
Allowed values: domestic nonEu nonEuVatRefund intraCommunity intraCommunityTriangular domesticBuyerLiable outsideCountry outsideCountryNp intraCommunityBuyerLiable nonEuBuyerLiable ossProcedure smeProcedure
categoryId
required
number | null
categoryDescription
required
string | null
deductionDate
required
Any of:
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
otherJpkCodes
required
Array<string>
lines
required
Array<object>
ComarchOptimaAccountingDocumentLine
object
id
required
number
description
required
string | null
net
required
number
tax
required
number
taxRate
required
object
percent
required
number | null
category
required
string
Allowed values: standardRated zeroRated exempt reverseCharge intraCommunity export outOfScope other
deductible
required
Any of:
string
Allowed values: full none partial
account
required
null
dimensions
required
null
lineKind
required
string
Allowed values: goods other fixedAssets services vehicles realEstate fuel
rateSymbol
required
string
rateStatus
required
string
Allowed values: exempt taxable reduced notSubject
includeInProRata
required
boolean | null
categoryId
required
number | null
cashFlowItems
required
Array<object>
object
id
required
number
dueDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
amount
required
number
currency
required
string
paymentMethodId
required
number | null
cashAccountId
required
number | null
direction
required
string
Allowed values: incoming outgoing
settlementStatus
required
string
Allowed values: notApplicable unsettled partiallySettled settled
proposedJournalEntry
required
Any of:
ComarchOptimaProposedJournalEntry
object
id
required
number
journalId
required
number
journalCode
required
string
bookingDate
required
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
description
required
string | null
lines
required
Array<object>
object
id
required
number
debitAccount
required
Any of:
object
id
required
number
number
required
string
name
required
string
creditAccount
required
Any of:
object
id
required
number
number
required
string
name
required
string
amount
required
number
description
required
string | null
categoryId
required
number | null
warnings
required
Array<object>
WriteWarning
object
stage
required
string
Allowed values: placements documents tags participants images assetExtras
detail
required
string

Example

{
"result": {
"kind": "purchase",
"documentType": "invoice",
"origin": "invoice",
"status": "draft",
"eInvoice": {
"system": "ksef"
},
"journalEntry": {
"status": "draft"
},
"taxReporting": {
"country": "PL",
"ksefMarker": "OFF",
"gtu": [
"GTU_01"
],
"procedures": [
"WSTO_EE"
],
"documentMarker": "FP"
},
"integrationType": "comarch-optima",
"transactionKind": "domestic",
"lines": [
{
"taxRate": {
"category": "standardRated"
},
"deductible": "full",
"lineKind": "goods",
"rateStatus": "exempt"
}
],
"cashFlowItems": [
{
"direction": "incoming",
"settlementStatus": "notApplicable"
}
]
},
"warnings": [
{
"stage": "placements"
}
]
}

Bad request

Media typeapplication/json
error.BAD_REQUEST

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "BAD_REQUEST",
"message": "Bad request",
"issues": []
}

Unauthorized

Media typeapplication/json
error.UNAUTHORIZED

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "UNAUTHORIZED",
"message": "Unauthorized",
"issues": []
}

Payment required

Media typeapplication/json
error.PAYMENT_REQUIRED

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "PAYMENT_REQUIRED",
"message": "Payment required",
"issues": []
}

Forbidden

Media typeapplication/json
error.FORBIDDEN

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "FORBIDDEN",
"message": "Forbidden",
"issues": []
}

Not found

Media typeapplication/json
error.NOT_FOUND

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}

Conflict

Media typeapplication/json
error.CONFLICT

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "CONFLICT",
"message": "Conflict",
"issues": []
}

Unprocessable content

Media typeapplication/json
error.UNPROCESSABLE_CONTENT

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "UNPROCESSABLE_CONTENT",
"message": "Unprocessable content",
"issues": []
}

Too many requests

Media typeapplication/json
error.TOO_MANY_REQUESTS

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "TOO_MANY_REQUESTS",
"message": "Too many requests",
"issues": []
}

Internal server error

Media typeapplication/json
error.INTERNAL_SERVER_ERROR

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}

Service unavailable

Media typeapplication/json
error.SERVICE_UNAVAILABLE

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "SERVICE_UNAVAILABLE",
"message": "Service unavailable",
"issues": []
}