Skip to main content
PATCH
Patch transaction metadata

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

Fields to change on a bank transaction's metadata. Omitted fields stay unchanged.

memo
string | null

Memo to store on the transaction. Omit this field to leave the current memo unchanged. Send null to clear it.

reference_number
string | null

Reference number to store on the transaction. Omit this field to leave the current value unchanged. Send null to clear it.

customer_id
string<uuid> | null

Layer customer ID to associate with the transaction. The customer must already exist. Omit this field to leave the current customer unchanged. Send null to clear it.

customer_external_id
string | null

External ID of the customer to associate with the transaction. Layer creates the customer when this external ID does not exist yet. Omit this field to leave the current customer unchanged. Send null to clear it. If you also send customer_id, both values must refer to the same customer.

vendor_id
string<uuid> | null

Layer vendor ID to associate with the transaction. The vendor must already exist. Omit this field to leave the current vendor unchanged. Send null to clear it.

vendor_external_id
string | null

External ID of the vendor to associate with the transaction. Layer creates the vendor when this external ID does not exist yet. Omit this field to leave the current vendor unchanged. Send null to clear it. If you also send vendor_id, both values must refer to the same vendor.

metadata
object | null

Custom metadata for the transaction. Omit this field to leave the current metadata unchanged. Send null to clear it.

Example:

Response

data
object
required

Contains metadata associated with a transaction, including an optional memo, customer, and vendor.