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.
accountIdbills the record’s account or that account’s parent, for example a lot billed to its Builder.billTo: "FINANCIER"withvendorIdbills a vendor, for example a solar invoice billed to the financing company.
accountIdmust be the record’s account or its parent. Any other account returns400.accountIdcan only change while the invoice is aDRAFT.billToisCLIENTorFINANCIER.FINANCIERrequiresvendorId, and the vendor must belong to your company.vendorIdis only accepted withbillTo: "FINANCIER"; otherwise the request returns400.- To switch an invoice back to its account, send
billTo: "CLIENT". This clears the vendor, so you don’t sendvendorIdas null. - Financiers are stored as vendors. Use the vendor’s id as
vendorId, and find financiers withGET /vendors?vendor_type=FINANCING. - A
FINANCIERinvoice 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
billToandvendor({ id, name, vendorType }, ornullforCLIENTinvoices). - Bills, quotes and change orders are not included.
