curl -X DELETE 'https://api.fitsociety.io/public/v1/zapier/accounting/webhooks/66f7b8b1e13c8d25f4d3d90a' -H 'Authorization: Bearer <zapier_accounting_access_token>' -H 'Idempotency-Key: accounting-disable-001'const options = {
method: 'DELETE',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.fitsociety.io/public/v1/zapier/accounting/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/zapier/accounting/webhooks/{id}"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)Unsubscribe a Zapier accounting trigger
Requires finance_invoice_webhooks:write and an Idempotency-Key header. Requires an active Zapier OAuth grant, attributed company administrator consent and Zapier access for the company. The token and current grant must both contain the required scope. These accounting scopes do not require health-data or private-communication consent. Existing connections need a new explicit authorization to gain the accounting scopes. Public API rate limits and the Retry-After response header apply. No body is required. Deletion is idempotent and is limited to the same company, OAuth grant and Zapier subscription containing only invoice.created. Other subscriptions are unaffected, including mixed-event subscriptions. Returns deleted:true even when no matching subscription exists. Delivery stops for deleted subscriptions, revoked grants, removed scope or provider access, and withdrawn company consent. HTTP 410 from Zapier disables the subscription.
curl -X DELETE 'https://api.fitsociety.io/public/v1/zapier/accounting/webhooks/66f7b8b1e13c8d25f4d3d90a' -H 'Authorization: Bearer <zapier_accounting_access_token>' -H 'Idempotency-Key: accounting-disable-001'const options = {
method: 'DELETE',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.fitsociety.io/public/v1/zapier/accounting/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/zapier/accounting/webhooks/{id}"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)Authorizations
Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_.... Each resource request rechecks the token company's current provider access. Disabling access blocks existing tokens with 403 auth.provider_unavailable.
Headers
200Path Parameters
^[a-f0-9]{24}$