voucher
-
POST /api/admin/vouchers - Admin tạo voucher-book cho phường
-
- Header: X-Tenant
- Request body:
"""
{
"clanCode"(*): "string",
"code"(*): "string",
"title"(*): "string",
"description": "string",
"validFrom"(*): "2024-09-24T07:51:22.783Z",
"validTo": "2024-09-24T07:51:22.783Z",
"applyScopes"(*): [
"string"
],
"applyCondition": "string",
"discountType"(*): "string",
"formula"(*): "string",
"orderCode": "string",
"image": "string",
"termsAndConditions": "string",
"customerLimit"(*): 0,
"numberOfVoucher"(*): 0,
"maxValue": 0,
"items"(*): [
{
"fee": "string",
"maxValue": 0,
"discountLimit": 0
}
],
"config"(*): {
"hidden": true,
"single": true,
"showLimit": true,
"showRemaining": true,
"showCustomerLimit": true
},
"orderDiscount"(*): {
"maxValue": 0,
"discountLimit": 0,
"orderDiscountType": "string"
}
}
"""
- Quyền tạo voucher-book: voucher:create_book