Skip to main content
POST
Attach subscription discount

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

token
string
required

Subscription token

Body

application/json
discount_id
integer

Discount ID. Mutually exclusive with discount_code.

discount_code
string

Discount code. Mutually exclusive with discount_id.

duration
enum<string>
Available options:
forever,
once,
repeating
duration_cycles
integer

Required when duration is repeating.

notes
string

Response

Success

subscription_discount
object
required

Subscription discount attachment rendered by SubscriptionDiscountBlueprinter (default view)

meta
object
required