POST
luma_calendars_coupons_create.py
import asyncio
from charter.packs import luma
result = asyncio.run(luma.calendars_coupons_create.ainvoke({"code": ..., "discount": ...}))
Body
| Field | Type | Description |
|---|---|---|
code * | string | This is the code that the user will enter on the event page. It is not case sensitive. Maximum 20 characters. min length 1; max length 20 |
remainingCount | integer | Number of times the coupon can be used. Set to 1000000 for unlimited uses. ≥ 0; ≤ 1000000 |
validStartAt | string | ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z |
validEndAt | string | ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z |
discount * | DiscountPercent | DiscountAmount | A percentage off (discount_type: percent) or a fixed amount off in a currency (discount_type: amount). |