Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Invoices

  • List invoices

  • Create invoice

  • Search invoices

  • Delete invoice

  • Get invoice

  • Update invoice

  • Create invoice attachment

  • Delete invoice attachment

  • Cancel invoice

  • Publish invoice

  • Webhooks

  • invoice.canceled

  • invoice.created

  • invoice.deleted

  • invoice.payment_made

  • invoice.published

  • invoice.refunded

  • invoice.scheduled_charge_failed

  • invoice.updated

<- Invoices API

Invoices API

All versions ->

Delete invoice attachment

DELETE

 /v2/invoices/{invoice_id}/attachments/{attachment_id}

Removes an attachment from an invoice and permanently deletes the file.

Attachments can be removed only from invoices in the DRAFT, SCHEDULED, UNPAID, or PARTIALLY_PAID state.

Permissions:INVOICES_WRITE, ORDERS_WRITE

Guide

Delete invoice attachments

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

invoice_id

string

Required

The ID of the invoice to delete the attachment from.

Link to section

attachment_id

string

Required

The ID of the attachment to delete.

Link to section

Response fields

Link to section

errors

Information about errors encountered during the request.

Link to section

Examples

All versions ->

DELETE /v2/invoices/{invoice_id}/attachments/{attachment_id}
curl https://connect.squareup.com/v2/invoices/invoice_id0/attachments/attachment_id1 \ -X DELETE \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'

Response JSON

{}