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
Authorizations
Query Parameters
required if the event_id is null
Id of the reward inside FirstPromoter
required if the id is null
Id of the event that generated the reward
New status of the reward
Available options:
approved
, pending
, denied
Response
200
application/json
Update reward response
ID of the reward
status of the reward.
Available options:
approved
, pending
, denied
amount of the reward. For reward_type cash
(monetary commission) the amount is in cents
The reward unit.
Available options:
cash
, credits
, points
, free_months
ISO date string at which the reward is created
The reward tier level