SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Transactions

POST

Enter A Supplier Bill

An unpaid supplier invoice, owed through Accounts Payable (DR each category, DR the input tax credit, CR Accounts Payable). With QuickBooks connected it becomes a Bill with the invoice number and due date, paid later through Pay Bills. Refuses if Solarium or QuickBooks already has a bill for that vendor and invoice number. An expense already booked to Accounts Payable also goes to QuickBooks as a Bill when it's pushed.

Parameters

organizationIdUUID!required

Organization ID

nameString!required

"create_bill"

params.vendorString!required

Who the invoice is from

params.dateDate!required

The invoice date

params.due_dateDate

When it's due

params.doc_numberString

The vendor's invoice number

params.lines[Object!]!required

Each: category_id, amount (before tax), tax_amount, description

params.tax_codeString

hst, gst, pst or qst, when a line is taxed

params.ap_account_idString

Defaults to the business's Accounts Payable

params.receipt_idString

The invoice's receipt, attached to the bill

applyBoolean

true to book it

Request
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "create_bill", apply: true, params: {
    vendor: "Drapes Digital", date: "2026-10-08", due_date: "2026-11-07", doc_number: "DRAPESINC-0021",
    lines: [{ category_id: "c3d4...", amount: "1500.00", tax_amount: "195.00" }], tax_code: "hst"
  }) { success applied result }
}
Response
{
  "data": {
    "runOp": {
      "success": true,
      "applied": true,
      "result": {
        "summary": "Bill From Drapes Digital Invoice DRAPESINC-0021: 1695.00, Tax 195.00 (Due 2026-11-07)",
        "data": { "doc_number": "DRAPESINC-0021", "due_date": "2026-11-07", "tax": "195.00" }
      }
    }
  }
}