Extend Reward

A POST to the /rewards/extend endpoint allows your application to extend the expiry date of a Reward.

Extending a reward modifies the expiry date according to the specified parameters in the payload.
The Extend Reward endpoint allows developers to specify either an extend_days or extend_date

Provide an array of ID's and search the specified profile_id for eligible rewards.
Each eligible reward will be extended according to either the extend_days or extend_date

AttributeDescription
profile_id
STRING
The profile ID containing the rewards to extend
ids
ARRAY
An array of reward id's. Each reward id specified will be extended.
extend_days
INTEGER
The amount of days to extend. This will be added to the existing expires_at date to calculate the new expiry
Cannot be specified if an extend_date is provided
extend_date
DATE-TIME
This date-time string will replace the existing expires_at value
Cannot be specified if extend_days is provided

🚧

Eligible Rewards for extension

Rewards can only be extended once
This means the extended_at field must be null to be eligible for an extension

Language
Credentials
Header
URL