• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Delete invoice BETA

DELETE /v2/invoices/{invoice_id}

Deletes the specified invoice.

When an invoice is deleted, the associated Order status changes to CANCELED. You can only delete a draft invoice (you cannot delete an invoice scheduled for publication, or a published invoice).


Permissions
ORDERS_WRITE
INVOICES_WRITE
Guide
Delete an invoice
Try in API Explorer
Name Description
invoice_id
string

Required

The ID of the invoice to delete.

Name Description
version
integer

The version of the invoice to delete. If you do not know the version, you can call GetInvoice or ListInvoices.

Response Fields

Name Description
errors
Error [ ]

Information about errors encountered during the request.

Examples

You are viewing an old version of the API
DELETE /v2/invoices/{invoice_id}
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
curl https://connect.squareup.com/v2/invoices/invoice_id0 \
  -X DELETE \
  -H 'Square-Version: 2020-09-23' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?