SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Invoices

POST

Remove A Payment

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.

Parameters

params.invoice_idString!required

The invoice

params.payment_idString!required

From get_invoice's payments

Request
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "remove_invoice_payment", apply: true,
    params: { invoice_id: "9f3c...", payment_id: "7d21..." }) { success result }
}
Response
{
  "data": { "runOp": { "success": true, "result": { "summary": "Payment Of CAD 500.00 From Oct 17 Removed From INV-00024. The Deposit Is Back In Review." } } }
}