Create bank transactions
https://api.light.inc/v1/bank-accounts/{bankAccountId}/bank-transactions
Creates bank transactions in batch. Maximum 500 transactions per request. Duplicate transactions (same transactionId for the same bank account) are silently skipped.
Permission: bank-transactions:import (COMPANY_ADMIN, CONTROLLER)
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
bankAccountIdstring · uuidrequired
Request body
application/json;charset=UTF-8
-
transactionsarray of objectrequiredList of bank transactions to create. Maximum 500 per request.
-
datestring · daterequiredTransaction date
-
amountinteger · int64requiredTransaction amount in minor units (e.g. cents). Must be positive.
-
dcSignstringrequiredDebit/credit sign on the bank account. D for money in, C for money out.
⚠️ This enum is not exhaustive; new values may be added in the future.
Note
Dis money in (the balance goes up),Cis money out — the reverse of the description. A bank account is an asset, and every other way transactions reach Light uses this convention.One of
DC -
namestringTransaction name / payee
-
memostringTransaction memo / description
-
referencestringTransaction reference
-
transactionIdstringExternal transaction identifier. Used for idempotency — duplicate transactionIds for the same bank account are silently skipped.
Note
The de-duplication key, among transactions created through this API only.
nulldisables it for the row, so retries insert it again.
-
Response
-
idstring · uuidUnique identifier for the bank transaction
-
bankAccountIdstring · uuidID of the bank account this transaction belongs to
-
datestring · dateTransaction date
-
amountinteger · int64Transaction amount in minor units (e.g. cents)
-
dcSignstringDebit/credit sign on the bank account. D for money in, C for money out.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
DC -
reconciliationStatusstringReconciliation status
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
EXCLUDEDMATCHEDUNMATCHED -
isDuplicatedbooleanWhether Light found this line repeats an earlier bank feed line and excluded it on import. The Light app hides such lines; filter with
isDuplicated:eq:falseto do the same. Lines created through the API or a file are never marked. -
namestringTransaction name / payee
-
memostringTransaction memo / description
-
referencestringTransaction reference
-
transactionIdstringExternal transaction identifier for idempotency
-
createdAtstring · date-timeTimestamp when the transaction was created