Sign in

Create invoice attachment

documented

Uploads a file and attaches it to an invoice.

POST /v2/invoices/{invoice_id}/attachmentsInvoicesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://connect.squareup.com/v2/invoices/{{$invoice_id}}/attachments" \
  -X POST \
  -F 'request={"idempotency_key":"{{$idempotency_key}}","description":"{{$description}}"};type=application/json' \
  -F 'file=@{{$attachment_file_path}};type={{$attachment_mime_type}}' \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Square-Version: 2025-10-16"
Create invoice attachment · Square · OpenIntegrations