Skip to content

Cancels an invoice

Request

PUT {{baseURL}}/pay-int-api/invoices/{{invoiceId}}/cancel

This endpoint cancels an invoice.

Only invoices in published(Due, Past Due) status and not paid can be canceled.

Care must be taken to complete all the fields with the existing information.
Security
Bearer
Path
invoiceIdstring, (uuid)required

The identifier of the invoice to cancel.

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

Responses

Invoice cancelled successfully.

Response
No content