Delete Coupon
The “Delete Coupon” API allows you to permanently remove a coupon from your system using its unique identifier. Use this endpoint to discontinue promotional offers or clean up unused coupons. Note that this action cannot be undone.
DELETE
/
payments
/
coupon
Delete Coupon
curl --request DELETE \
--url https://services.leadconnectorhq.com/payments/coupon \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "BQdAwxa0ky1iK2sstLGJ",
"altType": "location",
"id": "6241712be68f7a98102ba272"
}
'const options = {
method: 'DELETE',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: 'BQdAwxa0ky1iK2sstLGJ',
altType: 'location',
id: '6241712be68f7a98102ba272'
})
};
fetch('https://services.leadconnectorhq.com/payments/coupon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/payments/coupon"
payload = {
"altId": "BQdAwxa0ky1iK2sstLGJ",
"altType": "location",
"id": "6241712be68f7a98102ba272"
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"success": true,
"traceId": "c667b18d-8f5e-44cf-a914"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Body
application/json
Last modified on March 8, 2026
Was this page helpful?
Delete Coupon
curl --request DELETE \
--url https://services.leadconnectorhq.com/payments/coupon \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "BQdAwxa0ky1iK2sstLGJ",
"altType": "location",
"id": "6241712be68f7a98102ba272"
}
'const options = {
method: 'DELETE',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: 'BQdAwxa0ky1iK2sstLGJ',
altType: 'location',
id: '6241712be68f7a98102ba272'
})
};
fetch('https://services.leadconnectorhq.com/payments/coupon', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/payments/coupon"
payload = {
"altId": "BQdAwxa0ky1iK2sstLGJ",
"altType": "location",
"id": "6241712be68f7a98102ba272"
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"success": true,
"traceId": "c667b18d-8f5e-44cf-a914"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}