POST
luma_events_coupons_create.py
import asyncio
from charter.packs import luma
result = asyncio.run(luma.events_coupons_create.ainvoke({"code": ..., "discount": ..., "eventId": ...}))
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). |
eventId * | string | Event ID, this usually starts with evt- |
eventTicketTypeId | string | Optional. Restrict the coupon to a single ticket type. If that ticket type is hidden, the coupon acts as an unlock (access) code that reveals the ticket during registration. Pair a hidden ticket type that has Require Approval turned off with an unlock code to let invited guests register and pay directly, skipping the Apply to Attend step. For a code that unlocks the ticket without changing the price, set the discount to 0% (percent_off: 0). |