Skip to main content
PATCH
/
v0
/
business
/
{business_id}
/
journal-entries
Bulk Update Journal Entries
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/journal-entries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "journal_entry_id": "<string>",
    "changes": {
      "description": "<string>",
      "datetime": "2023-11-07T05:31:56Z",
      "line_changes": {
        "create_lines": [
          {
            "ledger_id": "<string>",
            "description": "<string>",
            "debit_credit": "debit",
            "amount": "89.23",
            "tag_value_ids": [
              "tv_Ns6rRRLYVZPh4cVB7MDby5"
            ],
            "tags": {
              "Location": "NYC"
            }
          }
        ],
        "delete_lines": [
          "<string>"
        ]
      },
      "review_status": "bookkeeper_pending",
      "is_reconciled": true
    }
  }
]
'
{
  "data": [
    {
      "business_id": "<string>",
      "description": "<string>",
      "clean_description": "HomeDepot purchase",
      "datetime": "2023-11-07T05:31:56Z",
      "is_reconciled": true,
      "review_status": "bookkeeper_pending",
      "basis": "both",
      "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"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-user-id
string | null

Optional external entity identifier that performed the update

Path Parameters

business_id
string<biz_string>
required

The id of the business

Example:

"biz_GA6EG2qFxA97NZHtxeLPUy"

Body

application/json
Maximum array length: 100
journal_entry_id
string<je_string>
required

The ID of the Journal Entry to update

changes
JournalEntryPatch · object
required

The changes to apply to the Journal Entry

Response

Successful Response

data
JournalEntryPublic · object[]
required