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> |
| property name* | string |
{- "property1": "string",
- "property2": "string"
}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> |
| property name* | string |
{- "property1": "string",
- "property2": "string"
}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> |
| property name* | string |
{- "property1": "string",
- "property2": "string"
}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> |
| property name* | string |
{- "property1": "string",
- "property2": "string"
}Use voucher on wallet - add points
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
{- "voucher": "f54d9d74-3755-45a8-b042-f5b2aefca818"
}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_-]+ |
{- "coupon": "string"
}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_-]+ |
{- "coupon": "string"
}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 |
| venue | string [ 0 .. 255 ] characters |
object |
{- "amount": 0,
- "order": "string",
- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}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> |
{- "operation": "fc63ceec-84f0-4df1-a7e8-77c5f8c0b283"
}Create new coupon.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
required | object (Details_Staff) |
object (CouponData_Staff) | |
| expires | string <date-time> |
{- "details": {
- "literals": {
- "property1": "string",
- "property2": "string"
}, - "media": [
- {
- "url": "string",
- "name": "string"
}
]
}, - "data": {
- "couponKey": "string",
- "enableKey": "string",
- "productId": "string",
- "categoryId": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "expires": "2019-08-24T14:15:22Z"
}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 |
| description | string [ 0 .. 32 ] characters |
| venue | string [ 0 .. 255 ] characters |
object |
{- "amount": 0,
- "price": 0,
- "expires": "2019-08-24T14:15:22Z",
- "order": "string",
- "description": "string",
- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}Create and add new batch of points (synchronous). 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 |
| description | string [ 0 .. 32 ] characters |
| venue | string [ 0 .. 255 ] characters |
object |
{- "amount": 0,
- "price": 0,
- "expires": "2019-08-24T14:15:22Z",
- "order": "string",
- "description": "string",
- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}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 |
{- "expires": "2019-08-24T14:15:22Z",
- "pointsExpireInDays": 1,
- "forWallet": "1c596f49-6bbe-43f6-a405-e2f35389a324",
- "amount": 0,
- "price": 0,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}Update operation
ROLE_SUROLE_WALLETROLE_WALLET_OP) | wallet required | string <uuid> |
| operation required | string <uuid> |
| x-tenant | string <uuid> |
| venue | string [ 0 .. 255 ] characters |
object |
{- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}List coupons in wallet.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| 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 |
{- "name": "string",
- "visible": true,
- "details": {
- "literals": {
- "property1": "string",
- "property2": "string"
}, - "media": [
- {
- "url": "string",
- "name": "string"
}
]
}, - "availableFrom": "2019-08-24T14:15:22Z",
- "availableTo": "2019-08-24T14:15:22Z",
- "points": 0,
- "maxCount": 1,
- "priority": 0,
- "data": {
- "couponKey": "string",
- "enableKey": "string",
- "productId": "string",
- "categoryId": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "tags": [
- "string"
], - "extra": {
- "property1": "string",
- "property2": "string"
}
}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 |
{- "name": "string",
- "visible": true,
- "details": {
- "literals": {
- "property1": "string",
- "property2": "string"
}, - "media": [
- {
- "url": "string",
- "name": "string"
}
]
}, - "availableFrom": "2019-08-24T14:15:22Z",
- "availableTo": "2019-08-24T14:15:22Z",
- "points": 0,
- "maxCount": 1,
- "priority": 0,
- "data": {
- "couponKey": "string",
- "enableKey": "string",
- "productId": "string",
- "categoryId": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "tags": [
- "string"
], - "extra": {
- "property1": "string",
- "property2": "string"
}
}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 |
{- "name": "string",
- "visible": true,
- "details": {
- "literals": {
- "property1": "string",
- "property2": "string"
}, - "media": [
- {
- "url": "string",
- "name": "string"
}
]
}, - "availableFrom": "2019-08-24T14:15:22Z",
- "availableTo": "2019-08-24T14:15:22Z",
- "points": 0,
- "maxCount": 1,
- "priority": 0,
- "data": {
- "couponKey": "string",
- "enableKey": "string",
- "productId": "string",
- "categoryId": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "tags": [
- "string"
], - "extra": {
- "property1": "string",
- "property2": "string"
}
}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 |
{- "name": "string",
- "visible": true,
- "details": {
- "literals": {
- "property1": "string",
- "property2": "string"
}, - "media": [
- {
- "url": "string",
- "name": "string"
}
]
}, - "availableFrom": "2019-08-24T14:15:22Z",
- "availableTo": "2019-08-24T14:15:22Z",
- "points": 0,
- "maxCount": 1,
- "priority": 0,
- "data": {
- "couponKey": "string",
- "enableKey": "string",
- "productId": "string",
- "categoryId": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "tags": [
- "string"
], - "extra": {
- "property1": "string",
- "property2": "string"
}
}Use voucher on wallet - add points
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
{- "voucher": "f54d9d74-3755-45a8-b042-f5b2aefca818"
}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 |
{- "expires": "2019-08-24T14:15:22Z",
- "pointsExpireInDays": 1,
- "forWallet": "1c596f49-6bbe-43f6-a405-e2f35389a324",
- "amount": 0,
- "price": 0,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}Use voucher on my wallet - add points
ROLE_SUROLE_WALLETROLE_WALLET_VOUCHER) | voucher required | string <uuid> |
{- "voucher": "f54d9d74-3755-45a8-b042-f5b2aefca818"
}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_-]+ |
{- "coupon": "string"
}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_-]+ |
{- "coupon": "string"
}Create new coupon.
ROLE_SUROLE_WALLETROLE_WALLET_COUPONS) | wallet required | string <uuid> |
| x-tenant | string <uuid> |
required | object (Details_Staff) |
object (CouponData_Staff) | |
| expires | string <date-time> |
{- "details": {
- "literals": {
- "property1": "string",
- "property2": "string"
}, - "media": [
- {
- "url": "string",
- "name": "string"
}
]
}, - "data": {
- "couponKey": "string",
- "enableKey": "string",
- "productId": "string",
- "categoryId": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "expires": "2019-08-24T14:15:22Z"
}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 |
| venue | string [ 0 .. 255 ] characters |
object |
{- "amount": 0,
- "order": "string",
- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}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> |
{- "operation": "fc63ceec-84f0-4df1-a7e8-77c5f8c0b283"
}Update operation
ROLE_SUROLE_WALLETROLE_WALLET_OP) | wallet required | string <uuid> |
| operation required | string <uuid> |
| x-tenant | string <uuid> |
| venue | string [ 0 .. 255 ] characters |
object |
{- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}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 |
| description | string [ 0 .. 32 ] characters |
| venue | string [ 0 .. 255 ] characters |
object |
{- "amount": 0,
- "price": 0,
- "expires": "2019-08-24T14:15:22Z",
- "order": "string",
- "description": "string",
- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}Create and add new batch of points (synchronous). 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 |
| description | string [ 0 .. 32 ] characters |
| venue | string [ 0 .. 255 ] characters |
object |
{- "amount": 0,
- "price": 0,
- "expires": "2019-08-24T14:15:22Z",
- "order": "string",
- "description": "string",
- "venue": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}Points expiring in near future.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | x-tenant | string <uuid> |
Expired paid batches in period.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | year required | integer <int32> |
| month required | integer <int32> |
| x-tenant | string <uuid> |
Create wallet report
ROLE_SUROLE_WALLETROLE_WALLET_STATS) | from required | string <date> |
| to required | string <date> |
| venues | Array of strings |
| x-tenant | string <uuid> |
Points expiring in near future.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | x-tenant | string <uuid> |
Expired paid batches in period.
ROLE_SUROLE_WALLETROLE_WALLET_REPORT) | year required | integer <int32> |
| month required | integer <int32> |
| x-tenant | string <uuid> |