data = {
"journal_date": "2022-07-12",
"reference_number": "7355",
"notes": "Loan repayment",
"journal_type": "both",
# "vat_treatment": "string",
# "include_in_vat_return": true,
# "product_type": "string",
# "is_bas_adjustment": true,
"currency_id": "460000000000097",
"exchange_rate": 1,
"line_items": [
{
"account_id": "460000000000361",
"customer_id": "123123",
"line_id": "460000000038005",
"description": "string",
# "tax_exemption_id": "string",
# "tax_authority_id": "string",
# "tax_exemption_type": "string",
# "tax_exemption_code": "string",
# "tax_authority_name": "string",
# "tax_id": "string",
"amount": 5000,
"debit_or_credit": "credit",
# "acquisition_vat_id": "string",
# "reverse_charge_vat_id": "string",
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001"
}
],
"project_id": "460000000898001"
}
],
# "tax_exemption_code": "string",
# "tax_exemption_type": "string",
"status": "draft",
"custom_fields": [
{
"customfield_id": "460000000098001",
"value": "Normal"
}
]
}