Skip to main content
PUT
Generate discount code for bundle

Headers

X-API-Key
string

Path Parameters

token
string
required

The Build-a-Box's uniqueRef, shown as Ref in the Build-A-Box list

Query Parameters

api_key
string

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

Body

application/json

The cart, in the JSON that Shopify's /cart.js returns

cart
object

Response

The code for the cart, or no discount