Skip to main content
POST
/
events
/
revenue
Push revenue event
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": "customer@example.com",
  "amount": 99.99,
  "source": "website",
  "time": 1669990400
}'
{
  "status": "success",
  "message": "Event tracked successfully"
}
🎯 Key Features:
  • Track purchase events
  • Revenue attribution
  • Custom properties
  • Analytics integration

Authorizations

X-Team-ApiKey
string
header
required

Team API key for authentication. Find your API key in SendX Settings → Team API Key.

Example:

X-Team-ApiKey: your_team_api_key_here

Body

application/json
amount
number
required

Revenue amount

Example:

99.99

identifier
string<email>

Contact email address

Example:

"customer@example.com"

source
string

Source of the revenue event

Example:

"website"

time
integer

Unix timestamp (in seconds since January 1, 1970) representing when the event occurred.

Example:

1669990400

Response

✅ Revenue event tracked successfully

status
string
Example:

"success"

message
string
Example:

"Event tracked successfully"

I