v1

latestOpenAPI 3.1.02026-07-12103760.3 KB
Companies
Journals

Batch Create Journals

post/unified/accounting/companies/{id}/journals/batch

Path parameters

idstring required

Headers

x-account-idstring required

The account identifier

Preferstring
Example:heartbeat

Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)

Request body

Example request

{
  "items": [
    {
      "reference": "JRN-2024-001",
      "memo": "Monthly closing entries",
      "currency_code": {
        "value": "USD"
      },
      "exchange_rate": 1,
      "transaction_date": "2024-03-20T10:00:00Z",
      "lines": [
        {
          "account_id": "acc_123456789",
          "description": "Payment for office supplies",
          "amount": 10010,
          "tax_rate_id": "tax_123456789",
          "tax_amount": 10010
        }
      ]
    }
  ]
}

Response

Batch operation accepted

statusCodenumber nullable
messagestring nullable
timestampstring date-time nullable

Example response

{
  "statusCode": 202,
  "message": "Batch operation accepted",
  "timestamp": "2021-01-01T01:01:01.000Z",
  "errors": [
    [
      "Missing field: name"
    ],
    [],
    []
  ]
}