POST
/
events
/
revenue
Record a revenue event for a specific contact
curl --request POST \
  --url https://api.sendx.io/api/v1/rest/events/revenue \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '{
  "identifier": "john.doe@example.com",
  "amount": 123.23,
  "source": "app",
  "time": 1669990400
}'
{
  "event_id": "m3m2k3mnkjn23nkj3",
  "status": "success",
  "message": "Event created successfully."
}

Authorizations

X-Team-ApiKey
string
header
required

Body

application/json

Response

201
application/json

Revenue event recorded successfully.

The response is of type object.