Skip to main content
POST
Add item to cart

Authorizations

Authorization
string
header
required

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

Body

application/json
productSku
string
required

SKU of the Product (or legacy Offer) to add to the cart.

Example:

"mc-java-paper"

quantity
number
default:1
Required range: 1 <= x <= 100
Example:

1

planId
string

ID of the billing Plan to use. When omitted, the product base price (or the first active plan, if the product has plans) is used.

eggId
string

Selected egg variant (software choice). Must be the product default egg or one of its eggVariants.

configs
object

Selected config options keyed by configOptionId → chosen value (matching a choice value in the option's choices JSON array). Each selection adds its priceDeltaCents to the unit price.

Example:

Response

201 - undefined

Related topics

Introduction