Triggers
Track an event occuring within a business
POST
/
businesses
/
{id}
/
track
Use this endpoint to send events to Pocketflows and trigger the start of any active triggers. Events must be sent with data
which must contain a key "customer"
with a customer ID.
Authorizations
Authorization
string
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
event
string
requiredThe name of the event
data
object
The data associated with the event
Response
200 - application/json
The response is of type object
.