curl --request POST \
--url https://spark.test.woodcore.co/api/v2/ledger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Cash at Head office branch",
"glCode": "1000124e7",
"manualEntriesAllowed": true,
"name": "Cash at Office Vault",
"parentId": "29",
"type": "asset",
"usage": "header"
}'
{}
curl --request POST \
--url https://spark.test.woodcore.co/api/v2/ledger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Cash at Head office branch",
"glCode": "1000124e7",
"manualEntriesAllowed": true,
"name": "Cash at Office Vault",
"parentId": "29",
"type": "asset",
"usage": "header"
}'
{}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ddddd
The response is of type object
.