JournalEntryAdd qbXML example

Adds a general journal entry. Its debit lines must total its credit lines.

qbXML JournalEntryAddRq, version 16.0
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="16.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <JournalEntryAddRq>
      <JournalEntryAdd>
        <TxnDate>2026-01-15</TxnDate>
        <RefNumber>1001</RefNumber>
        <Memo>Monthly service</Memo>
        <JournalDebitLine>
          <AccountRef>
            <FullName>Office Supplies</FullName>
          </AccountRef>
          <Amount>250.00</Amount>
          <Memo>Monthly service</Memo>
        </JournalDebitLine>
        <JournalCreditLine>
          <AccountRef>
            <FullName>Checking</FullName>
          </AccountRef>
          <Amount>250.00</Amount>
          <Memo>Monthly service</Memo>
        </JournalCreditLine>
      </JournalEntryAdd>
    </JournalEntryAddRq>
  </QBXMLMsgsRq>
</QBXML>
Open in the validator Check it against the qbXML 16.0 schema, edit it, and run it in your own QuickBooks.

Things to know

  • Write amounts with two decimals (40.00, not 40). QuickBooks refuses a whole-number amount with status 3040, though the schema allows it.
  • An entry that doesn't balance is refused with 3180 on an add (3170 on a mod), ending "Transaction not in balance."

The same request with QuBe Sync's API

QuBe Sync takes this JSON, writes the qbXML for you and delivers QuickBooks' answer to your webhook as JSON.

POST /api/v2/connections/{connection_id}/journal-entries
{
  "journal_credit_line": [
    {
      "account_ref": {
        "full_name": "Checking"
      },
      "amount": 250.0,
      "memo": "Monthly service"
    }
  ],
  "journal_debit_line": [
    {
      "account_ref": {
        "full_name": "Office Supplies"
      },
      "amount": 250.0,
      "memo": "Monthly service"
    }
  ],
  "memo": "Monthly service",
  "ref_number": "1001",
  "txn_date": "2026-01-15"
}

Every field JournalEntryAdd takes is in Intuit's reference.

More requests

Accounting

All qbXML examples