API reference / Customers
Send what the users of the product did
What the users of the product of the business did, from its backend: 1 to 100 events in one call. Each event names the user by the id that the product has for the user, by the email, or by both, and says what the user did. A user that Troopy does not know becomes a customer who never paid. Troopy counts each event on the day of its time, and takes an event of the last 7 days only. Send each event one time: use an Idempotency-Key for a retry.
/api/v1/customer-eventsOther ways to call it
troopy customers eventsIdempotency-Key header. A retry with the same key gets the first answer back, and the operation runs one time.Body
application/jsonevents*array<object>At most 100 items
3 properties
user*object3 properties
idstringThe id that the product has for the user
At least 1 characters · At most 200 characters
emailstringAt most 254 characters · email
namestringAt most 200 characters
name*stringWhat the user did, like project_created
At least 1 characters · At most 80 characters
atstringWhen. Without it, now
Response
200 · application/jsondata*object2 properties
taken*integerskipped*integerEvents that are too old, or of a person that the business forgot