Journal entries

Journal entries record accounting entries in the general ledger by specifying affected accounts, amounts and descriptions. Use them to create, update, or reverse entries while ensuring the general ledger remains balanced with offsetting debits and credits.

If GL Outlier Detection is enabled, Sage Intacct identifies journal entries and allocation splits that deviate from expected patterns. Outlier details are included when retrieving a journal entry object.

List journal entries

get/objects/general-ledger/journal-entry

Returns a collection of journal entries with a key, ID, and link for each entry. This operation is mostly for use in testing; use the query service to find journal entries that meet certain criteria and to specify the properties that you want in the response.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "56",
      • "id": "56",
      • "href": "/objects/general-ledger/journal-entry/56"
      },
    • {
      • "key": "132",
      • "id": "132",
      • "href": "/objects/general-ledger/journal-entry/132"
      },
    • {
      • "key": "256",
      • "id": "256",
      • "href": "/objects/general-ledger/journal-entry/256"
      }
    ],
  • "ia::meta": {
    • "totalCount": 3,
    • "start": 1,
    • "pageSize": 100,
    • "next": null,
    • "previous": null
    }
}

Create a journal entry

post/objects/general-ledger/journal-entry

Creates a new journal entry. When creating a journal entry, you can either post it immediately or save it as a draft for review. Draft entries can be updated before posting, but all required information must be provided. To post a journal entry, debits and credits must balance, and all required details must be entered.

Note: The only valid values when creating a new entry are posted (default, system-defined state), and draft. Only populate the state field when creating a draft entry.

SecurityOAuth2
Request
Request Body schema: application/json
required

Create a new journal entry

required
object

Specifies the journal associated with this journal entry.

key
string

System-assigned unique key for the journal associated with this journal entry.

Example: "3"
id
string

Unique identifier for the journal associated with this journal entry.

Example: "EJ"
postingDate
required
string <date>

The date when the journal entry is recorded in the journal and posted to the general ledger for tracking and reporting.

Example: "2023-04-01"
description
required
string

Description of the journal entry.

Example: "Revenue entries"
required
Array of objects >= 2 items

A collection of line items within the journal entry. At least two line items are required per journal entry, one debit and one credit.

Array (>= 2 items)
txnAmount
required
string <decimal-precision-2>

Amount of the line item as an absolute value within the journal entry.

Example: "100.45"
txnType
required
string
Default: "debit"

Specifies whether the line item in the journal entry is a debit or credit.

Enum: "credit" "debit"
Example: "credit"
required
object
documentId
string

Reference for the journal entry line item, this is a user-entered value that can contain numeric or alpha-numeric values.

Example: "CalOil_Credit_01-24"
description
string

Description of the journal entry line.

Example: "CalOil Credit entries January 2024"
numberOfUnits
integer

Quantity of units associated with the journal entry line item, representing a non-monetary measurement, such as hours or other measurable units.

Example: 5
accountingPeriod
integer

Financial reporting period in which the line item is recorded. if company uses custom accounting periods.

Example: 11
isBillable
boolean
Default: false

Indicates whether the line item is billable. Requires a Projects subscription and the billable option to be enabled for General Ledger transactions.

Example: false
state
string
Default: "posted"

State to update the entry to. Posted to post to the GL

Enum: "approved" "declined" "draft" "paid" "partiallyApproved" "partiallyPaid" "posted" "reversal" "reversalPending" "reversed" "submitted"
Example: "draft"
object
object

Transaction allocation template, a predefined template used to allocate line items across accounts, departments, or entities.

object
object

Journal entry to which the line item belongs.

Array of objects

Tax-related details for the line item.

automaticReversalDate
string or null <date>

The date a journal entry is automatically reversed in the general ledger. automaticReversalDate must be later than the postingDate.

Example: "2023-04-04"
moduleName
string

The Sage Intacct module from which the journal entry originates.

Example: "2.GL"
referenceNumber
string

Unique identifier assigned to the journal entry by the user for tracking and reconciliation.

Example: "Recurr_GL_101"
object

Supporting documents or files linked to the journal entry.

key
string

System-assigned unique key for the attachment linked to the journal entry.

Example: "6"
id
string

Unique identifier for the attachment linked to the journal entry.

Example: "Doc6331"
object

Specifies the base location for a multi-entity company. Required if multi-entity is enabled and entries do not balance by entity.

key
string

System-assigned unique key for the base location.

Example: "32"
id
string

Unique identifier for the base location.

Example: "BC"
state
string
Default: "posted"

Shows the current state of the journal entry.

Note: The only valid values when creating a new entry are posted (default, system-defined state), and draft. Only populate the state field when creating a draft entry.

Enum: "approved" "declined" "draft" "partiallyApproved" "posted" "reversalPending" "reversed" "submitted"
Example: "draft"
object

Tax-related details applied to the journal entry, such as tax codes, rates and exemptions. This field applies only to companies using the Taxes application to track VAT or GST.

taxImplication
string or null
Default: null

Specifies the impact of a journal entry on tax calculations. This field applies only to companies using the Taxes application to track VAT or GST.

Enum: "inbound" "none" null "outbound"
Example: "inbound"
object

Specifies the vendor for tax-related information when taxImplication is set to inbound.

key
string

System-assigned unique key for the vendor.

Example: "15"
id
string

Unique identifier for the vendor.

Example: "V-00014"
object

Specifies the customer for tax-related information when taxImplication is set to outbound.

key
string

System-assigned unique key for the customer.

Example: "14"
id
string

Unique identifier for the customer.

Example: "C-00019"
object

Specifies the associated contact details for the journal entry such as a vendor, customer, or other relevant entity.

key
string

System-assigned unique key for the contact.

Example: "416"
id
string

Unique idetifier for the contact.

Example: "Klay Vanderbilt"
Responses
201

Created

400

Bad Request

Request samples
application/json
{
  • "glJournal": {
    • "id": "GJ"
    },
  • "postingDate": "2024-11-01",
  • "description": "October revenue posting",
  • "lines": [
    • {
      • "txnType": "credit",
      • "txnAmount": "200",
      • "glAccount": {
        },
      • "dimensions": {
        },
      • "documentId": "October_revenue_credit_transactions"
      },
    • {
      • "txnType": "debit",
      • "txnAmount": "200",
      • "glAccount": {
        },
      • "dimensions": {
        },
      • "documentId": "October_revenue_debit_transactions"
      }
    ]
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "30565",
    • "id": "30565",
    • "href": "/objects/general-ledger/journal-entry/30565"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Get journal entry

get/objects/general-ledger/journal-entry/{key}

Returns detailed information for a specified journal entry.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the journal entry.

Example: 132
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "id": "30565",
    • "key": "30565",
    • "txnNumber": 493,
    • "description": "October revenue posting",
    • "glJournal": {
      • "id": "GJ",
      • "key": "4",
      • "isAdjustment": false,
      • "href": "/objects/general-ledger/journal/4"
      },
    • "postingDate": "2024-11-01",
    • "moduleName": "2.GL",
    • "referenceNumber": "Rev_Oct",
    • "reversedBy": {
      • "id": "663",
      • "key": "663",
      • "href": "/objects/general-ledger/journal-entry/663"
      },
    • "reversedFromDate": null,
    • "accountAllocationRun": {
      • "id": "87",
      • "key": "87",
      • "href": "/objects/general-ledger/account-allocation-run/87"
      },
    • "baseLocation": {
      • "key": "32",
      • "id": "BC",
      • "href": "/objects/company-config/location/32"
      },
    • "audit": {
      • "createdDateTime": "2022-06-28T23:41:44Z",
      • "modifiedDateTime": "2022-06-29T15:52:18Z",
      • "createdByUser": {
        },
      • "modifiedByUser": {
        }
      },
    • "state": "posted",
    • "sequenceNumber": "1",
    • "tax": {
      • "taxImplication": "none",
      • "taxSolution": {
        }
      },
    • "attachment": {
      • "key": "6",
      • "id": "Doc-6331",
      • "href": "/objects/company-config/attachment/6"
      },
    • "entity": {
      • "key": null,
      • "id": null,
      • "name": null
      },
    • "lines": [
      • {
        },
      • {
        }
      ],
    • "href": "/objects/general-ledger/journal-entry/30565"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Update a journal entry

patch/objects/general-ledger/journal-entry/{key}

Updates an existing journal entry by setting field values. Any fields not provided remain unchanged.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the journal entry.

Example: 132
Request Body schema: application/json
object

Specifies the journal associated with this journal entry.

key
string

System-assigned unique key for the journal associated with this journal entry.

Example: "3"
id
string

Unique identifier for the journal associated with this journal entry.

Example: "EJ"
description
string

Description of the journal entry.

Example: "Revenue entries"
postingDate
string <date>

The date when the journal entry is recorded in the journal and posted to the general ledger for tracking and reporting.

Example: "2023-04-01"
automaticReversalDate
string or null <date>

The date a journal entry is automatically reversed in the general ledger. automaticReversalDate must be later than the postingDate.

Example: "2023-04-04"
moduleName
string

The Sage Intacct module from which the journal entry originates.

Example: "2.GL"
referenceNumber
string

Unique identifier assigned to the journal entry by the user for tracking and reconciliation.

Example: "Recurr_GL_101"
object

Supporting documents or files linked to the journal entry.

key
string

System-assigned unique key for the attachment linked to the journal entry.

Example: "6"
id
string

Unique identifier for the attachment linked to the journal entry.

Example: "Doc6331"
object

Specifies the base location for a multi-entity company. Required if multi-entity is enabled and entries do not balance by entity.

key
string

System-assigned unique key for the base location.

Example: "32"
id
string

Unique identifier for the base location.

Example: "BC"
object

Tax-related details applied to the journal entry, such as tax codes, rates and exemptions. This field applies only to companies using the Taxes application to track VAT or GST.

taxImplication
string or null
Default: null

Specifies the impact of a journal entry on tax calculations. This field applies only to companies using the Taxes application to track VAT or GST.

Enum: "inbound" "none" null "outbound"
Example: "inbound"
object

Specifies the vendor for tax-related information when taxImplication is set to inbound.

key
string

System-assigned unique key for the vendor.

Example: "15"
id
string

Unique identifier for the vendor.

Example: "V-00014"
object

Specifies the customer for tax-related information when taxImplication is set to outbound.

key
string

System-assigned unique key for the customer.

Example: "14"
id
string

Unique identifier for the customer.

Example: "C-00019"
object

Specifies the associated contact details for the journal entry such as a vendor, customer, or other relevant entity.

key
string

System-assigned unique key for the contact.

Example: "416"
id
string

Unique idetifier for the contact.

Example: "Klay Vanderbilt"
Array of objects >= 2 items

A collection of line items within the journal entry. At least two line items are required per journal entry, one debit and one credit.

Array (>= 2 items)
txnType
string
Default: "debit"

Specifies whether the line item in the journal entry is a debit or credit.

Enum: "credit" "debit"
Example: "credit"
txnAmount
string <decimal-precision-2>

Amount of the line item as an absolute value within the journal entry.

Example: "100.45"
documentId
string

Reference for the journal entry line item, this is a user-entered value that can contain numeric or alpha-numeric values.

Example: "CalOil_Credit_01-24"
description
string

Description of the journal entry line.

Example: "CalOil Credit entries January 2024"
numberOfUnits
integer

Quantity of units associated with the journal entry line item, representing a non-monetary measurement, such as hours or other measurable units.

Example: 5
accountingPeriod
integer

Financial reporting period in which the line item is recorded. if company uses custom accounting periods.

Example: 11
isBillable
boolean
Default: false

Indicates whether the line item is billable. Requires a Projects subscription and the billable option to be enabled for General Ledger transactions.

Example: false
state
string
Default: "posted"

State to update the entry to. Posted to post to the GL

Enum: "approved" "declined" "draft" "paid" "partiallyApproved" "partiallyPaid" "posted" "reversal" "reversalPending" "reversed" "submitted"
Example: "draft"
object
object
object

Transaction allocation template, a predefined template used to allocate line items across accounts, departments, or entities.

object
object

Journal entry to which the line item belongs.

Array of objects

Tax-related details for the line item.

Responses
200

OK

400

Bad Request

Request samples
application/json
{
  • "key": "30565",
  • "postingDate": "2024-12-11",
  • "lines": [
    • {
      • "key": "465744",
      • "txnType": "debit",
      • "txnAmount": "100",
      • "glAccount": {
        },
      • "dimensions": {
        },
      • "documentId": "Debit-USD-195",
      • "currency": {
        }
      },
    • {
      • "key": "465745",
      • "txnType": "credit",
      • "txnAmount": "100",
      • "glAccount": {
        },
      • "dimensions": {
        },
      • "documentId": "Credit-USD-196",
      • "currency": {
        }
      }
    ]
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "30565",
    • "id": "30565",
    • "href": "/objects/general-ledger/journal-entry/30565"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Delete a journal entry

delete/objects/general-ledger/journal-entry/{key}

Deletes a journal entry.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the journal entry.

Example: 132
Responses
204

No Content

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "ia::error": {
      • "code": "invalidRequest",
      • "message": "A POST request requires a payload",
      • "errorId": "REST-1028",
      • "additionalInfo": {
        },
      • "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
      }
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 0,
    • "totalError": 1
    }
}