POST
/
refund

Authorizations

X-API-KEY
string
headerrequired

Query Parameters

email
string

required if uid is null

Email of the lead/sign-up

uid
string

required if email is null

uid of the lead added on signup tracking

event_id
string
required

Transaction or refund event ID. It's required to avoid generating duplicate refunds in case you mistakenly send the same API call multiple times.

amount
string
required

The refund amount in cents. It's used to calculate the negative commissions/rewards.

quantity
string

number of subscriptions/items refunded. If it's only one you can skip this parameter.

sale_event_id
string

the event id of the sale for which the refund is processed. This value must match the event_id value sent in the sale tracking API call. (Note: This field is marked as optional, but if you track multiple products or change the commissions level often, it becomes required to track refunds correctly)

skip_email_notification
boolean

Set this to true to skip email notifications. Default is false.

Response

200 - application/json
id
integer
type
string
amount_cents
integer
reward
object
lead
object
promoter
object