Accounting compose negative amount
The API answers with ACCOUNTING_COMPOSE_NEGATIVE_AMOUNT as an RFC 9457 problem document.
| Code | ACCOUNTING_COMPOSE_NEGATIVE_AMOUNT |
|---|---|
| HTTP status | 422 Unprocessable Content |
| Type | https://docs.cbs.bftlabs.org/errors/ACCOUNTING_COMPOSE_NEGATIVE_AMOUNT |
Example response
{
"type": "https://docs.cbs.bftlabs.org/errors/ACCOUNTING_COMPOSE_NEGATIVE_AMOUNT",
"title": "Accounting compose negative amount",
"status": 422,
"detail": "A sentence about this occurrence, safe to show to the user.",
"instance": "/api/v1/…",
"code": "ACCOUNTING_COMPOSE_NEGATIVE_AMOUNT"
}Branch on code, not on title or detail: the code is stable, the wording is not. Extra context, such as field errors in details.errors[].field_path, arrives under details.