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 reward by id.
| reward required | string <uuid> |
| x-tenant | string <uuid> |
| code | string [ 1 .. 32 ] characters |
| 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 |
| product required | string |
| productConfig | object |
| tags | Array of strings |
object |
{- "code": "string",
- "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,
- "product": "string",
- "productConfig": { },
- "tags": [
- "string"
], - "extra": {
- "property1": "string",
- "property2": "string"
}
}Insert reward by id.
| x-tenant | string <uuid> |
| code | string [ 1 .. 32 ] characters |
| 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 |
| product required | string |
| productConfig | object |
| tags | Array of strings |
object |
{- "code": "string",
- "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,
- "product": "string",
- "productConfig": { },
- "tags": [
- "string"
], - "extra": {
- "property1": "string",
- "property2": "string"
}
}Use voucher on specific wallet
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| voucher required | string <uuid> |
{- "voucher": "f54d9d74-3755-45a8-b042-f5b2aefca818"
}Create new voucher. Expiration date for voucher can be provided (it also applies to batch of points from that voucher). Additionaly points can last for specified number of days after voucher usage.
| x-tenant | string <uuid> |
| amount required | number > 0 |
| price | number > 0 |
| expires | string <date-time> |
| pointsExpireInDays | integer <int32> >= 1 |
| forWallet | string <uuid> |
object |
{- "amount": 0,
- "price": 0,
- "expires": "2019-08-24T14:15:22Z",
- "pointsExpireInDays": 1,
- "forWallet": "1c596f49-6bbe-43f6-a405-e2f35389a324",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}New operation (usage of collected points)
| wallet required | string <uuid> |
| x-tenant | string <uuid> |
| amount required | number > 0 |
| order | string [ 0 .. 64 ] characters |
object |
{- "amount": 0,
- "order": "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> |
"497f6eca-6276-4993-bfeb-53cbbbba6f08"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 |
object |
{- "amount": 0,
- "price": 0,
- "expires": "2019-08-24T14:15:22Z",
- "order": "string",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}