POST
/
track
Track when a user books a class
curl --request POST \
  --url https://api.pocketflows.com/track \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "<string>",
  "user_id": "<string>",
  "location_id": "<string>",
  "location_member_id": "<string>",
  "price": 123
}'
{
  "id": "<string>",
  "event_name": "<string>",
  "member": "<string>"
}

Parameters

event
string
default:"user.book"
required
Must be user.book
user_id
string
The ID of the user. Must be provided in conjunction with location_id. Alternatively, location_member_id can be provided to substitute for both
location_id
string
The ID of the location. Must be provided in conjunction with user_id. Alternatively, location_member_id can be provided to substitute for both
location_member_id
string
The ID of the location membership. Refers to an association between a location and user. Can be used instead of user_id and location_id together
price
float
required
The price of the booked class

Returns

id
string
The ID of the event
event_name
string
The name of the event that was captured
member
string