API reference
Base URL https://api.ligoapi.com
Status and incidents
Live status and past incidents of the API: status.ligoapi.com
Data format
| Value | Format | Description |
|---|---|---|
| Amount | {"value": "1250.00", "currency": "USD"} | Decimal text with its currency’s decimals: never a floating-point number and never negative. Whether money comes in or goes out is in credit_debit. |
| Date | YYYY-MM-DD | The bank’s day, not converted between time zones. |
| Date and time | ISO 8601 in UTC, with Z | For example created_at and balance.fetched_at. |
| Identifiers | acc_…, txn_…, int_…, ent_… | Opaque: never read or build one. An account keeps its ID from one request to the next. |
A single object comes back as it is; a list comes back as {"data": [...]}.
Only the fields that identify a record are always present. A value the bank does not provide, or does not provide reliably, is left out: it is never guessed.
adjusted names the fields Ligo computed or corrected. Version 1 only grows: ignore fields and values you do not recognize.
Stored data and freshness
Ligo stores your accounts, their latest balance and their transactions, and the GET routes read what it stored: they never call the bank. Only two routes call the bank: adding an account, once, to check that your credentials can see it, and the refresh.
A refresh fetches an account only when its data is stale. Each account has boundaries at the bank’s midnight and every refresh_interval_minutes after it, and stays fresh while its last refresh succeeded and no boundary has passed. Send "force": true to fetch regardless.
An account’s first refresh reaches 31 days back. Banks book late and correct entries, so every refresh fetches the last two days again. Older history comes from a statement upload.
Some banks deliver their information in files, as often as your company’s contract with them provides. Their data cannot be more recent than the latest file, and the refresh says so with a stale_source warning.
| Field | Values | What it tells you |
|---|---|---|
source | api, file | On every account and transaction. api if Ligo queried the bank’s API, file if it read a file: one the bank delivers or a statement you uploaded. |
balance.fetched_at | Date and time in UTC | When Ligo fetched the balance from the bank. |
refresh_interval_minutes | 5 to 1440, default 240 | Minutes between an account’s refresh boundaries. Set it with PATCH. |
refreshed | true, false | On a refresh’s answer. true if this request fetched the account, false if it was fresh and came from storage. |
Bank credentials
Ligo does not store your bank credentials. It needs them whenever it calls the bank: when you add an account and when a refresh fetches. The header holds a JSON object keyed by integration ID, base64url-encoded, with one entry for each integration the request calls.
On each request
In the X-Bank-Credentials header. Ligo uses them for that call and discards them: they only ever exist in memory.
From your secret manager Planned
In your own cloud secret manager, such as AWS Secrets Manager, with a read-only role for Ligo limited to that secret, which you can withdraw whenever you decide.
BANK_CREDENTIALS=$(printf '{"int_YUdNP6Ksih3yCEgVKy2tzg":{"api_key":"test_ok"}}' \ | base64 | tr '+/' '-_' | tr -d '=\n') Data access
Your stored live data, account names, balances and transactions, is encrypted, and only your own API keys can open it. Ligo never holds the key that opens it beyond the memory of one of your requests.
So a live key is claimed, not handed over: Ligo sends you a one-time claim code (ligo_claim_…) and you exchange it for the key. Every claimed key holds data access, and so do the tokens made from it. A key or token without it gets data_key_unavailable. Sandbox keys always have it.
Keep at least two live keys with data access and no expiry. If you lose every one, your stored live data is lost: Ligo cannot read it for you.
Authentication
POST/oauth/token Send your API key in the Authorization header as Bearer. A key has a client_id and a client_secret, shown once, when it is issued. A ligo_live_… key reaches your real integrations and a ligo_test_… key the sandbox, at the same address and with the same routes.
If your system works with OAuth 2.0, exchange the key for an access token here, with the client credentials flow and an application/x-www-form-urlencoded body. The token lasts one hour, has its key’s mode and permissions, and is sent the same way as the key.
Every key can read: list, read and refresh. A key can also write, to add and edit accounts and upload statements, only if you ask for it when it is issued.
Parameters
- grant_type
- body · required · string
- Always
client_credentials. - client_id
- body · required · string
- Your key’s. By HTTP Basic or in the body.
- client_secret
- body · required · string
- Your key’s, sent the same way as the
client_id, never both ways.
Response
- access_token
- always present · string
- The token:
ligo_at_…for a live key,ligo_test_at_…for a sandbox key. Opaque, up to 512 characters. - token_type
- always present · string
- Always
Bearer. - expires_in
- always present · integer
- Seconds until it expires:
3600, or fewer if the key expires sooner.
A key can be limited to the IP addresses you name. Ligo rotates a key on request: the old key keeps working for a grace period, seven days by default and 30 at most. A revoked key stops within a minute, and its tokens with it. This route alone answers errors in the OAuth 2.0 format, for example {"error": "invalid_client"}.
curl https://api.ligoapi.com/oauth/token \ -u "$LIGO_CLIENT_ID:$LIGO_CLIENT_SECRET" \ -d grant_type=client_credentials { "access_token": "ligo_test_at_8Kc2pQx7Vd0mZr4TnY1sWbHeLu9aFj3G", "token_type": "Bearer", "expires_in": 3600} Claim a live key
POST/v1/keys/claim Exchanges a claim code for a live key with data access. Your company’s first live key is claimed with the code alone, with no Authorization header; every later one presenting a live key that already has data access, so the new key opens the same data. It never calls a bank.
The key is shown once: store its secret straight away. A claim code expires 24 hours after it is issued. Rotation works the same way: Ligo sends a successor code and you redeem it presenting the old key.
Parameters
- code
- body · required · string
- The claim code,
ligo_claim_….
Response
- id
- always present · string
- The key’s ID,
key_…. - api_key
- always present · string
- The whole key, for use as a bearer.
- client_id
- always present · string
- The client ID, for
/oauth/token. - client_secret
- always present · string
- The secret, shown once.
- mode
- always present · string
- Always
live. - permissions
- always present · array
-
read, andwriteif the claim carried it. - allowed_ips
- always present · array
- The key’s IP allowlist, empty when it has none.
- data_access
- always present · boolean
- Always
true.
curl https://api.ligoapi.com/v1/keys/claim \ -H "Authorization: Bearer $LIGO_LIVE_KEY" \ -H "Content-Type: application/json" \ -d '{ "code": "ligo_claim_…" }' { "id": "key_QRLN9UJ9h7MtkH4BF1TQcg", "api_key": "ligo_live_…", "client_id": "ligo_live_…", "client_secret": "…", "mode": "live", "permissions": ["read", "write"], "allowed_ips": [], "data_access": true} Integrations
GET/v1/integrations Lists your integrations in your key’s mode. An integration is one of your companies connected to one bank, and Ligo sets them up for you for now. You need an integration’s ID to add accounts under it.
Response
- id
- always present · string
- The integration’s ID,
int_…. Send it asintegration_id. - entity_id
- always present · string
- The company it belongs to,
ent_…. - bank
- always present · string
- The bank, for example
banco_generalorsandbox. - enabled
- always present · boolean
- Whether the integration is in use.
- created_at
- always present · string
- When it was created, in UTC.
curl https://api.ligoapi.com/v1/integrations \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" { "data": [ { "id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "enabled": true, "created_at": "2026-11-01T14:30:00.000Z" } ]} Accounts
GET/v1/accounts Lists your accounts in your key’s mode, oldest first, disabled ones included. Reads what Ligo stored and never calls the bank.
Parameters
- integration_id
- query · string
- Only the accounts of this integration.
- enabled
- query · boolean
-
trueorfalse.
Response
- id
- always present · string
- The account’s ID,
acc_…. Every other account route takes it. - integration_id
- always present · string
- The integration it belongs to.
- entity_id
- always present · string
- The company it belongs to.
- bank
- always present · string
- The bank, for example
banco_general. - number
- always present · string
- The full account number, letters and digits only.
- display_name
- string
- A name you set, kept as you wrote it.
- type
- string
-
checking,savingsorother, as the bank reports it. - currency
- string
- The currency’s ISO 4217 code, for example
USD. - enabled
- always present · boolean
- A disabled account is kept and skipped when refreshing. Accounts are never deleted.
- refresh_interval_minutes
- always present · integer
- Minutes between its refresh boundaries, 5 to 1440, default 240.
- created_at
- always present · string
- When it was added, in UTC.
- updated_at
- always present · string
- When it last changed, in UTC.
- balance
- object
- The latest balance Ligo fetched, described below. Absent until one has been fetched.
- refresh_error
- object
- Present while the latest refresh of this account failed: the error
code, andat, when. It stays until a refresh succeeds.
The balance object
- balance.type
- always present · string
- Which figure:
interim_availableorinterim_booked(available or ledger, now),closing_availableorclosing_booked(at the close of the day) oropening_booked. Ligo shows the first the bank reports, in that order, and never labels a ledger figure as available. - balance.amount
- always present · Money
- The amount, never negative.
- balance.credit_debit
- string
-
creditif there are funds,debitif the account is overdrawn. Left out when the bank does not say. - balance.date
- date
- The bank’s day for the figure.
- balance.fetched_at
- always present · string
- When Ligo fetched it, in UTC.
curl "https://api.ligoapi.com/v1/accounts?integration_id=int_YUdNP6Ksih3yCEgVKy2tzg&enabled=true" \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" { "data": [ { "id": "acc_Gl6D6C_lAlrga_xKl3Vuboi8Mz8-LLZoFC6C6WDo_Z_jfgLGjO8YyqTDQuxoUjc8a5Lq", "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "number": "0399994821131", "type": "savings", "currency": "USD", "source": "api", "enabled": true, "refresh_interval_minutes": 240, "created_at": "2026-11-11T15:04:05.123Z", "updated_at": "2026-11-11T15:04:05.123Z" } ]} Account
GET/v1/accounts/{id} Returns one account. Reads what Ligo stored and never calls the bank.
Parameters
- id
- path · required · string
- The account’s ID,
acc_….
Answers with the account object. See Accounts
curl https://api.ligoapi.com/v1/accounts/acc_Gl6D6C_lAlrga_xKl3Vuboi8Mz8-LLZoFC6C6WDo_Z_jfgLGjO8YyqTDQuxoUjc8a5Lq \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" { "id": "acc_Gl6D6C_lAlrga_xKl3Vuboi8Mz8-LLZoFC6C6WDo_Z_jfgLGjO8YyqTDQuxoUjc8a5Lq", "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "number": "0399994821131", "type": "savings", "currency": "USD", "source": "api", "enabled": true, "refresh_interval_minutes": 240, "created_at": "2026-11-11T15:04:05.123Z", "updated_at": "2026-11-11T15:04:05.123Z"} Add accounts
POST/v1/accounts Adds one account by its number, or every account the bank lists with "all": true. Ligo asks the bank once, with the credentials in X-Bank-Credentials, to check that they can see the account, and then stores it. Needs write.
Answers 201 when something was added and 200 when Ligo already had it, with the account, or a list with all. Not every bank lists its accounts: for one that does not, add each by number.
Parameters
- integration_id
- body · required · string
- The integration to add the account under.
- number
- body · string
- The account number. Required unless
allistrue. - type
- body · string
-
checking,savingsorother. Some banks need it to find the account. - display_name
- body · string
- A name for the account, up to 200 characters.
- all
- body · boolean
-
trueto add every account the bank lists. Send it withoutnumber,typeordisplay_name.
Answers with the account object. See Accounts
BANK_CREDENTIALS=$(printf '{"int_YUdNP6Ksih3yCEgVKy2tzg":{"api_key":"test_ok"}}' \ | base64 | tr '+/' '-_' | tr -d '=\n') curl https://api.ligoapi.com/v1/accounts \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" \ -H "X-Bank-Credentials: $BANK_CREDENTIALS" \ -H "Content-Type: application/json" \ -d '{ "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "all": true }' { "data": [ { "id": "acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-", "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "number": "0399994821130", "type": "checking", "currency": "USD", "source": "api", "enabled": true, "refresh_interval_minutes": 240, "created_at": "2026-11-11T15:04:05.123Z", "updated_at": "2026-11-11T15:04:05.123Z" }, { "id": "acc_Gl6D6C_lAlrga_xKl3Vuboi8Mz8-LLZoFC6C6WDo_Z_jfgLGjO8YyqTDQuxoUjc8a5Lq", "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "number": "0399994821131", "type": "savings", "currency": "USD", "source": "api", "enabled": true, "refresh_interval_minutes": 240, "created_at": "2026-11-11T15:04:05.123Z", "updated_at": "2026-11-11T15:04:05.123Z" } ]} Update an account
PATCH/v1/accounts/{id} Renames an account, disables it or enables it again, or sets how often its data goes stale. Send at least one field. No bank call and no bank credentials. Needs write.
Parameters
- id
- path · required · string
- The account’s ID.
- display_name
- body · string
- A new name, or
nullto clear it. - enabled
- body · boolean
-
falseto disable the account,trueto enable it again. - refresh_interval_minutes
- body · integer
- From 5 to 1440. Send 240 for the default.
Answers with the account object. See Accounts
curl -X PATCH https://api.ligoapi.com/v1/accounts/acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA- \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "display_name": "Payroll", "refresh_interval_minutes": 60 }' { "id": "acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-", "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "number": "0399994821130", "display_name": "Payroll", "type": "checking", "currency": "USD", "source": "api", "enabled": true, "refresh_interval_minutes": 60, "created_at": "2026-11-11T15:04:05.123Z", "updated_at": "2026-11-11T16:20:41.907Z"} Refresh
POST/v1/accounts/refresh Fetches the latest balance and the recent transactions of your stale accounts from their banks, and answers every covered account with the balance Ligo now stores and refreshed. Needs only read, so a dashboard key can refresh.
X-Bank-Credentials needs an entry for every integration the refresh calls. When every covered account is fresh, no bank is called and the header is not needed.
The call waits for the banks, up to 45 seconds: give your HTTP client a timeout at least that long. It answers 200 even when a bank fails: those accounts keep their last balance and carry a refresh_error, and the answer carries a refresh_failed warning. Identical refreshes at the same moment share one bank call.
Parameters
- account_ids
- body · array
- One to 100 account IDs. Not with
all. - all
- body · boolean
-
truefor every enabled account in your key’s mode. - integration_id
- body · string
- With
all, only the accounts of this integration. - force
- body · boolean
-
trueto fetch every covered account, fresh or not.
Answers with the account object. See Accounts
BANK_CREDENTIALS=$(printf '{"int_YUdNP6Ksih3yCEgVKy2tzg":{"api_key":"test_ok"}}' \ | base64 | tr '+/' '-_' | tr -d '=\n') curl https://api.ligoapi.com/v1/accounts/refresh \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" \ -H "X-Bank-Credentials: $BANK_CREDENTIALS" \ -H "Content-Type: application/json" \ -d '{ "all": true }' { "data": [ { "id": "acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-", "integration_id": "int_YUdNP6Ksih3yCEgVKy2tzg", "entity_id": "ent_nLoIRHnCnA27JwIA_oUXBA", "bank": "sandbox", "number": "0399994821130", "type": "checking", "currency": "USD", "source": "api", "enabled": true, "refresh_interval_minutes": 240, "refreshed": true, "created_at": "2026-11-11T15:04:05.123Z", "updated_at": "2026-11-11T15:04:05.123Z", "balance": { "type": "interim_booked", "amount": { "value": "1250.00", "currency": "USD" }, "credit_debit": "credit", "date": "2026-11-15", "fetched_at": "2026-11-15T14:32:09.418Z" } } ]} Transactions
GET/v1/transactions Lists the stored transactions of one account, one integration, or every account in your key’s mode, by booking date, oldest first, a page at a time. Never calls the bank.
While more match, the answer carries next_cursor. If Ligo does not hold every day of the period for an account, it carries a period_incomplete warning: a report is never short in silence.
A bank that corrects a transaction can give it a new id. To keep a ledger in step, match on id and read the last few days again after each refresh.
Parameters
- from
- query · date
- First booking date,
YYYY-MM-DD. Required unless you sendcursor. - to
- query · date
- Last booking date, at most 366 days after
from. Required unless you sendcursor. - account_id
- query · string
- Only this account.
- integration_id
- query · string
- Only the accounts of this integration. Not with
account_id. - limit
- query · integer
- Transactions per page, 1 to 500. Default 100.
- cursor
- query · string
- The
next_cursorfrom the previous page. Send it on its own: it carries the rest.
Response
- id
- always present · string
- The transaction’s ID,
txn_and 32 hex digits. The same movement keeps it from one refresh to the next. - account_id
- always present · string
- The account.
- status
- string
-
booked. Ligo stores booked transactions only. - credit_debit
- string
-
creditif the money came into the account,debitif it went out. - amount
- Money
- The amount, always positive.
- booking_date
- always present · date
- The day the bank booked it, in the bank’s calendar.
- value_date
- date
- The value date.
- description
- string
- The bank’s text, exactly as it wrote it.
- references
- array
- Bank, check, payment, invoice or other references, each with its
typeandvalue. No bank promises they are unique. - bank_transaction_code
- object
- The operation’s code: the ISO 20022 one (
iso) and the bank’s own (proprietary). - balance_after
- object
- The balance after the movement, if the bank reports it.
- source
- always present · string
- How the data was obtained:
filefor one from a statement upload. See Stored data and freshness - adjusted
- array
- The fields Ligo computed or corrected, for example
["booking_date"].
curl "https://api.ligoapi.com/v1/transactions?account_id=acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-&from=2026-11-14&to=2026-11-15&limit=2" \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" { "data": [ { "id": "txn_3f9a1c07be5d42e8a6c0d1b97e4f2a55", "account_id": "acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-", "status": "booked", "credit_debit": "credit", "amount": { "value": "1250.00", "currency": "USD" }, "booking_date": "2026-11-14", "value_date": "2026-11-14", "description": "Invoice 1042 payment", "references": [{ "type": "invoice", "value": "1042" }], "balance_after": { "amount": { "value": "6410.25", "currency": "USD" }, "credit_debit": "credit" }, "source": "api" }, { "id": "txn_b2d6e4810c3a47f9915e7a0d6c8f3b12", "account_id": "acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-", "status": "booked", "credit_debit": "debit", "amount": { "value": "86.40", "currency": "USD" }, "booking_date": "2026-11-14", "description": "Office supplies", "source": "api" } ], "next_cursor": "eyJ2IjoxLC…"} Upload a statement
POST/v1/accounts/{id}/statements For history older than the refresh’s 31 days, upload the OFX file your bank lets you download from its online banking: the body is the file itself, up to 5 MiB, as application/x-ofx. Ligo reads it during the request, stores its booked transactions and drops the file. It reads Banco General’s OFX files; until Banco General is connected, only the sandbox accepts them. Needs write; it never calls the bank.
Send the range you chose when downloading: the file does not say which days it covers. An upload never replaces a day a refresh holds, and the latest export of a day wins. Sending the same file again changes nothing.
Parameters
- id
- path · required · string
- The account,
acc_…. It must be enabled. - from
- query · required · date
- First day of the range you downloaded,
YYYY-MM-DD. - to
- query · required · date
- Last day of that range, at most 366 days after
from.
Response
- account_id
- always present · string
- The account.
- from
- always present · date
- The range’s first day.
- to
- always present · date
- The range’s last day.
- days_stored
- always present · integer
- Days this file now holds.
- days_skipped
- always present · object
- Days it did not write, by reason: inside the refresh’s window, still being booked when the file was exported, held by a refresh, or held by a newer export.
- transactions_stored
- always present · integer
- Transactions on the days stored.
curl "https://api.ligoapi.com/v1/accounts/acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-/statements?from=2025-11-20&to=2026-11-19" \ -H "Authorization: Bearer $LIGO_ACCESS_TOKEN" \ -H "Content-Type: application/x-ofx" \ --data-binary @statement.ofx { "account_id": "acc_WHE4iXdNcTEs4Vn-L8t7keTjCyR8mWRORj5p-LkJHedfj8zSgfYKuZk-vBqGp4RLPOA-", "from": "2025-11-20", "to": "2026-11-19", "days_stored": 304, "days_skipped": { "in_refresh_window": 31, "export_incomplete": 0, "held_by_refresh": 30, "held_by_newer_upload": 0 }, "transactions_stored": 912} Errors
message is fixed text: do not parse it, use code. Every response, with an error or without, carries the Request-Id header: include it if you write to us.
A code never changes its type or HTTP status, and new codes may be added: handle one you do not know by its type. When you need to wait, details.retry_after and the Retry-After header give the seconds.
| Code | HTTP | What it means | What to do |
|---|---|---|---|
invalid_request | 400 | The request is malformed or has a parameter out of range. details.issues says which. | Fix the request. |
unauthenticated | 401 | No valid key or token arrived. | Check the Authorization header. |
forbidden | 403 | The key is not allowed to make this request. | Use a key with the permission needed. |
data_key_unavailable | 403 | The key or token cannot open your stored data. details.reason says why. | Use a claimed live key, or claim your company’s first one. |
not_found | 404 | The path or the resource does not exist, or belongs to the other mode. | Check the path, the ID and the key. |
not_supported | 422 | The bank does not offer that operation. details.capability says which. | Check the coverage by bank. |
credential_unavailable | 422 | Ligo could not obtain the bank credentials for an integration. | Check X-Bank-Credentials: it needs an entry for each integration called. |
bank_auth_failed | 422 | The bank rejected the credentials. | Check with your bank that they are still valid. |
account_not_accessible | 422 | The credentials do not give access to that account. | Check with your bank which accounts your agreement covers. |
bank_request_rejected | 422 | The bank rejected the request. | Check details.bank_error. |
bank_unavailable | 503 | The bank did not respond or is out of service. | Try again later. |
bank_response_invalid | 503 | The bank sent a response Ligo could not read. | Try again later. If it persists, write to us with the Request-Id. |
rate_limited | 429 | A limit was reached: your key’s, an upload limit or the bank’s. | Wait as long as Retry-After says. |
key_restricted | 429 | Ligo restricted the key because its traffic looks like a runaway loop. details.restriction says why and until when. | Fix the loop, then wait as long as Retry-After says. |
internal_error | 500 | Ligo could not complete the request. | Try again. If it persists, write to us with the Request-Id. |
service_unavailable | 503 | Ligo is unavailable for a moment. | Try again later. |
unclassified | 500 | The bank or a service reported an error Ligo does not recognize. It comes in full in details.bank_error. | Write to us with the Request-Id. |
{ "error": { "type": "integration_error", "code": "account_not_accessible", "message": "The bank does not give these credentials access to this account.", "request_id": "req_8f3a0c7e5b2d4a6f9e1c3b5d7a9f0e2c", "details": { "bank": "banco_general", "bank_error": { "status": 401, "message": "Error, Cuenta No Autorizada" } } }} Warnings
A successful answer can carry a warnings list: the request worked, but the data may be incomplete. Each warning has a code, a message and details. Ignore codes you do not recognize.
| Warning | What it means |
|---|---|
refresh_failed | Some accounts could not be refreshed and keep their last balance. details.account_ids lists them and details.error_code says why. |
transactions_incomplete | Some accounts’ transactions were not fetched in full. The next refresh that fetches them fetches what is missing. |
period_incomplete | Ligo does not hold every day of the period asked for. details.missing lists the days. |
stale_source | The bank has not delivered the whole period yet. details.covered_through gives the last day delivered. |
history_unavailable | The bank no longer holds the start of the period. details.covered_from gives the first day available. |
budget_low | The integration has used most of its call budget for this bank. |
{ "data": [ … ], "warnings": [ { "code": "refresh_failed", "message": "Some accounts could not be refreshed; they keep their last balance.", "details": { "bank": "sandbox", "integration_id": "int_Q3mZ8x1Rk0aTn6VhYb4uLw", "error_code": "bank_unavailable", "account_ids": ["acc_Gl6D6C_lAlrga_xKl3Vuboi8Mz8-LLZoFC6C6WDo_Z_jfgLGjO8YyqTDQuxoUjc8a5Lq"] } } ]} Limits
| Limit | Value |
|---|---|
| Requests per live key | 600 a minute |
| Requests per sandbox key | 60 a minute |
| Statement uploads per key | 10 a minute |
| Uploaded transactions per company and mode | 200,000 a day, until 00:00 UTC |
| Time a refresh waits for the banks | 45 seconds |
Over a limit, the answer is 429 with rate_limited and a Retry-After header. Every /v1 answer carries the RateLimit-Policy and RateLimit headers, with your quota and what is left.
Banks have their own limits, and Ligo stops short of them so your calls stay inside what each bank allows. When an integration has used most of its budget, the answer carries budget_low.
A key whose traffic looks like a runaway loop, the same failing request hundreds of times or a sudden jump in volume, is slowed to a tenth of its limit for 15 minutes, then blocked, from one hour up to a day, if it goes on. Other keys of your company are never affected: give each system its own key.