Skip to content

Deletes an invoice

Request

DELETE {{baseURL}}/pay-int-api/invoices/{{invoiceId}}

This endpoint deletes an invoice.

Deleting an invoice permanently removes it from the merchant's records.

Only a Draft invoice can be deleted. Once an invoice is published, it can no longer be deleted.

A successful call returns a 200 response confirming the invoice was deleted.

See Also:
To list invoices, see GET /pay-int-api/invoices.
To create an invoice, see POST /pay-int-api/invoices.
To retrieve an invoice by ID, see GET /pay-int-api/invoices/{invoiceId}.
To update an invoice, see PUT /pay-int-api/invoices/{invoiceId}.

Security
Bearer
Path
invoiceIdstring, (uuid)required

Specifies the identifier of the invoice to delete.

Example:9be2f3a4-5b6c-4d7e-8f9a-0b1c2d3e4f70
Headers
x-api-versionstring

Specifies the API version to use for the request.

Example: 1.0

Example:1.0
curl -i -X DELETE \
  https://developer.flute.com/_mock/api-reference/pay-int-api/invoices/9be2f3a4-5b6c-4d7e-8f9a-0b1c2d3e4f70 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-version: 1.0'

Responses

Invoice deleted successfully.

Response
No content