curl --request POST \
--url https://sandbox.layerfi.com/v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"transactions": [
{
"external_id": "custom-transaction-id-1234",
"amount": 123,
"direction": "CREDIT",
"date": "2023-11-07T05:31:56Z",
"merchant_name": "My example merchant",
"merchant_category_code": "4072",
"description": "Original description",
"display_description": "Current description to display with details",
"currency_code": "USD",
"balance": 123,
"tags": [
{
"key": "department",
"dimension_display_name": "Department",
"value": "sales",
"value_display_name": "Sales Department"
}
],
"memo": "<string>",
"metadata": {
"custom_field": "value",
"any valid json": "below 1kb",
"nested": {
"meaning of life": 42,
"array": []
}
},
"reference_number": "<string>"
}
]
}'