curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/journal-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"datetime": "2023-11-07T05:31:56Z",
"lines": [
{
"ledger_id": "<string>",
"description": "<string>",
"debit_credit": "debit",
"amount": "89.23",
"tag_value_ids": [
"tv_Ns6rRRLYVZPh4cVB7MDby5"
],
"basis": "all"
}
]
}
'{
"data": {
"business_id": "<string>",
"description": "<string>",
"clean_description": "HomeDepot purchase",
"datetime": "2023-11-07T05:31:56Z",
"is_reconciled": true,
"review_status": "bookkeeper_pending",
"id": "<string>",
"transaction_id": "txn_WQMDNUHpBThYSNh4AprDBo",
"line_entries": [
{
"ledger_id": "<string>",
"description": "<string>",
"debit_credit": "debit",
"amount": 123,
"id": "<string>",
"journal_entry_id": "<string>",
"transaction_id": "txn_WQMDNUHpBThYSNh4AprDBo",
"tag_value_ids": [
"<string>"
]
}
],
"categorization_method": "manual",
"invoice_id": "inv_WQMDNUHpBThYSNh4AprDBo"
}
}The access token received from the authorization server in the OAuth 2.0 flow.
The id of the business
"biz_GA6EG2qFxA97NZHtxeLPUy"
The description of the Journal Entry
"HomeDepot purchase"
The datetime the Journal Entry was created in UTC ISO-8601 format
"2023-11-07T05:31:56Z"
The line entries associate with the Journal Entry. All debits and credits must balance and there must be at least one debit and one credit line
Show child attributes
Successful Response
Show child attributes
curl --request POST \
--url https://api.sandbox.getasset.com/v0/business/{business_id}/journal-entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"datetime": "2023-11-07T05:31:56Z",
"lines": [
{
"ledger_id": "<string>",
"description": "<string>",
"debit_credit": "debit",
"amount": "89.23",
"tag_value_ids": [
"tv_Ns6rRRLYVZPh4cVB7MDby5"
],
"basis": "all"
}
]
}
'{
"data": {
"business_id": "<string>",
"description": "<string>",
"clean_description": "HomeDepot purchase",
"datetime": "2023-11-07T05:31:56Z",
"is_reconciled": true,
"review_status": "bookkeeper_pending",
"id": "<string>",
"transaction_id": "txn_WQMDNUHpBThYSNh4AprDBo",
"line_entries": [
{
"ledger_id": "<string>",
"description": "<string>",
"debit_credit": "debit",
"amount": 123,
"id": "<string>",
"journal_entry_id": "<string>",
"transaction_id": "txn_WQMDNUHpBThYSNh4AprDBo",
"tag_value_ids": [
"<string>"
]
}
],
"categorization_method": "manual",
"invoice_id": "inv_WQMDNUHpBThYSNh4AprDBo"
}
}