Can be count or sum. count if the progress should be incremented by 1 each time. sum if the progress should be summed from the specified field property.
field
string
Only supplied if type is sum. This denotes which field to sum on the Event  API to reach the target amount.
amount
number
The chosen number to reach for completion of the Promotion.
The type of Promotion. Can be cashback or challenge. challenge rewards the account once, after the challenge target is met. cashback gives a reward based on the payment amount, which can be completed an unlimited number of times.
conditions
array
The list of Conditions  API that need to be met when incrementing/completing the Promotion.
The type of Promotion. Can be cashback or challenge. challenge rewards the account once, after the challenge target is met. cashback gives a reward based on the payment amount, which can be completed an unlimited number of times.
conditions
array
The list of Conditions  API that need to be met when incrementing/completing the Promotion.
Errors
Collapse all
PROMOTION_REWARDS_INVALID
403
One or more of the rewards ledgers does not exist or permissions are invalid.