Reconcile a bank movement
accounting:banks.writehttps://api.holded.com/api/v2/treasury/accounts/{bankingAccountId}/bank-movements/{movementId}/reconcileReconciles a bank movement. With a `documents` payload, links the movement to one or more existing Holded documents (invoices, sales receipts, purchases, credit notes, payments, remittances, and more). Pass a single document to close it in one step, or pass multiple documents to split the movement across several entries. Every document must already exist in Holded and belong to the same account. With an empty or missing body, marks the movement as reconciled without linking it to any document — useful to clear a movement from the pending-reconciliation list when no matching document exists in Holded. This operation is not idempotent: reconciling the same (movement, document) pair twice returns a 422 because the document is already paid or the remaining amount is zero.
Parameters
Path parameters
stringrequiredBanking account identifier
stringrequiredBank movement identifier
Request body
Documents to reconcile against the bank movement. Provide one or more entries when splitting a single movement across multiple documents. Omit to mark the movement as reconciled without linking any document.
Identifier of the Holded document to match against
Document type
invoicesalesreceiptpurchasecreditnotepurchaserefundpayrollpaymentremittancepurchasereceiptcollectionreceiptentryRequest
import requests
url = "https://api.holded.com/api/v2/treasury/accounts/507f1f77bcf86cd799439011/bank-movements/507f1f77bcf86cd799439012/reconcile"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"documents": [
{
"document_id": "abc123",
"document_type": "invoice"
}
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Responses
Response
{}Success responses
200Bank movement reconciledapplication/jsonError responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Banking account or movement not foundapplication/json422Validation errorapplication/json423Reconciliation locked (concurrent update in progress)429Rate limit exceededapplication/json