curl 'https://api.fitsociety.io/public/v1/zapier/accounting/events?event=invoice.created' -H 'Authorization: Bearer <zapier_accounting_access_token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/zapier/accounting/events', 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/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Load recent invoice and credit-note events for Zapier
Requires finance_invoice_webhooks:read. 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. Returns at most three real company invoice.created events, newest first, without pagination. An empty history returns an empty array. Both invoices and credit notes use invoice.created; filter data.invoiceType by Invoice or CreditNote for separate triggers. Events contain document references; finance_invoices:read and finance_invoice_pdfs:read separately authorize document details and PDFs.
curl 'https://api.fitsociety.io/public/v1/zapier/accounting/events?event=invoice.created' -H 'Authorization: Bearer <zapier_accounting_access_token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fitsociety.io/public/v1/zapier/accounting/events', 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/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(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.
Query Parameters
invoice.created Response
Success
The response is of type any.