---
title: "Remove a payment from an invoice"
method: DELETE
path: "/v1/invoices/{id}/payments/{paymentID}"
tags: ["Invoices"]
---

# Remove a payment from an invoice

`DELETE /v1/invoices/{id}/payments/{paymentID}`

## Request

- Base URL: `https://api.officina.it`
- URL: `https://api.officina.it/v1/invoices/{id}/payments/{paymentID}`
- Auth: HTTP bearer

Hard-deletes the payment (payments have no soft-delete) and
refreshes the invoice paid-state. The payment must belong to
the invoice — otherwise 404.

## Response `200`

The removed payment.

- Payment: One registered payment on a worksheet's invoice. payment_method is an SDI ModalitaPagamento code (MP01–MP23).
  - `object` 'payment', required
  - `id` string, required
  - `amount` number, double, required
  - `payment_method` string, required
  - `payment_date` string, date-time, required
  - `created_at` string, date-time, required

## Other responses

- `401`: Missing, malformed, expired, or wrong-audience bearer token.
- `402`: The company has no active subscription, or its plan does not include API access. API access is included in the Business and Illimitato plans.
- `403`: The authenticated user lacks the required permission.
- `404`: Resource does not exist OR belongs to a different company. The two cases are intentionally indistinguishable.
- `500`: Unhandled server error. Detail is logged, not exposed.

---

[API](https://skmtc.dev/officina/apis/officina-it-api.md) · [All operations](https://skmtc.dev/officina/apis/officina-it-api/llms.txt) · [OpenAPI document](https://skmtc.dev/officina/apis/officina-it-api/revisions/7da3fccfe551?raw)
