SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Invoices

POST

Import Your Own Invoice PDF

Reads the number, dates, customer, lines and tax off your PDF and keeps them as printed. The preview shows what was read.

Parameters

params.pdf_base64String

The PDF (or s3_key of an upload)

params.bookBoolean

Book it to A/R as sent (default true)

params.sendBoolean

Also email your PDF to the customer (default false)

params.adopt_event_idString

An A/R entry you already booked by hand for this invoice. The invoice ties to it instead of booking A/R again. Nothing new is posted and no email goes out

params.date_tolerance_daysInt

With adopt_event_id: days the entry's date may differ from the invoice's (default 0)

Request
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "import_invoice_pdf", apply: true,
        params: { pdf_base64: "JVBERi0xLjQK..." }) { success result }
}
Response
{
  "data": { "runOp": { "success": true, "result": { "summary": "LG-2026-117 For North Shore Rentals: CAD 339.00 (Tax 39.00), Issued 2026-10-03, Due 2026-10-31. Booked To A/R." } } }
}