Developers
Basics

Errors

One shape for every refusal, with a stable code — and what to do about each.

Every refusal has the same shape:

{ "detail": { "code": "invoice_not_issuable", "messages": ["Kundenadresse ist unvollständig."] } }

Programs decide on code — it is stable and documented below. Some codes carry fields of their own (scope, invoice_id, open_from …), listed with the code. message and messages appear where AlphaCount's invoicing has a sentence for a person, in German; do not parse them.

A body that does not fit

Wrong type, a missing field, an unknown field, a value out of range: 422 validation_failed with the places, without the values you sent.

{
  "detail": {
    "code": "validation_failed",
    "errors": [
      { "loc": ["body", "lines", 0, "vat_rate"], "type": "literal_error", "msg": "Input should be 0, 7 or 19" }
    ]
  }
}

Rely on loc and type. msg is for reading.

Status codes

StatusMeansRetry?
400the request is malformed (a header, the version)no — fix it
401the key is missing, unknown, expired, or its creator inactiveno
403the key may not do thisno
404not found in the key's companyno
409a conflict with what existsonly conflict_retry
422the request is understood but refusedno — fix the cause
500AlphaCount failedyes — a POST with an Idempotency-Key with the same key; it was not used up
503a stored file cannot be read right now (file_unavailable)yes — after a short wait

Every code

CodeStatusMeaningReturned by
api_key_admin_required403The key's creator is not an admin of the organisation. API keys act with an admin's rights.
An admin creates the key.
every operation
api_key_entity_not_accessible403The key's company is no longer reachable for its creator.every operation
api_key_entity_not_single403The key is not limited to exactly one company. The API works on one company per key.
Create the key for exactly one company.
every operation
api_key_expired401The key has passed its expiry date.
Create a new key.
every operation
api_key_invalid401The key is unknown, revoked, or not an AlphaCount API key.
Create a new key under Integrations → API keys.
every operation
api_key_missing401No API key: the request has no `Authorization: Bearer …` header.
Send the key as `Authorization: Bearer ab_…`.
every operation
api_key_scope_missing403The key lacks the scope this route needs.
Create a key with the scope named in `scope`.
Extra fields: scope
every operation
api_key_user_inactive401The person who created the key no longer has access to the organisation.
An active admin creates a new key.
every operation
api_version_unknown400The `AlphaCount-Version` header names a version this API does not offer.
Use one of `supported`, or leave the header out for the current version.
Extra fields: supported
every operation
billing.contract_ended_read_only403A write after the organisation's contract ended: a trial that ended without a plan, or a subscription whose cancellation took effect. For 30 days the organisation can still be read and exported, then its data are deleted. Reads keep working. `since` names when the contract ended, `reason` why (`trial`, `canceled`), `delete_on` the day the data go.
Export what you need before `delete_on`. To keep working, an admin chooses a plan in AlphaCount (Settings → Billing → Plan); writes work again at once.
Extra fields: since, reason, delete_on
every operation
billing.read_only403A write while the organisation is read-only: a payment of its subscription has been open for 14 days or more, or was disputed. Reads keep working. `since` names when read-only began, `reason` why (`payment_failed`, `disputed`, `topup_failed`).
An admin pays the open invoice in AlphaCount (Settings → Billing); writes work again at once.
every operation
billing.storage_limit_reached403The organisation's storage is full: the files of its documents reach the limit of its plan. Nothing stored is deleted, reading and exporting keep working — only a new file is refused. `args.limit_gb` names the limit.
Contact AlphaCount support; the limit is raised per organisation.
Extra fields: args
importInvoice, registerCommissionStatement
commission.agreement_not_found404No agreement with this reference.createInvoice, upsertCommissionAttribution
commission.agreement_partner_mismatch409The agreement belongs to another partner.upsertCommissionAgreement
commission.agreement_takes_no_attributions422The agreement applies to all customers and takes no attributions.createInvoice, upsertCommissionAttribution
commission.agreement_terms_frozen409An agreement's terms cannot change once made.
Make a new agreement; end the old one with `end_date`.
upsertCommissionAgreement
commission.anchor_invalid422`anchor` is neither `attribution_start` nor `first_paid_revenue`.upsertCommissionAgreement
commission.applies_to_invalid422`applies_to` is neither `attributed_customers` nor `all_customers`.upsertCommissionAgreement
commission.attribution_conflict409Another partner holds this customer. End that attribution first.createInvoice, upsertCommissionAttribution
commission.attribution_reference_mismatch409The attribution reference exists for another customer or agreement.createInvoice, upsertCommissionAttribution
commission.billing_mode_invalid422Unknown billing mode.upsertCommissionPartner
commission.condition_not_found404The condition named in `condition_id` does not exist.upsertCommissionAgreement
commission.creditor_number_range_exhausted409The company has no free creditor number left (70000–79999).upsertCommissionPartner
commission.date_range_invalid422The end is before the start.upsertCommissionAgreement, upsertCommissionAttribution
commission.e_invoice_failed422The e-invoice for the statement could not be created — details are missing, such as the partner's address or tax number. Nothing was issued or numbered.
Complete the partner's master data and settle again.
createCommissionStatement
commission.e_invoice_format_invalid422Unknown e-invoice format.upsertCommissionPartner
commission.issuer_address_missing409The issuing company has no full address (street, postal code, city).
Complete the company's address in its master data.
createCommissionStatement, registerCommissionStatement
commission.issuer_tax_id_missing409The issuing company has neither a tax number nor a VAT ID.createCommissionStatement, registerCommissionStatement
commission.issuer_vat_id_missing409A Gutschrift to a partner in another EU country (reverse charge) must carry the company's VAT ID (Art. 226 no. 4 of the VAT Directive); it has none.
Add the company's VAT ID in its master data.
createCommissionStatement, registerCommissionStatement
commission.min_payout_invalid422The minimum payout cannot be negative.upsertCommissionPartner
commission.no_mailbox201The statement was issued but not mailed: the company has no mailbox to send from.createCommissionStatement
commission.nothing_to_settle422Nothing to settle for this partner: no open revenue before `period_end`, nothing positive, or below the partner's minimum payout.
Report revenue first (`POST /revenue-events`), or call again once more has accrued.
createCommissionStatement
commission.partner_address_missing409The partner has no full address (street, postal code, city). A Gutschrift or settlement statement must name it (§ 14 Abs. 4 Nr. 1 UStG, § 34a UStDV) — without it there is no input tax.
Set `street`, `zip` and `city` on the partner and settle again.
createCommissionStatement, registerCommissionStatement
commission.partner_archived409The partner is archived.upsertCommissionAgreement, upsertCommissionPartner
commission.partner_contact_missing409The partner is to receive an XRechnung, which must name the seller's telephone and e-mail (BR-DE-6, BR-DE-7) — in a Gutschrift, the partner's. One of them is missing.
Set `phone` and `email` on the partner, or choose another `e_invoice_format`.
createCommissionStatement
commission.partner_country_missing409The partner has no country, and an e-invoice needs one; it is never assumed.
Set the partner's country (`country_code`) and settle again.
createCommissionStatement
commission.partner_email_missing201The statement was issued but not mailed: the partner has no e-mail address.
Set `email` on the partner; send the statement from the app.
createCommissionStatement
commission.partner_kind_invalid422Unknown partner kind.upsertCommissionPartner
commission.partner_name_implausible422`name` does not look like a name.upsertCommissionPartner
commission.partner_name_missing422The partner needs a name.upsertCommissionPartner
commission.partner_not_found404No revenue-share partner with this reference.createCommissionStatement, createInvoice, listCommissionEntries, listCommissionStatements, registerCommissionStatement, retrieveCommissionPartner, upsertCommissionAgreement
commission.partner_tax_id_missing409A domestic Gutschrift must name the partner's tax number or VAT ID (§ 14 Abs. 4 UStG) — a small business's too (§ 34a UStDV); the partner has neither.
Set `tax_number` or `vat_id` on the partner and settle again.
createCommissionStatement, registerCommissionStatement
commission.partner_tax_status_mismatch409The partner's tax status contradicts its country — a domestic status abroad, or a reverse-charge or third-country status in the wrong country. The Gutschrift would show the wrong tax.
Correct the partner's tax status or country.
createCommissionStatement, registerCommissionStatement
commission.partner_tax_status_unknown409Nobody has said how the partner is taxed (`tax_status` is `unknown`). Nothing is issued on a guess: a Gutschrift showing VAT to a small business is VAT the partner owes and the company cannot deduct (§ 14c UStG).
Set the partner's `tax_status` and settle again.
createCommissionStatement, registerCommissionStatement
commission.partner_vat_id_missing409A reverse-charge Gutschrift to an EU partner needs the partner's VAT ID.createCommissionStatement, registerCommissionStatement
commission.payout_open409A payout is in flight for this statement — in a SEPA file at the bank, or one the company transfers itself; the same money may be moving already.
Cancel the payout in the app first, or let the bank statement settle it.
recordCommissionStatementPayment
commission.product_not_found404A named product does not exist in the company.
Extra fields: product_numbers
createRevenueEvent, upsertCommissionAgreement
commission.product_scope_invalid422The product selection is invalid.upsertCommissionAgreement
commission.revenue_event_not_found404`reverses_ref` names no revenue event of yours.createRevenueEvent
commission.revenue_lines_do_not_add_up422The lines do not add up to `net_amount`.createRevenueEvent
commission.self_billing_agreement_date_in_future422`self_billing_agreed_on` lies in the future. An agreement that is yet to be made is none.upsertCommissionPartner
commission.self_billing_not_agreed409A Gutschrift (self-billed invoice) needs the partner's prior self-billing agreement (§ 14 Abs. 2 Satz 5 UStG); none is on record.
Set `self_billing_agreed_on` on the partner — it must lie before the statement.
createCommissionStatement, registerCommissionStatement
commission.self_billing_objected409The partner objected to the self-billing procedure; no further Gutschrift until a new agreement.createCommissionStatement, registerCommissionStatement
commission.send_failed201The statement was issued but not mailed: the mail server refused.
Send the statement again from the app.
createCommissionStatement
commission.send_not_confirmed201The statement was issued; whether its mail went out is not known — the first request with this Idempotency-Key ended before the mail server answered.
Read the statement: `sent_at` is set if the mail went out. If not, send it from the app.
createCommissionStatement
commission.start_date_missing422The start date is missing.upsertCommissionAgreement
commission.statement_below_minimum409What is open for the partner fell below its minimum payout since the statement was prepared; nothing was issued, the amount is carried forward.createCommissionStatement
commission.statement_empty409The statement would be empty — its rows were settled meanwhile.createCommissionStatement, registerCommissionStatement
commission.statement_failed500The statement could not be created; nothing was issued.
Try again with the same Idempotency-Key.
createCommissionStatement, registerCommissionStatement
commission.statement_frozen409Another statement is registered under this reference, and a registered statement cannot change.registerCommissionStatement
commission.statement_has_no_xml404The statement was not issued as an XRechnung; there is no XML beside its PDF.
Check `has_xml` on the statement. A ZUGFeRD statement carries its XML inside the PDF.
downloadCommissionStatementXml
commission.statement_not_found404No issued statement with this id.downloadCommissionStatementPdf, downloadCommissionStatementXml, recordCommissionStatementPayment, retrieveCommissionStatement
commission.statement_not_payable409The statement cannot be marked paid — it is cancelled or objected.recordCommissionStatementPayment
commission.statement_not_self_billing409Only a self-billed invoice (Gutschrift) can be registered: this partner is paid by a settlement statement or invoices you.
Check `billing_mode` and `tax_status` of the partner.
registerCommissionStatement
commission.statement_not_sendable201The statement was issued but cannot be mailed in its state (cancelled or objected meanwhile).createCommissionStatement
commission.statement_number_taken409A statement with this number exists already. An invoice number is used once.registerCommissionStatement
commission.statement_pdf_invalid422`pdf_base64` is no PDF of at most 10 MB, or it does not match `pdf_sha256`.registerCommissionStatement
commission.statement_tax_mismatch422The figures do not add up, or their VAT does not fit the partner's tax status.
`lines` must add up to `net_amount`, net plus VAT to `gross_amount`. Check `tax_status` of the partner.
registerCommissionStatement
commission.supplier_not_found404The supplier to link the partner to does not exist.upsertCommissionPartner
commission.tax_status_invalid422Unknown tax status.upsertCommissionPartner
commission.tier_incomplete422A tier is incomplete: give `from_month` and `percent`.upsertCommissionAgreement
commission.tier_month_range_invalid422A tier's month range is invalid: `from_month` starts at 1, and `to_month` must not lie before it.upsertCommissionAgreement
commission.tier_percent_invalid422`percent` must be between 0 and 100.upsertCommissionAgreement
commission.tiers_empty422Give at least one tier.upsertCommissionAgreement
commission.tiers_overlap422The tiers overlap, or an open-ended tier is not the last.upsertCommissionAgreement
conflict_retry409Another request changed the same record at the same moment.
Repeat the request.
correctInvoice, createCommissionStatement, createFeeStatement, createInvoice, createRevenueEvent, importInvoice, recordCommissionStatementPayment, recordInvoicePayment, registerCommissionStatement, reportUsage, upsertCommissionAgreement, upsertCommissionAttribution, upsertCommissionPartner, upsertContract, upsertCustomer, upsertProduct
contract.customer_mismatch409The contract belongs to another customer; a contract cannot change its customer.upsertContract
contract.date_range_invalid422The end is before the start.upsertContract
contract.end_before_billed422The end lies inside a period already billed in advance.
End on `billed_until` or later; an earlier end needs a cancellation invoice in the app.
Extra fields: args
upsertContract
contract.ended409The contract has ended and cannot change.upsertContract
contract.interval_mismatch422A product recurs in another interval than the contract (or is one-off).
Extra fields: product
upsertContract
contract.item_not_found404A usage record names an item reference the contract does not have.
Extra fields: item_refs
reportUsage
contract.item_product_changed409An item reference keeps its product. Use a new `ref` for another product.
Extra fields: ref
upsertContract
contract.not_active409The contract is not active (a draft, or ended).reportUsage, upsertContract
contract.not_draft409A running contract cannot go back to draft.upsertContract
contract.terms_frozen409The contract runs: its interval and start are fixed.upsertContract
contract.usage_period_closed422Usage before `open_from` belongs to a period already billed; it could never reach an invoice.
Extra fields: open_from, refs
reportUsage
contract_not_found404No contract with this reference in the company.reportUsage, retrieveContract
customer_not_found404No customer with this reference in the company.
Create it first with `PUT /customers/by-ref/{source}/{external_ref}`.
createFeeStatement, createInvoice, createRevenueEvent, importInvoice, quoteTax, upsertCommissionAttribution, upsertContract
customer_number_range_exhausted409The company has no free customer number left.upsertCustomer
documents.file_too_large413The file is larger than one file may be (`args.limit_mb`, 25 MB) — the same limit as every other way a file comes into AlphaCount.
Send a smaller PDF (a scan at a lower resolution).
Extra fields: args
importInvoice, registerCommissionStatement
fee_statement.fee_abroad422A fee of the month comes from a partner outside Germany and the company states no fees of partners abroad; its tax (reverse charge, EC sales list) waits for a person in the app. Turn on fee statements (`stripe_platform.fee_statements`) to have them stated and booked here. `bt_id` names the Stripe balance transaction.
Extra fields: bt_id
createFeeStatement
fee_statement.mixed_cases422The month holds fees of this partner booked as German revenue and fees kept for the statement — the partner's country changed within the month. A person settles it in the app.createFeeStatement
fee_statement.nothing_to_state409No fee of this partner in this month is waiting for a statement — none was kept, or all are stated already.createFeeStatement
file_unavailable503The file exists but cannot be read from storage right now.
Repeat the request after a short wait. The record itself is unaffected.
downloadCommissionStatementPdf, downloadCommissionStatementXml, downloadInvoicePdf, downloadInvoiceXml
idempotency_key_invalid400The `Idempotency-Key` is not 1–255 printable characters without spaces.correctInvoice, createCommissionStatement, createFeeStatement, createInvoice, importInvoice, recordInvoicePayment
idempotency_key_missing400`POST /invoices` needs an `Idempotency-Key` header.
Send a unique key per invoice, for example a UUID, and repeat it on retries.
correctInvoice, createCommissionStatement, createFeeStatement, createInvoice, importInvoice, recordInvoicePayment
idempotency_key_reused409This `Idempotency-Key` was used with a different body.
Use a new key for a new request.
correctInvoice, createCommissionStatement, createFeeStatement, createInvoice, importInvoice, recordInvoicePayment
import_failed500The invoice could not be taken over; nothing was booked.
Repeat the request with the same key; if it fails again, contact support.
importInvoice
invalid_date_range422`from_date` lies after `to_date`.retrieveSummary
invoice_external_ref_exists409An invoice with this `external_ref` exists already.
Retrieve it by reference, or use a new reference for a new invoice.
Extra fields: invoice_id
correctInvoice, createInvoice, importInvoice
invoice_not_cancellable422The invoice cannot be cancelled in its state.
`reasons` says why, as a `code` with `args` (below). `messages` is German prose for people.
Extra fields: reasons, messages, message
Reasons:
  • invoicing.storno_status (status) — Only an issued or sent invoice can be cancelled; `status` is its state.
  • invoicing.storno_has_payments (amount_paid) — Payments are booked on the invoice (`amount_paid`); they are resolved in the app first.
  • invoicing.storno_of_storno — A cancellation invoice cannot be cancelled.
  • invoicing.e_invoice_invalid (rules) — The rendered e-invoice breaks EN 16931 business rules; `rules` lists them (`BR-CO-27` …).
cancelInvoice
invoice_not_correctable422The invoice cannot be corrected as it stands.
`reasons` says why, as a `code` with `args` (below). `messages` is German prose for people.
Extra fields: reasons, messages, message
Reasons:
  • invoicing.correction_not_an_invoice — A cancellation invoice cannot be corrected.
  • invoicing.correction_status (status) — Only an issued invoice can be corrected (a draft is changed in the app, a cancelled one is done); `status` is its state.
  • invoicing.correction_has_closing — A rest of the invoice was let go (cash discount, a difference of cents); that is taken back in the app first.
  • invoicing.correction_payment_has_extras (entry) — A payment brought dunning charges or a credit beyond the invoice; `entry` is its booking. That is resolved in the app first.
  • invoicing.correction_payment_unclear (entry) — A payment is not booked on exactly one money account; `entry` is its booking.
  • invoicing.correction_refund_exceeds_credit (amount, credit) — `refund` is more than the credit the correction leaves (`credit`).
  • invoicing.correction_refund_unclear — The refund would have to be split over several credits.
  • invoicing.e_invoice_invalid (rules) — The rendered e-invoice breaks EN 16931 business rules; `rules` lists them.
correctInvoice
invoice_not_found404No invoice the API can see under this id or reference. Invoices written in the app are not visible to the API.cancelInvoice, correctInvoice, downloadInvoicePdf, downloadInvoiceXml, recordInvoicePayment, retrieveInvoice, retrieveInvoiceByRef, sendInvoice
invoice_not_importable422The invoice cannot be taken over as sent.
`reasons` says why, as a `code` with `args` (below).
Extra fields: reasons, messages, message
Reasons:
  • invoicing.import_payment_before_issue (paid_on) — A payment is dated before the invoice (`paid_on`).
  • invoicing.payment_exceeds_open (amount, payable, excess) — The payments are more than the invoice; `amount`, `payable` and `excess` as decimal strings.
importInvoice
invoice_not_issuable422A mandatory detail for issuing is missing (on the company, the customer or a line).
`reasons` lists each one as a `code` with `args` (below). `messages` says the same in German prose, for people — do not parse it.
Extra fields: reasons, messages, message
Reasons:
  • invoicing.not_draft (status) — The invoice is not a draft any more; `status` is its state.
  • invoicing.no_items — The invoice has no lines.
  • invoicing.negative_items — A line is negative; only a cancellation invoice may have those.
  • invoicing.issuer_address_incomplete — The company's address is incomplete (street, postal code, city — § 14 Abs. 4 Nr. 1 UStG).
  • invoicing.issuer_tax_number_missing — The company has neither a tax number nor a VAT ID (§ 14 Abs. 4 Nr. 2 UStG).
  • invoicing.business_letter_data_missing (legal_form, fields) — Details a business letter of this legal form must carry are missing (§ 35a GmbHG, § 37a/§ 125a HGB): `fields` names them (`handelsregister_nummer`, `registergericht`, `geschaeftsfuehrer`), `legal_form` the form.
  • invoicing.customer_address_incomplete — The customer's address is incomplete (street, city).
  • invoicing.vat_on_tax_free_treatment (treatment) — The tax case `treatment` (e.g. `small_business`, `intra_community_supply`) shows no VAT, but a line carries some. Set the lines' rates to 0.
  • invoicing.customer_vat_id_missing (treatment) — A supply to a business in another EU country needs the customer's VAT ID (§ 14a UStG); `treatment` is the tax case.
  • invoicing.goods_and_services_mixed (treatment) — Goods and a separate service to a customer abroad belong on separate invoices; shipping and packing go with the goods — mark them as goods. `treatment` is the tax case.
  • invoicing.leitweg_id_missing — An XRechnung needs the customer's `leitweg_id` (BT-10).
  • invoicing.tax_review (warning) — The tax check found something a person must look at; `warning` is its code (e.g. `small_business_charged_vat`). Review the invoice in the app.
  • invoicing.e_invoice_data_missing (fields) — An e-invoice needs company data that is missing; `fields` names it (`iban`, `email`, `phone`, `contact_name`).
  • invoicing.e_invoice_invalid (rules) — The rendered e-invoice breaks EN 16931 business rules; `rules` lists them (`BR-CO-27` …).
  • invoicing.customer_not_found — The invoice's customer no longer exists.
  • invoicing.entry_unbalanced (debit, credit) — The entry would not balance — a fault on our side, nothing was booked. `debit` and `credit` are the sums.
correctInvoice, createFeeStatement, createInvoice
invoice_not_issued409The invoice is a draft and has no PDF yet.downloadInvoicePdf, downloadInvoiceXml
invoice_not_payable422The payment cannot be booked on this invoice — it is a draft or cancelled, the amount is not positive, or it exceeds what is open.
`reasons` says why, as a `code` with `args` (below). Check the invoice's `status` and `amount_paid`. `messages` is German prose for people.
Extra fields: reasons, messages, message
Reasons:
  • invoicing.payment_status (status) — The invoice takes no payment in its state (`status`: `draft`, `cancelled`, or `paid` with nothing more owed).
  • invoicing.payment_not_positive (amount) — The amount (`amount`) is not positive.
  • invoicing.payment_exceeds_open (amount, payable, excess) — The amount exceeds what is open on the invoice and its dunning charges: `amount` was sent, `payable` is open, `excess` is the rest.
  • invoicing.entry_unbalanced (debit, credit) — The entry would not balance — a fault on our side, nothing was booked. `debit` and `credit` are the sums.
recordInvoicePayment
invoice_number_exists409The company already has an invoice with this number — an imported invoice keeps its own number, and numbers are unique.
Extra fields: reasons, messages, message
importInvoice
invoice_pdf_invalid422`pdf_base64` is not base64 of a PDF.importInvoice
invoice_pdf_missing404The PDF of this invoice is not available.downloadInvoicePdf
invoice_render_failed500Rendering the PDF or e-invoice failed. Nothing was created.
Repeat the request; if it persists, contact support.
cancelInvoice, correctInvoice, createFeeStatement, createInvoice
invoice_send_failed422The invoice exists, but the mail could not be sent.
Retry with `POST /invoices/{id}/send`.
Extra fields: message
sendInvoice
invoice_xml_missing404This invoice has no e-invoice XML — it was issued as a plain PDF (a private customer, a small amount, a small business).downloadInvoiceXml
partner_filter_incomplete422`partner_source` and `partner_ref` name a partner only together.
Send both to list one partner's rows, or neither to list all.
listCommissionEntries, listCommissionStatements
payment_failed500The payment could not be booked — a fault on our side, not in the request.
Nothing was booked and the `Idempotency-Key` is free again. Retry later with the same key; if it keeps failing, contact support with the time of the request.
recordInvoicePayment
period_locked409The accounting period is locked (Festschreibung). Corrections go into the open period.
Extra fields: message
cancelInvoice, correctInvoice, createFeeStatement, createInvoice, importInvoice
pricing.model_unknown422Unknown pricing model.upsertContract, upsertProduct
pricing.negative_value422Quantities and prices cannot be negative.upsertContract, upsertProduct
pricing.overage_needs_quota422An overage price needs a quota (`included_quantity`).upsertContract, upsertProduct
pricing.package_size_missing422The package model needs the package size in `included_quantity`.upsertContract, upsertProduct
pricing.quantity_negative422A quantity cannot be negative.upsertContract, upsertProduct
pricing.tier_incomplete422A tier lacks `from` or `unit_price`.upsertContract, upsertProduct
pricing.tier_invalid422A tier is invalid.upsertContract, upsertProduct
pricing.tiers_empty422A tiered model needs at least one tier.upsertContract, upsertProduct
pricing.tiers_overlap422The tiers overlap, or an open-ended tier is not the last.upsertContract, upsertProduct
product_not_found404No product with this reference or article number in the company.
Create it with `PUT /products/by-ref/{source}/{external_ref}`.
Extra fields: product_ref, product_number
correctInvoice, createInvoice, importInvoice, upsertContract
product_number_taken409The article number belongs to another product.upsertProduct
rate_limited429Too many requests from this organization's integrations in ten seconds — reading and writing count apart, all keys of the organization together, the allowance follows its plan (Limits page).
Wait `retry_after` seconds (also the `Retry-After` header) and repeat. `RateLimit-Remaining` on every answer says what is left.
Extra fields: retry_after
every operation
service_busy503The server is overloaded or its database did not answer in time; the request did not complete. Your key is fine.
Wait the seconds of the `Retry-After` header and repeat. A write with an `Idempotency-Key` is safe to repeat with the same key.
every operation
tax_quote_buyer_missing422The quote names neither a `customer` nor a `buyer` — whom the sale is to decides its tax.quoteTax
validation_failed422The body or a parameter does not fit the schema.
`errors` names each field (`loc`), the rule (`type`) and why (`msg`). Values are never echoed.
Extra fields: errors
every operation

On this page