Stable Pro

Stable Pro API · v1

422 · unprocessable

The request is well formed, but it breaks a rule of the facts it refers to

The documented operations are available for the real stable and for its test environment, at the same address. Use the key for the environment you are working in.Availability and changes · 2026-12-03

When

The JSON is valid, but the document, customer or coverages break a rule of the linked facts.

Extra fields

  • reason: The broken rule.

Reasons

reasonMeaning
fact_not_foundThe charge or adjustment does not exist or belongs to another stable.
customer_requiredWithout coverages, provide customer_id.
customer_not_foundThe specified customer does not exist.
mixed_customersThe document and coverages must refer to one customer.
wrong_kindThe note kind does not match the adjustment.
wrong_signThe coverage amount has the wrong sign.
credit_lossA credit loss cannot be invoiced.
coverage_exceeds_factCoverages exceed the fact amount.
currencyThe currency differs from the stable currency.
document_not_issuedYou can add coverages only to an issued document.
replaces_invalidreplaces_id must name a cancelled or rejected document managed by this connection.
corrects_not_foundThe document in corrects.id is not managed by this connection.
corrects_does_not_coverThe corrected document does not cover this charge.
reversal_exceeds_documentThe credit note reverses more than the corrected document covers.
link_unsafeThe link does not meet the security rules.
link_domain_not_allowedThe link domain is not approved for this connection.
reservation_mismatchThe document covers facts that are not in the reservation you named: every covered fact must be part of it.
credit_entry_not_invoiceableThe credit entry cannot be covered by a document: only credit born from money received (an advance, an overpayment, a move to credit) has invoiceable: true.
exceeds_invoiced_advanceThe negative line on the advance is larger than what is invoiced on it: a final invoice or a credit note can reduce only the part already invoiced.

What to do

Correct the indicated field and reread the fact in Stable Pro if its state may have changed. Use a new Idempotency-Key for a changed request.

The response

{
  "type": "https://stable-pro.com/docs/api/problems/unprocessable",
  "title": "The request is well formed, but it breaks a rule of the facts it refers to",
  "status": 422,
  "detail": "…"
}

Decide on type, never on detail: see Errors.