PUT
/
v0
/
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 '[
  {
    "datetime": "2023-02-15T06:42:18Z",
    "description": "Payroll#230215",
    "line_entry_changes": {
      "create": [
        {
          "amount": "31282.28",
          "debit_credit": "credit",
          "description": "Payroll#230215",
          "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
          "tag_ids": [
            "<string>"
          ]
        }
      ],
      "update": [
        {
          "id": "XMDsKVuW4Wmi3LTW31Qw6E",
          "amount": "31282.28",
          "debit_credit": "credit",
          "description": "<string>",
          "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
          "tag_ids": [
            "<string>"
          ]
        }
      ],
      "delete": [
        "<string>"
      ]
    },
    "id": "TYcnEf8yEYMXSwUui3E2df"
  }
]'
This response has no body data.

Authorizations

Authorization
string
header
required

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

Headers

teal-instance-id
string
required

The Teal instance ID

modified-by
string | null

An optional identifier for audit logging.

Body

application/json · object[]
id
string
required

The unique ID of the object.

datetime
string | null

The datetime the Journal Entry was created in UTC time.

description
string | null

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

line_entry_changes
object | null

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.