Reconcile easily
Ideal if you need to manage incoming and outgoing invoices.
Our APIs enable you to look at each transaction on the currency account. Incoming payments carry references to help you automatically reconcile against invoices.
If you want to scale, you can simply give each client a unique account number to pay into. This helps you automatically recognise inward payments and allocate them to the relevant customer.r.
API endpoints call sequence
Here is an example of how the APIs can be initiated in a specific sequence to address the use case described above. Feel free to align with our Implementation team if you are looking for additional requirements and optimisations:
- Get accounts
- Get balances
- Get payments
- Get transactions
Code snippets
Step 1
Use the Get accounts endpoint to get information about the bank accounts (you can think of them as ‘wallets’). It has all the data to help you identify each of the bank accounts.
curl --location -g '{{APP_URL}}/accounts'
Step 2
Call the Get balances to find out the balance you are holding in the corresponding bank accounts.
curl --location -g '{{baseUrl}}/balances?currencies=%3Cstring%3E&client_id=%3Cstring%3E' \ --header 'x-api-key;' \ --header 'Authorization: <string>' \ --header 'X-Contact-ID: <string>'
Step 3
Call the Get transactions endpoint to query all activities in your accounts. This includes the incoming funds, outgoing payments, margins and trades. The transaction_reference has the necessary data that can be used for reconciliation.
curl --location -g '{{APP_URL}}/transactions?client_id={{client_id}}' \ --header 'Authorization: Bearer {{token}}' \ --header 'X-Contact-ID: {{contact_id}}' \ --header 'x-api-key: {{api_key}}'