A Promotion represents the settings of a campaign in which a Client distributes Rewards to the end-users.
Enabled & Ready
In order to allow the rewards distribution, a promotion should have the status "enabled" and the state "ready" (ie, you've received the approval from the platform). Otherwise, the rewards delivery is not possible: codes can't be retrieved or sent.
Promotion status
statusThe status is manually set by an admin to enable or disable the reward delivery as part of a promotion.
| Promotion Status | API Response | Definition | 
|---|---|---|
| Enabled | enabled | Rewards delivery is authorized. | 
| Paused | paused | Promotion is paused and might resume. Codes can't be retrieved or sent. | 
| Completed | completed | Promotion is done. Codes can't be retrieved or sent. | 
| Deleted | disabled | Promotion was a test or created by mistake. Codes can't be retrieved or sent. | 
Promotion state
stateThe state tells you whether your promotion has everything finalized and approved for deployment.
| Promotion States | API Response | Definition | 
|---|---|---|
| Ready | ready | All checks are green. If the promotion is enabled, rewards delivery is allowed. Codes can be retrieved or sent. | 
| Pending | pending | The start date of the promotion is in the future. Codes can't be retrieved or sent. | 
| Ended | ended | The end date of the promotion is past. Codes can't be retrieved or sent. | 
Offers
Promotions give you a list of offers which represents the list of rewards available on your account.
Each offer has a status and a state that you must check before selling them.
Codes can be retrieved only if
statusisenabledandstateisreadyorno_allocation.
Offer status
statusThe status is manually set by an admin to enable or disable the reward delivery as part of a promotion.
| Promotion Status | API Response | Definition | 
|---|---|---|
| Enabled | enabled | Rewards delivery is authorized. | 
| Paused | paused | Offer is paused and might resume. Codes can't be retrieved or sent. | 
| Disabled | disabled | Offer has been disabled on your account. The reward will probably no longer be sellable. | 
Offer state
stateThe state tells you whether your promotion has everything finalized and approved for deployment.
| Promotion States | API Response | Definition | 
|---|---|---|
| Ready | ready | All checks are green. If the offer is enabled, rewards delivery is allowed. Codes can be retrieved or sent. | 
| No allocation | no_allocation | Reward not yet configured for your account, but it can still be redeemed. | 
| Invalid reward | invalid_reward or invalid_reward_for_redemption_flow | Product misconfigured (Ifeelgoods issue, ask your account manager). |