Statements
Every request goes to https://api.lemak.cash. About the reference.
Download a monthly statement
GET /v1/statements
Returns your account statement for one calendar month in the mode of the API key: per currency, the opening balance, every balance transaction of the month, the totals by type and the closing balance, then the settlements paid in the month. The opening balance plus the net of the month is the closing balance. The statement is built on each request.
Authentication
Bearer key. Your secret API key, which starts with sk_test_ or sk_live_. Send it as Authorization: Bearer <key>. A test key works as soon as your account exists. A production key returns 403 live_not_enabled until your account is activated.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Api-Version optional | header | string | The API version for this request, as a date in YYYY-MM-DD format. When omitted, your account's version applies, which is set to the latest version on your first request. An unknown version returns 400 invalid_api_version. Pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
month required | query | string | The calendar month in UTC, as YYYY-MM. The current month is served to the time of the request and marked provisional. A month that has not begun is 400 invalid_month. Pattern ^[0-9]{4}-[0-9]{2}$. |
format required | query | string | csv for a file Excel opens, or html for a printable A4 page. Print the page to save a PDF. Any other value is 400 invalid_format. One of csv, html. |
lang optional | query | string | The language of the labels. Defaults to en. One of en, zh-Hans, zh-Hant. |
Responses
200
The statement.
text/csv
string
text/html
string
Errors
Every error answers with the error object.
| Status | When |
|---|---|
| Other | An error. The status tells you the kind: 400 invalid request, 401 invalid API key, 402 payment could not be placed, 403 forbidden, 404 not found, 409 conflict, 413 body over 64 KiB, 422 idempotency key reused, 429 too many requests, 5xx server error. A test mode key takes at most 5 requests a second. |
Example
curl "https://api.lemak.cash/v1/statements?format=csv&month=%3Cmonth%3E" \
-H "Authorization: Bearer sk_test_..." \
-H "Api-Version: 2026-12-01"