Skip to main content
PUT
Generate bundle-specific discount code

Headers

X-API-Key
string

Path Parameters

token
string
required

Bundle token identifier

Query Parameters

api_key
string

API Key (Deprecated - Use Header X-API-Key instead)

Body

application/json

Discount code configuration including code, value, type, and validity

cart
object

Response

Discount code successfully created in Shopify

discountCode
string
discountNeeded
boolean
errorMessage
string