Openapi
Return the reconciliation status of a bank account, its latest transactions and the best invoice match for each open one.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
accountId*stringuuidorganizationId*stringuuidReturns the result.
application/jsonlines*array<>status*suggestions*array<>curl -X GET 'https://app.localhost/api/v1/organizations/123/bank-accounts/123e4567-e89b-12d3-a456-426614174000/reconciliation'{ "lines": [ { "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "amount": 0, "bookedOn": "2019-08-24", "counterpartyIban": "string", "counterpartyName": "string", "currency": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "matches": [ { "amount": 0, "targetId": "string", "targetType": "invoice" } ], "remittance": "string", "status": "unmatched", "structuredReference": "string" } ], "status": { "asOf": "2019-08-24", "currency": "string", "difference": 0, "ledgerBalance": 0, "reconciled": true, "statementBalance": 0, "transactionTotal": 0, "unmatchedCount": 0, "unmatchedTotal": 0 }, "suggestions": [ { "balance": 0, "currency": "string", "label": "string", "reasons": [ "string" ], "score": 0, "targetId": "string", "targetType": "string", "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc" } ]}