Expired paid batches in period.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | year required | integer <int32> |
| month required | integer <int32> |
| x-tenant | string <uuid> |
Points expiring in near future.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | x-tenant | string <uuid> |
Create and add new batch of points. Batch can have expiration date and price for which points were bought..
ROLE_SUROLE_WALLETROLE_WALLET_BATCH) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| amount required | number > 0 |
| price | number > 0 |
| expires | string <date-time> |
| order | string [ 0 .. 64 ] characters |
object |
Expired paid batches in period.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | year required | integer <int32> |
| month required | integer <int32> |
| x-tenant | string <uuid> |
Points expiring in near future.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | x-tenant | string <uuid> |
Get single reward data
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | id required | string <uuid> Example: 9cbe650a-1fb7-4b06-912b-cead8a013e8b |
Update reward data
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | id required | string <uuid> Example: 9cbe650a-1fb7-4b06-912b-cead8a013e8b |
| name required | string [ 3 .. 128 ] characters [\p{L}\p{N}_. -]+ |
| visible | boolean Visible in catalog and allowed to exchange for points by users themselves |
object (Details) | |
| availableFrom | string <date-time> |
| availableTo | string <date-time> |
| points required | number > 0 |
| maxCount | integer <int32> >= 1 |
| priority | integer <int32> >= 0 |
required | object (CouponData) |
| tags | Array of strings [ 0 .. 16 ] items |
object |
Delete reward. Be careful as this is not reversible.
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | id required | string <uuid> Example: 9cbe650a-1fb7-4b06-912b-cead8a013e8b |
Get paginated list of rewards for administrative purposes. This endpoint is compatible with React AdminOnRest framework to provide DataSource.
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) required | object (RewardsFilter) |
Create new reward
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | name required | string [ 3 .. 128 ] characters [\p{L}\p{N}_. -]+ |
| visible | boolean Visible in catalog and allowed to exchange for points by users themselves |
object (Details) | |
| availableFrom | string <date-time> |
| availableTo | string <date-time> |
| points required | number > 0 |
| maxCount | integer <int32> >= 1 |
| priority | integer <int32> >= 0 |
required | object (CouponData) |
| tags | Array of strings [ 0 .. 16 ] items |
object |
Get single reward data
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | id required | string <uuid> Example: 9cbe650a-1fb7-4b06-912b-cead8a013e8b |
Update reward data
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | id required | string <uuid> Example: 9cbe650a-1fb7-4b06-912b-cead8a013e8b |
| name required | string [ 3 .. 128 ] characters [\p{L}\p{N}_. -]+ |
| visible | boolean Visible in catalog and allowed to exchange for points by users themselves |
object (Details) | |
| availableFrom | string <date-time> |
| availableTo | string <date-time> |
| points required | number > 0 |
| maxCount | integer <int32> >= 1 |
| priority | integer <int32> >= 0 |
required | object (CouponData) |
| tags | Array of strings [ 0 .. 16 ] items |
object |
Delete reward. Be careful as this is not reversible.
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | id required | string <uuid> Example: 9cbe650a-1fb7-4b06-912b-cead8a013e8b |
Get paginated list of rewards for administrative purposes. This endpoint is compatible with React AdminOnRest framework to provide DataSource.
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) required | object (RewardsFilter) |
Create new reward
ROLE_SUROLE_WALLETROLE_WALLET_REWARDS) | name required | string [ 3 .. 128 ] characters [\p{L}\p{N}_. -]+ |
| visible | boolean Visible in catalog and allowed to exchange for points by users themselves |
object (Details) | |
| availableFrom | string <date-time> |
| availableTo | string <date-time> |
| points required | number > 0 |
| maxCount | integer <int32> >= 1 |
| priority | integer <int32> >= 0 |
required | object (CouponData) |
| tags | Array of strings [ 0 .. 16 ] items |
object |
Create and add new batch of points. Batch can have expiration date and price for which points were bought..
ROLE_SUROLE_WALLETROLE_WALLET_BATCH) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| amount required | number > 0 |
| price | number > 0 |
| expires | string <date-time> |
| order | string [ 0 .. 64 ] characters |
object |
Mark coupon used.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
Revert coupon marked used.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
Create new coupon.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
required | object (Details) |
object (CouponData) | |
| expires | string <date-time> |
List coupons in wallet.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
New operation (usage of collected points)
ROLE_SUROLE_WALLETROLE_WALLET_OP) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| amount required | number > 0 |
| order | string [ 0 .. 64 ] characters |
object |
Operation rollback (points are returned to batches they were collected from).
ROLE_SUROLE_WALLETROLE_WALLET_OP) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| operation required | string <uuid> |
Create new voucher.
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | x-tenant | string <uuid> |
| expires | string <date-time> |
| pointsExpireInDays | integer <int32> >= 1 |
| forWallet | string <uuid> |
| amount required | number > 0 |
| price | number > 0 |
object |
Use voucher on wallet - add points
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
Get wallet for specific user. If it is not created - get 404.
ROLE_SUROLE_WALLETROLE_WALLET_ROROLE_VIEWWALLET) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
Update wallet for logged user. If wallet was not there - it is created.
ROLE_SUROLE_WALLET) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
Create wallet for specific user. If wallet is already there - attributes are overwritten if they are provided and not empty.
ROLE_SUROLE_WALLET) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
Mark coupon used.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
Revert coupon marked used.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
Create new coupon.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
required | object (Details) |
object (CouponData) | |
| expires | string <date-time> |
List coupons in wallet.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
New operation (usage of collected points)
ROLE_SUROLE_WALLETROLE_WALLET_OP) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| amount required | number > 0 |
| order | string [ 0 .. 64 ] characters |
object |
Operation rollback (points are returned to batches they were collected from).
ROLE_SUROLE_WALLETROLE_WALLET_OP) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| operation required | string <uuid> |
Create new voucher.
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | x-tenant | string <uuid> |
| expires | string <date-time> |
| pointsExpireInDays | integer <int32> >= 1 |
| forWallet | string <uuid> |
| amount required | number > 0 |
| price | number > 0 |
object |
Use voucher on wallet - add points
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
Use voucher on my wallet - add points
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | voucher required | string <uuid> |
Get wallet for specific user. If it is not created - get 404.
ROLE_SUROLE_WALLETROLE_WALLET_ROROLE_VIEWWALLET) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
Update wallet for logged user. If wallet was not there - it is created.
ROLE_SUROLE_WALLET) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
Create wallet for specific user. If wallet is already there - attributes are overwritten if they are provided and not empty.
ROLE_SUROLE_WALLET) | wallet required | string <uuid> |
| x-tenant | string <uuid> |