Delete payment link
DELETE
/v2/online-checkout/payment-links/{id}
Deletes a payment link.
Name | Description |
---|---|
id
Required
|
The ID of the payment link to delete. |
Response Fields
Name | Description |
---|---|
errors
|
|
id
|
The ID of the link that is deleted. |
cancelled_
|
The ID of the order that is canceled. When a payment link is deleted, Square updates the
the |
Examples
DELETE
/v2/online-checkout/payment-links/{id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/online-checkout/payment-links/MQASNYL6QB6DFCJ3 \
-X DELETE \
-H 'Square-Version: 2022-06-16' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{
"id": "MQASNYL6QB6DFCJ3",
"cancelled_order_id": "asx8LgZ6MRzD0fObfkJ6obBmSh4F"
}