Create

POST /api/coupons

<쿠폰 생성 API>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Authority

Role
Description

MASTER

Body

Name
Type
Description

name

String

Name of the coupon

discountAmount

Number

할인액 또는 할인비율

discountPolicy

String

할인 정책

  • PERCENTAGE(정률 할인)

  • FIXED(고정 금액 할인)

target

String

쿠폰 적용 대상

  • 모든 공연(ALL)

  • 특정 공연(CONCERT)

startDate

Timestamp

쿠폰 사용 가능 시작 시간

expirationDate

Timestamp

쿠폰 사용 만료 시간

minSpendAmount

Number

최소 사용 금액

maxQuantity

Number

최대 발급 수량

maxDiscountPrice

Number

최대 할인 금액

usageLimit

Number

한 사용자가 쿠폰을 사용할 수 있는 최대 횟수, 무제한: -1

evntids

UUID[]

쿠폰 적용 가능한 공연 목록 (target이 모든 공연일 경우 NULL 가능 )

Response

Last updated