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
reason | Meaning |
|---|---|
fact_not_found | The charge or adjustment does not exist or belongs to another stable. |
customer_required | Without coverages, provide customer_id. |
customer_not_found | The specified customer does not exist. |
mixed_customers | The document and coverages must refer to one customer. |
wrong_kind | The note kind does not match the adjustment. |
wrong_sign | The coverage amount has the wrong sign. |
credit_loss | A credit loss cannot be invoiced. |
coverage_exceeds_fact | Coverages exceed the fact amount. |
currency | The currency differs from the stable currency. |
document_not_issued | You can add coverages only to an issued document. |
replaces_invalid | replaces_id must name a cancelled or rejected document managed by this connection. |
corrects_not_found | The document in corrects.id is not managed by this connection. |
corrects_does_not_cover | The corrected document does not cover this charge. |
reversal_exceeds_document | The credit note reverses more than the corrected document covers. |
link_unsafe | The link does not meet the security rules. |
link_domain_not_allowed | The link domain is not approved for this connection. |
reservation_mismatch | The document covers facts that are not in the reservation you named: every covered fact must be part of it. |
credit_entry_not_invoiceable | The 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_advance | The 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.