New Light partners with Amesto GlobalLight partners with Amesto Global Read the announcement

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.

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

  • bankAccountId string · uuidrequired

Request body

application/json;charset=UTF-8

  • transactions array of objectrequired

    List of bank transactions to create. Maximum 500 per request.

    • date string · daterequired

      Transaction date

    • amount integer · int64required

      Transaction amount in minor units (e.g. cents). Must be positive.

    • dcSign stringrequired

      Debit/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

      D is money in (the balance goes up), C is 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 D C

    • name string

      Transaction name / payee

    • memo string

      Transaction memo / description

    • reference string

      Transaction reference

    • transactionId string

      External 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. null disables it for the row, so retries insert it again.

Response

  • id string · uuid

    Unique identifier for the bank transaction

  • bankAccountId string · uuid

    ID of the bank account this transaction belongs to

  • date string · date

    Transaction date

  • amount integer · int64

    Transaction amount in minor units (e.g. cents)

  • dcSign string

    Debit/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 D C

  • reconciliationStatus string

    Reconciliation status

    ⚠️ This enum is not exhaustive; new values may be added in the future.

    One of EXCLUDED MATCHED UNMATCHED

  • isDuplicated boolean

    Whether 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:false to do the same. Lines created through the API or a file are never marked.

  • name string

    Transaction name / payee

  • memo string

    Transaction memo / description

  • reference string

    Transaction reference

  • transactionId string

    External transaction identifier for idempotency

  • createdAt string · date-time

    Timestamp when the transaction was created