Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header. You can find your API Key on Your FirstPromoter Dashboard. Navigate to Settings → Integrations section → Manage API Keys

Headers

Account-ID
string
required

Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations

Body

application/json
email
string
required

Email of the lead/sign-up. Required if uid is not provided.

event_id
string
required

Transaction or sale event ID. Required to avoid duplicate sales.

amount
integer
required

The sale amount in cents. For zero-decimal currencies like JPY, amount should be whole values.

uid
string

uid of the lead added on signup tracking. Required if email is not provided.

quantity
integer

Number of subscriptions/items. Optional if quantity is 1.

plan
string

Customer plan ID from billing provider. Used for plan-level rewards.

currency
string

Required only if different from FirstPromoter settings default currency.

mrr
string

Monthly Recurring Revenue generated by the customer.

promo_code
string

For promo code tracking.

tid
string

Visitor tracking ID from _fprom_tid cookie.

ref_id
string

Referral ID of the promoter.

skip_email_notification
boolean

Set true to skip email notifications. Default is false.

Response

Sale tracked successfully

id
integer
Example:

45831949

etype
string
Example:

"sale"

sale_amount
integer
Example:

2000

original_sale_amount
integer
Example:

2000

original_sale_currency
string | null
Example:

null

event_id
string | null
Example:

null

plan_id
string | null
Example:

null

billing_period
string | null
Example:

null

created_at
string<date-time>
Example:

"2025-04-25T09:39:42.289Z"

referral
object
commissions
object[]