const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getpalm.com/v1/business/{business_id}/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "123e4567-e89b-12d3-a456-426614174000",
"object": "subscription",
"deleted": true
}Permanently cancel monitoring subscription for a business.
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getpalm.com/v1/business/{business_id}/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "123e4567-e89b-12d3-a456-426614174000",
"object": "subscription",
"deleted": true
}Enter your API key in the format: sk_test_xxxxx or sk_live_xxxxx
Business ID
Subscription cancelled successfully
ID of the cancelled subscription
"123e4567-e89b-12d3-a456-426614174000"
Object type identifier
subscription "subscription"
Indicates whether the subscription was successfully cancelled
true
Was this page helpful?