API / Reference / Bank Accounts
Create bank transactions
POST
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.
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. DEBIT for money out, CREDIT for money in.
⚠️ This enum is not exhaustive; new values may be added in the future.
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.
-
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
⚠️ 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 -
namestringTransaction name / payee
-
memostringTransaction memo / description
-
referencestringTransaction reference
-
transactionIdstringExternal transaction identifier for idempotency
-
createdAtstring · date-timeTimestamp when the transaction was created