Skip to main content
PUT
/
v0
/
business
/
{business_id}
/
ledger
/
{ledger_id}
/
opening-balance
Set the Opening Balance for a Ledger
curl --request PUT \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/ledger/{ledger_id}/opening-balance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "1000.00"
}
'
{
  "data": {
    "ledger_id": "<string>",
    "amount": 123
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required

The id of the business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

ledger_id
string<ldg_string>
required

The id of the ledger

Example:

"ldg_WQMDNUHpBThYSNh4AprDBo"

Body

application/json
amount
required

The opening balance for this ledger as of the business entries start date. Positive values represent the normal balance side of the ledger, negative values represent the opposite side.

Example:

"1000.00"

Response

Successful Response

data
LedgerOpeningBalancePublic · object
required