Cupons
Criar cupom
POST
Criar cupom
Authorizations
API key do hub com escopo manage. Header: Authorization: Bearer <api_key>.
Path Parameters
Body
application/json
POST /api/v1/events/{event}/coupons — cria cupom. Espelha EventSales::saveCoupon. value: percent (1-100) quando type=percent; centavos quando type=fixed. Unicidade case-insensitive do código por evento é checada no controller.
Maximum string length:
50Available options:
percent, fixed Required range:
0 <= x <= 100000000Required range:
x >= 1Required range:
x >= 0Required range:
x >= 1Maximum string length:
255Response
JsonResource
Criar cupom
