PUT
/
v1
/
businesses
/
{businessId}
/
bank-transactions
/
{transactionId}
/
metadata
Update transaction metadata
curl --request PUT \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "memo": "Example memo to associate with a transaction",
  "metadata": {
    "custom_field": "value",
    "any valid json": "below 10kb",
    "nested": {
      "meaning of life": 42,
      "array": []
    }
  },
  "reference_number": "<string>"
}'
{
  "memo": "Example memo to associate with a transaction",
  "metadata": {
    "custom_field": "value",
    "any valid json": "below 10kb",
    "nested": {
      "meaning of life": 42,
      "array": []
    }
  },
  "reference_number": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business that the transaction to update the metadata for belongs to

transactionId
string
required

The UUID of the bank transaction to update metadata for

Body

application/json

Contains metadata associated with a transaction, including optional fields for additional context.

memo
string | null

Optional memo field for adding notes or additional information about the transaction.

Example:

"Example memo to associate with a transaction"

metadata
object

Arbitrary custom metadata in JSON format with a size limit of 10KB

Example:
{
"custom_field": "value",
"any valid json": "below 10kb",
"nested": { "meaning of life": 42, "array": [] }
}
reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the bank transaction. Can be used to filter when listing bank transactions.

Response

Contains metadata associated with a transaction, including optional fields for additional context.

memo
string | null

Optional memo field for adding notes or additional information about the transaction.

Example:

"Example memo to associate with a transaction"

metadata
object

Arbitrary custom metadata in JSON format with a size limit of 10KB

Example:
{
"custom_field": "value",
"any valid json": "below 10kb",
"nested": { "meaning of life": 42, "array": [] }
}
reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the bank transaction. Can be used to filter when listing bank transactions.