# Find The Withdrawal That Paid A Bill

> Solarium docs, Transactions. 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

Bank and card withdrawals still in review that could have paid a bill: in the bill's currency, from its date to 60 days after, for what's still owed or the whole bill. Also withdrawals that pay it together with others of the vendor's open bills (up to 5, oldest first), each with the bill_ids it would pay. Exact balance first, then names like the vendor's. Pass one's event_id to record_bill_payment as source_event_id, with its bill_ids. Read only.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.bill_id` | `String!` | Yes | The bill's Solarium event id, or its QuickBooks Bill Id |

### Request

```graphql
query {
  previewOp(organizationId: "a1b2c3d4-...", name: "bill_payment_matches", params: { bill_id: "2379" }) { result }
}
```

### Response

```json
{
  "data": { "previewOp": { "result": { "summary": "1 Withdrawal(s) Could Have Paid Bill SD-0531 From Harbourview Payroll Remittance, 1 For Exactly What's Owed." } } }
}
```
