curl --request PUT \
--url https://api.zenskar.com/accounting_new/journal_entry/{journal_entry_id} \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"description": "<string>",
"currency": "<string>",
"journal_lines": [
{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credits": 123,
"debits": 123,
"currency": "<string>",
"tags": [
{
"reference_tag_type": "<string>",
"reference_tag_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference_tag_content": "<string>"
}
],
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contract_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credit_note_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_jurisdiction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revenue_contract_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revenue_contract_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"performance_obligation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"custom_tags": {}
}
],
"event": "<string>",
"posted_at": "2023-11-07T05:31:56Z",
"custom_data": {},
"auto_adjust_closed_period": true,
"source_event_log_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_resource_type": "<string>",
"source_resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_operation": "<string>"
}
'