addVouchers
Enables creation of new vouchers, including discount codes and gift certificates, with details like name, code, value, validity period, usage limit, and accounting category, within the Mews hospitality platform.
Instructions
Adds new vouchers (discount codes, gift certificates) to the system
Input Schema
Name | Required | Description | Default |
---|---|---|---|
Vouchers | Yes | Array of voucher objects to create |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"Vouchers": {
"description": "Array of voucher objects to create",
"items": {
"properties": {
"AccountingCategoryId": {
"description": "Accounting category for voucher",
"type": "string"
},
"Code": {
"description": "Voucher code",
"type": "string"
},
"Name": {
"description": "Voucher name",
"type": "string"
},
"Type": {
"description": "Voucher type",
"type": "string"
},
"UsageLimit": {
"description": "Maximum number of uses",
"type": "number"
},
"ValidityEndUtc": {
"description": "Voucher validity end (ISO 8601)",
"type": "string"
},
"ValidityStartUtc": {
"description": "Voucher validity start (ISO 8601)",
"type": "string"
},
"Value": {
"description": "Voucher value",
"properties": {
"Amount": {
"description": "Voucher amount",
"type": "number"
},
"Currency": {
"description": "Voucher currency",
"type": "string"
}
},
"type": "object"
}
},
"required": [
"Name",
"Code"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"Vouchers"
],
"type": "object"
}