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

    Checkout

  • Retrieve location settings

  • Update location settings

  • Retrieve merchant settings

  • Update merchant settings

  • List payment links

  • Create payment link

  • Delete payment link

  • Retrieve payment link

  • Update payment link

  • Webhooks

  • online_checkout.location_settings.updated

  • online_checkout.merchant_settings.updated

<- Checkout API

Checkout API

All versions ->

Delete payment link

DELETE

 /v2/online-checkout/payment-links/{id}

Deletes a payment link.

Permissions:ORDERS_READ, ORDERS_WRITE

Guide

Manage Checkout

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

id

string

Required

The ID of the payment link to delete.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

id

string

The ID of the link that is deleted.

Link to section

cancelled_order_id

string

The ID of the order that is canceled. When a payment link is deleted, Square updates the the state (of the order that the checkout link created) to CANCELED.

Link to section

Examples

All versions ->

DELETE /v2/online-checkout/payment-links/{id}
curl https://connect.squareup.com/v2/online-checkout/payment-links/MQASNYL6QB6DFCJ3 \ -X DELETE \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'

Response JSON

{ "id": "MQASNYL6QB6DFCJ3", "cancelled_order_id": "asx8LgZ6MRzD0fObfkJ6obBmSh4F" }