Ledger
Update a Ledger
API Overview
Authentication
Journal Entry
Ledger
Reports
Transaction
Ledger
Update a Ledger
PATCH
/
v0
/
business
/
{business_id}
/
ledger
/
{ledger_id}
curl --request PATCH \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/ledger/{ledger_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "asset",
"subtype": "current_asset",
"financial_account_type": "bank_account",
"debit_credit": "debit",
"sort_code": "<string>",
"editable": true,
"report_cash_flow": true,
"parent_id": "<string>"
}'
{
"data": {
"name": "<string>",
"type": "asset",
"subtype": "current_asset",
"financial_account_type": "bank_account",
"debit_credit": "debit",
"sort_code": "<string>",
"editable": true,
"report_cash_flow": true,
"parent_id": "<string>",
"id": "<string>",
"business_id": "<string>"
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
curl --request PATCH \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/ledger/{ledger_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "asset",
"subtype": "current_asset",
"financial_account_type": "bank_account",
"debit_credit": "debit",
"sort_code": "<string>",
"editable": true,
"report_cash_flow": true,
"parent_id": "<string>"
}'
{
"data": {
"name": "<string>",
"type": "asset",
"subtype": "current_asset",
"financial_account_type": "bank_account",
"debit_credit": "debit",
"sort_code": "<string>",
"editable": true,
"report_cash_flow": true,
"parent_id": "<string>",
"id": "<string>",
"business_id": "<string>"
}
}