Update wallet for logged user. If wallet was not there - it is created.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| property name* additional property | 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.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| property name* additional property | string |
{- "property1": "string",
- "property2": "string"
}Update wallet for logged user. If wallet was not there - it is created.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| property name* additional property | 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.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| property name* additional property | string |
{- "property1": "string",
- "property2": "string"
}Use voucher on wallet - add points
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
{- "voucher": "f54d9d74-3755-45a8-b042-f5b2aefca818"
}Mark coupon used.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
{- "coupon": "string"
}Revert coupon marked used.
| 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)
| 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).
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| operation required | string <uuid> |
{- "operation": "fc63ceec-84f0-4df1-a7e8-77c5f8c0b283"
}Create new coupon.
| 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..
| 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..
| 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.
| 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
| 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"
}
}Update reward data
| 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 [ items [ 0 .. 64 ] characters ] |
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"
}
}Create new reward
| 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 [ items [ 0 .. 64 ] characters ] |
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"
}
}Update reward data
| 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 [ items [ 0 .. 64 ] characters ] |
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"
}
}Create new reward
| 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 [ items [ 0 .. 64 ] characters ] |
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
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
{- "voucher": "f54d9d74-3755-45a8-b042-f5b2aefca818"
}Create new 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"
}
}Mark coupon used.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
{- "coupon": "string"
}Revert coupon marked used.
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| coupon required | string [ 0 .. 16 ] characters [a-zA-Z0-9_-]+ |
{- "coupon": "string"
}Create new coupon.
| 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"
}New operation (usage of collected points)
| 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).
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| operation required | string <uuid> |
{- "operation": "fc63ceec-84f0-4df1-a7e8-77c5f8c0b283"
}Update operation
| 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..
| 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..
| 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"
}
}