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 anDocumentation Index
Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
Use this file to discover all available pages before exploring further.
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
| Attribute | Description |
|---|---|
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 anextend_date is provided |
extend_date DATE-TIME | This date-time string will replace the existing expires_at value **Cannot be specified ifextend_days is provided ** |