# Import Your Own Invoice PDF

> Solarium docs, Invoices. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

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

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.pdf_base64` | `String` | No | The PDF (or s3_key of an upload) |
| `params.book` | `Boolean` | No | Book it to A/R as sent (default true) |
| `params.send` | `Boolean` | No | Also email your PDF to the customer (default false) |
| `params.adopt_event_id` | `String` | No | 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_days` | `Int` | No | With adopt_event_id: days the entry's date may differ from the invoice's (default 0) |

### Request

```graphql
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "import_invoice_pdf", apply: true,
        params: { pdf_base64: "JVBERi0xLjQK..." }) { success result }
}
```

### Response

```json
{
  "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." } } }
}
```
