Skip to main content
PUT
/
v0
/
journal-entries
Update multiple Journal Entries
curl --request PUT \
  --url https://api.sandbox.teal.dev/v0/journal-entries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '
[
  {
    "id": "<string>",
    "datetime": "2023-02-15T06:42:18Z",
    "description": "Payroll#230215",
    "line_entry_changes": {
      "create": [
        {
          "amount": "31282.27999999999883584678173065185546875",
          "debit_credit": "debit",
          "ledger_id": "<string>",
          "description": "Payroll#230215",
          "tag_ids": [
            "<string>"
          ]
        }
      ],
      "update": [
        {
          "id": "<string>",
          "amount": "31282.27999999999883584678173065185546875",
          "debit_credit": "credit",
          "description": "<string>",
          "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
          "tag_ids": [
            "<string>"
          ]
        }
      ],
      "delete": [
        "<string>"
      ]
    }
  }
]
'
{
  "message": "<string>",
  "data": "<unknown>",
  "display_message": "<string>",
  "error_code": "invalid_date"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

teal-instance-id
string
required

The Teal instance ID

modified-by
string | null

An optional identifier for audit logging.

Body

application/json
id
string
required

The unique ID of the object.

Example:

"TYcnEf8yEYMXSwUui3E2df"

datetime
string<date-time> | null

The datetime the Journal Entry was created in UTC time.

Example:

"2023-02-15T06:42:18Z"

description
string | null

An arbitrary string on the object, useful for displaying to the user.

Example:

"Payroll#230215"

line_entry_changes
LineEntryChanges · object

An object with optional create, update, and delete parameters to modify the Line Entries associated with the Journal Entry. The create and update parameters accept lists of Line Entry objects, while the delete parameter accepts a list of existing Line Entry IDs.

Response

Successful Response