v1

latestOpenAPI 3.0.0Apache 2.02026-07-143281,4552.1 MB
Checkout

DeletePaymentLink

Deletes a payment link.

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

Path parameters

idstring required

The ID of the payment link to delete.

Response

Success

idstring

The ID of the link that is deleted.

cancelled_order_idstring

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.

Example response

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