Delete an invoice payment
DELETE/api/v1/invoices/:invoice_id/payments/:id
Deletes a payment. Requires the read scope plus either write or destroy.
Request
Responses
- 204
- 401
- 403
- 404
- 422
The payment was deleted
The request did not include a valid OAuth 2.0 access token
The OAuth 2.0 client's access token is missing the read scope, or has neither the write nor the destroy scope
No payment exists with the given ID on this invoice
The payment could not be deleted; details reports the reason (for example, it belongs to a transmitted e-reporting period). A payment created by confirming a bank reconciliation answers dependent_records, with details.bank_operation_id naming the operation to unconfirm