/api/v1/checkout/sessionsCreate a new checkout session. Returns a hosted-checkout URL to redirect the customer to.
See the Checkout Sessions overview for the full flow, prerequisites, and idempotency rules.
Headers
X-Api-KeystringrequiredYour API key.
Idempotency-KeystringOptional idempotency key. Reusing it on an open session returns the same session.
Content-TypestringrequiredMust be
application/json.Body
itemsobject[]requiredItems to purchase. 1–50 entries.
customerobjectrequiredCustomer info.
couponCodestringOptional discount coupon code.
giftCardCodestringOptional gift card code.
successUrlstring· urlrequiredHTTPS, origin must be in allow-list. Supports
{CHECKOUT_SESSION_ID} and {ORDER_ID} placeholders.cancelUrlstring· urlrequiredHTTPS, origin must be in allow-list. Supports
{CHECKOUT_SESSION_ID}.clientReferenceIdstringYour internal reference ID; max 255 chars; echoed back on the session.
expiresInSecondsintegerSession expiry, 60–86400. Defaults to 3600 (1 hour).
items[]
packageIdstring· uuidrequiredActive package on this store.
quantityinteger1–100, default 1.
serverIdstring· uuidRequired if the package has
userServerSelectionEnabled.customer
playerUsernamestringrequiredPlayer in-game name, 3–32 chars.
playerUuidstring· uuidMinecraft UUID, optional.
emailstring· emailIf absent, customer enters it at checkout.