# Remove A Payment

> 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

Undo a payment: what it paid is owed again. A payment from a bank deposit puts the deposit back in review with its own payee and memo. One recorded by hand has its entry voided. An invoice's entries can't be edited, rejected or merged anywhere else, so this is how a payment changes.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `params.invoice_id` | `String!` | Yes | The invoice |
| `params.payment_id` | `String!` | Yes | From get_invoice's payments |

### Request

```graphql
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "remove_invoice_payment", apply: true,
    params: { invoice_id: "9f3c...", payment_id: "7d21..." }) { success result }
}
```

### Response

```json
{
  "data": { "runOp": { "success": true, "result": { "summary": "Payment Of CAD 500.00 From Oct 17 Removed From INV-00024. The Deposit Is Back In Review." } } }
}
```
