Skip to main content
POST
/
v1
/
businesses
/
{businessId}
/
custom-accounts
/
{customAccountId}
/
balance
Set opening balance
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/custom-accounts/{customAccountId}/balance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "date": "2023-11-07T05:31:56Z"
}
'
{
  "type": "{}"
}

Documentation Index

Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt

Use this file to discover all available pages before exploring further.

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 to set opening balance for.

customAccountId
string
required

The UUID of the custom account to set opening balance for.

Body

application/json
amount
integer

The new balance for the custom account, in cents.

date
string<date-time>

The timestamp when the new balance was recorded.

Response

type
string

Resource type. Value will be 'com.layerfi.controllers.EmptyResponse'.

Example:

"{}"