Skip to main content
POST
Create coupon topic

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Coupon topic name.

Required string length: 1 - 255
description
string | null

Optional internal description of the topic.

Maximum string length: 1000
expiresAt
string<date-time> | null

When coupons from this topic stop being issueable/usable, or null for never.

Response

OK

id
string
required
workspaceId
string
required
name
string
required
description
string | null
required
expiresAt
string<date-time> | null
required
status
enum<string>
required
Available options:
active,
archived
hasEverHadCoupon
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required