Clara allows you to access billing statements programmatically through its API. These statements summarize monthly transactions and charges by account and are essential for reconciliation, reporting, or audit processes.
The API provides endpoints to:
- Retrieve all billing statements
- Retrieve a specific billing statement by UUID
- Retrieve all transactions from a specific billing statement
Each of these endpoints returns structured financial data, including statement periods, totals, and associated transaction details.
1๏ธโฃ Retrieve All Billing Statements
Use this endpoint to list all billing statements associated with the account.
๐ Endpoint
GET /v3/billing-statements
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v3/billing-statements" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
[
{
"uuid": "e4a50134-447f-4c34-b6b6-78cdb43d3fd5",
"statementStartDate": "2024-06-01",
"statementEndDate": "2024-06-30",
"currency": "MXN",
"totalAmount": 10000.00
}
]
2๏ธโฃ Retrieve a Billing Statement by UUID
Use this endpoint to retrieve the full details of a specific billing statement, including amounts, dates, and metadata.
๐ Endpoint
GET /v3/billing-statements/{uuid}
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v3/billing-statements/e4a50134-447f-4c34-b6b6-78cdb43d3fd5" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
{
"uuid": "e4a50134-447f-4c34-b6b6-78cdb43d3fd5",
"currency": "MXN",
"totalAmount": 10000.00,
"statementStartDate": "2024-06-01",
"statementEndDate": "2024-06-30",
"status": "closed",
"generatedAt": "2024-07-01T10:00:00Z"
}
3๏ธโฃ Retrieve Transactions from a Billing Statement
Use this endpoint to get all transactions associated with a given billing statement.
๐ Endpoint
GET /v3/billing-statements/{uuid}/transactions
๐ค cURL Request
curl -X GET \
"https://public-api.mx.clara.com/api/v3/billing-statements/e4a50134-447f-4c34-b6b6-78cdb43d3fd5/transactions" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
๐ฅ Sample JSON Response
[
{
"uuid": "0fa38f1b-8ae6-4ac6-9171-d3dba4dfecbe",
"amount": 1200.00,
"currency": "MXN",
"description": "Flight booking",
"category": "Travel",
"date": "2024-06-10"
}
]
๐ก Tip: Billing statements and their transactions are useful for automating your month-end reconciliation process.
โ ๏ธ Note: The sample data shown is for illustrative purposes only and does not represent actual financial or tax calculations.