This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
curl --location -g --request POST '{{subdomain}}/api2/api2/journals.json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Journal": {
"entity_type": "expense",
"entity_id": "123",
"total_debit": 500.00,
"total_credit": 500.00,
"currency_code": "USD",
"description": "Office supplies expense",
"staff_id": 1,
"JournalTransaction": [
{
"journal_id": 0,
"debit": 500.00,
"credit": 0.00,
"currency_code": "USD",
"description": "Office supplies expense",
"journal_account_id": "1001"
},
{
"journal_id": 0,
"debit": 0.00,
"credit": 500.00,
"currency_code": "USD",
"description": "Cash payment for office supplies",
"journal_account_id": "1002"
}
]
}
}'
{}