Skip to main content
POST

Reconcile a bank movement

Scope:accounting:banks.write
https://api.holded.com/api/v2/treasury/accounts/{bankingAccountId}/bank-movements/{movementId}/reconcile

Reconciles 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

bankingAccountIdstringrequired

Banking account identifier

movementIdstringrequired

Bank movement identifier

Request body

object
documents[]object[]

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.

document_idstringrequired

Identifier of the Holded document to match against

document_typestringrequired

Document type

Enum:invoicesalesreceiptpurchasecreditnotepurchaserefundpayrollpaymentremittancepurchasereceiptcollectionreceiptentry

Request

python
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

json
{}

Success responses

200Bank movement reconciledapplication/json
object

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Banking account or movement not foundapplication/json
422Validation errorapplication/json
423Reconciliation locked (concurrent update in progress)
429Rate limit exceededapplication/json