Conciliar una transacción con un nuevo título
POST/financial-transactions/:id/reconcile-with-new-billing
Creates the payable (outflow) or receivable (inflow) the open line pays, born settled on it with the line's amount, date and account; the classification is copied to the line. With twin_transaction_ids, the same title is created on each twin. Requires scope finance/reconciliations with access level write, and the token owner's payables.create or receivables.create permission, by the line's direction.
Solicitud
Respuestas
- 201
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Title created and reconciled; the Location header points at it.
Malformed JSON body, a reference sent with both id and name, or person.document_number without person.name.
Missing / invalid / expired / revoked token.
Token lacks the finance/reconciliations scope or the write access level, or the person cannot create this kind of title. Also refused with SECURITY_BLOCKED, ENTITLEMENT_REQUIRED or QUOTA_EXCEEDED when the workspace's security policy, plan or quota says no to the new title.
The transaction or a twin was not found within the tenant.
The line is not open (details.reason: line_not_open): already reconciled, or not a bank movement — a zero amount, a balance adjustment, an imported opening balance — or an idempotency key was reused with another body.
Validation failure; a person, category or classification center of another company (details.reason: reference_other_company); a twin_transaction_ids entry that does not share the line's account, direction, amount and bank text (not_twin_lines), repeats the line or another twin (duplicate_line).
Rate limit exceeded for this token. Reads and writes have separate budgets, both on a 1-hour sliding window. The response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After — wait out Retry-After rather than retrying immediately.
Unhandled server error.