Skip to Content
HelvetlyDocs
API referenceInvoices

Delete a payment

Needs a token with the write:invoices scope. Authentication

Try in Playground sends a real request to app.helvetly.com with a token you paste. It stays in this browser tab only (session storage) and goes to no one else.

DELETE
/api/v1/invoices/{id}/payments/{payment_id}

Removes a recorded payment; the invoice reopens. Owners and admins only (403 forbidden). A financial record: the deletion is written to the audit log. 409 invalid_state when a refund was paid out of this payment (delete the refund first) or the invoice's prepayment is already deducted on a final invoice. 409 period_closed when the month of the date is closed in the books. Answers 204; a repeat call answers 404.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A personal API token, hvt_…, with scopes such as read:* or write:invoices

Path Parameters

id*string

The invoice's id.

payment_id*string

The payment's id.

Response Body

Done; no content.

Example Request
curl -X DELETE 'https://app.helvetly.com/api/v1/invoices/string/payments/string'
Example Response
Empty