Skip to navigation

Bill an invoice to a parent account or a financier

Updated: POST /invoices and PATCH /invoices/{invoice_id}

An invoice can now bill someone other than the record’s own account. Before this, API invoices always billed the record’s account.

  • accountId bills the record’s account or that account’s parent, for example a lot billed to its Builder.
  • billTo: "FINANCIER" with vendorId bills a vendor, for example a solar invoice billed to the financing company.
{
"recordId": 789225,
"billTo": "FINANCIER",
"vendorId": 3302,
"calculationMethod": "LINE_ITEMS",
"lineItems": [{ "catalogItemId": 10379, "quantity": 1, "unitCost": 10, "unitPrice": 20 }]
}
  • accountId must be the record’s account or its parent. Any other account returns 400.
  • accountId can only change while the invoice is a DRAFT.
  • billTo is CLIENT or FINANCIER. FINANCIER requires vendorId, and the vendor must belong to your company.
  • vendorId is only accepted with billTo: "FINANCIER"; otherwise the request returns 400.
  • To switch an invoice back to its account, send billTo: "CLIENT". This clears the vendor, so you don’t send vendorId as null.
  • Financiers are stored as vendors. Use the vendor’s id as vendorId, and find financiers with GET /vendors?vendor_type=FINANCING.
  • A FINANCIER invoice is not shared with the portal by default.
  • On create, omit all three fields to bill the record’s account, as before. On update, omitted fields keep the invoice’s current billing settings.
  • Invoices now return billTo and vendor ({ id, name, vendorType }, or null for CLIENT invoices).
  • Bills, quotes and change orders are not included.