Bookings per meeting type for a period
Permission
analytics:readRate limit heavyBookings per meeting type for a period: upcoming, completed (confirmed and already started), no-show, cancelled and pending-payment counts, show rate (%, null when nothing to rate) and revenue from paid orders (refunds excluded). A type has one row per currency it was paid in. from/to are YYYY-MM-DD on the meeting start (to includes the whole day); default is all time. Money is a decimal string; totals.revenue adds currencies together, so use totals.revenue_by_currency. Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Query parameters
fromstringdatetostringdateYYYY-MM-DD, inclusive; must not be before from.
meeting_type_idintegerOnly this meeting type. A value that is not a whole number is ignored.
RequestcURL
curl --request GET \ --url 'https://api.estage.com/v1/analytics/bookings' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
OK
{
"data": {
"types": [
{
"meeting_type_id": 214,
"name": "Intro call",
"slug": "intro-call",
"booked": 18,
"upcoming": 5,
"completed": 11,
"no_show": 2,
"cancelled": 3,
"pending_payment": 0,
"show_rate": 84.6,
"revenue": "0.00",
"currency": "USD"
},
{
"meeting_type_id": 215,
"name": "Strategy session",
"slug": "strategy-session",
"booked": 6,
"upcoming": 2,
"completed": 4,
"no_show": 0,
"cancelled": 1,
"pending_payment": 1,
"show_rate": 100,
"revenue": "900.00",
"currency": "USD"
}
],
"totals": {
"booked": 24,
"upcoming": 7,
"completed": 15,
"no_show": 2,
"cancelled": 4,
"pending_payment": 1,
"show_rate": 88.2,
"revenue": "900.00",
"revenue_by_currency": [
{
"currency": "USD",
"revenue": "900.00"
}
]
}
}
}Example. Errors are
{ error: { code, message, details } }.