Skip to main content
POST
/
track
/
sale
cURL
curl --request POST \
  --url https://api.cme.sh/track/sale \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "clickId": "<string>",
  "eventName": "purchase_completed",
  "customerExternalId": "user_42",
  "amount": 99.99,
  "currency": "USD",
  "invoiceId": "invoice_12345",
  "customerName": "<string>",
  "customerEmail": "jsmith@example.com"
}
'
{
  "success": true,
  "timestamp": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Track a sale event

clickId
string
required

The unique ID of the click that the sale conversion event is attributed to

eventName
string
required

The name of the sale event

Example:

"purchase_completed"

customerExternalId
string
required

The unique ID of the customer in your system

Example:

"user_42"

amount
number
required

The sale amount

Example:

99.99

currency
string
required

The currency code (USD, EUR, etc.)

Example:

"USD"

invoiceId
string
required

Your invoice or transaction ID

Example:

"invoice_12345"

customerName
string | null

The name of the customer

customerEmail
string<email> | null

The email address of the customer

Response

Sale event tracked successfully

success
boolean
timestamp
string