Report referral-related events such as signups, purchases, and refunds.
cURL
signup
curl --request POST \ --url https://api.cello.so/events \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "eventName": "ReferralUpdated", "payload": { "ucc": "cello-ucc", "newUserId": "new-user-product-id", "price": 0, "currency": "" }, "context": { "newUser": { "id": "new-user-id", "email": "new_user@gmail.com", "name": "New user name", "organizationId": "org-123" }, "event": { "trigger": "new-signup", "timestamp": "2022-10-05T14:14:34Z" } }}'
{ "success": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Event accepted
The response is of type object.
object
Was this page helpful?