curl -X PUT https://kube.acho.io/service/general-ledger/journal-entries/JE-2024-002 \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"memo": "Updated memo - Office supplies",
"lines": [
{
"line_number": 1,
"account_id": "a35mjFPFRW33BJRCQr",
"debit": 600,
"credit": 0,
"memo": "Updated expense"
},
{
"line_number": 2,
"account_id": "a35mjFPFRW33BJRCQs",
"debit": 0,
"credit": 600,
"memo": "Updated payment"
}
]
}'
{
"journal_entry_id": "JE-2024-002",
"tran_date": "2024-01-16",
"posting_period_id": "a3UM4R8nYh33A6hgda",
"memo": "Updated memo - Office supplies",
"entry_type": "Standard",
"currency": "USD",
"status": "Draft",
"total_debit": 600,
"total_credit": 600,
"lines": [
{
"line_number": 1,
"account_id": "a35mjFPFRW33BJRCQr",
"debit": 600,
"credit": 0,
"memo": "Updated expense"
},
{
"line_number": 2,
"account_id": "a35mjFPFRW33BJRCQs",
"debit": 0,
"credit": 600,
"memo": "Updated payment"
}
],
"updated_at": "2024-01-16T11:00:00Z"
}
Update a draft journal entry
curl -X PUT https://kube.acho.io/service/general-ledger/journal-entries/JE-2024-002 \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"memo": "Updated memo - Office supplies",
"lines": [
{
"line_number": 1,
"account_id": "a35mjFPFRW33BJRCQr",
"debit": 600,
"credit": 0,
"memo": "Updated expense"
},
{
"line_number": 2,
"account_id": "a35mjFPFRW33BJRCQs",
"debit": 0,
"credit": 600,
"memo": "Updated payment"
}
]
}'
{
"journal_entry_id": "JE-2024-002",
"tran_date": "2024-01-16",
"posting_period_id": "a3UM4R8nYh33A6hgda",
"memo": "Updated memo - Office supplies",
"entry_type": "Standard",
"currency": "USD",
"status": "Draft",
"total_debit": 600,
"total_credit": 600,
"lines": [
{
"line_number": 1,
"account_id": "a35mjFPFRW33BJRCQr",
"debit": 600,
"credit": 0,
"memo": "Updated expense"
},
{
"line_number": 2,
"account_id": "a35mjFPFRW33BJRCQs",
"debit": 0,
"credit": 600,
"memo": "Updated payment"
}
],
"updated_at": "2024-01-16T11:00:00Z"
}
jwt YOUR_TOKENapplication/jsonDraft status can be updated. Use the Request Change workflow action to return an entry to Draft status.curl -X PUT https://kube.acho.io/service/general-ledger/journal-entries/JE-2024-002 \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"memo": "Updated memo - Office supplies",
"lines": [
{
"line_number": 1,
"account_id": "a35mjFPFRW33BJRCQr",
"debit": 600,
"credit": 0,
"memo": "Updated expense"
},
{
"line_number": 2,
"account_id": "a35mjFPFRW33BJRCQs",
"debit": 0,
"credit": 600,
"memo": "Updated payment"
}
]
}'
{
"journal_entry_id": "JE-2024-002",
"tran_date": "2024-01-16",
"posting_period_id": "a3UM4R8nYh33A6hgda",
"memo": "Updated memo - Office supplies",
"entry_type": "Standard",
"currency": "USD",
"status": "Draft",
"total_debit": 600,
"total_credit": 600,
"lines": [
{
"line_number": 1,
"account_id": "a35mjFPFRW33BJRCQr",
"debit": 600,
"credit": 0,
"memo": "Updated expense"
},
{
"line_number": 2,
"account_id": "a35mjFPFRW33BJRCQs",
"debit": 0,
"credit": 600,
"memo": "Updated payment"
}
],
"updated_at": "2024-01-16T11:00:00Z"
}