Rewards
Update a reward or commission
You can use this endpoint to change the status of a reward or commission. You can identify the reward or commission by its id or the id of the event that generated the reward.
For Stripe, Recurly and Chargebee subscription the
event_id
value is the Invoice id, for Stripe one time charges is the charge id.HTTP Request
PUT https://firstpromoter.com/api/v1/rewards/update
PUT
/
update
Authorizations
X-API-KEY
string
headerrequiredQuery Parameters
id
string
required if the event_id is null
Id of the reward inside FirstPromoter
event_id
string
required if the id is null
Id of the event that generated the reward
status
enum<string>
New status of the reward
Available options:
approved
, pending
, denied
Response
200 - application/json
id
number
ID of the reward
status
enum<string>
status of the reward.
Available options:
approved
, pending
, denied
amount
integer
amount of the reward. For reward_type cash
(monetary commission) the amount is in cents
unit
enum<string>
The reward unit.
Available options:
cash
, credits
, points
, free_months
created_at
string
ISO date string at which the reward is created
lead
any
event_id
string
conversion_amount
integer
tier_level
integer
The reward tier level
promoter
object
promotion
object