API Documentation

Developer Reference

Availability

Not every endpoint exists on every install. Three things decide it: the plugin edition, which add-ons are active, and which endpoints an administrator has switched on.

EndpointFreePRONotes
/me, /openapiYesYes
/affiliates, /coupons, /reports/summaryYesYesPRO adds mla_parents to the affiliate detail view and the payouts block to the report.
/registrationsYesYes501 when the registrations table is absent.
/clicks/statsYesYes501 when the clicks table is absent.
/eventsYesYes501 when the activity table is absent; 400 when the activity log is switched off.
/keysYesYes
/webhooksYesNot registered at all in the free build. Poll /events instead.
/payoutsYesNot registered at all in the free build; 501 when the add-on is inactive.

MLA-related access (an upline reading a downline's coupon) and the add-on webhook events likewise exist only where those add-ons do. The safest way to discover what a given install offers is to read /openapi and /webhooks/events rather than assuming.