Skip to main content
Create a draft order and return a checkout URL for the embed modal (JoinMarkt.open / data-join-markt-product-id buttons). Public CORS: Access-Control-Allow-Origin: *. Rate limit: 30 / 60s → 429.
string
required
Product public id (PRD-…, case-insensitive) or internal id (Product.id). Max 128 characters.
string
Stable variant UUID when the product has variants.
number
default:"1"
Quantity from 1–99.
string
default:"auto"
Embed theme: auto, light, or dark.
string
Prefill checkout email.
string
Apply a coupon at checkout.
string
Parent page URL after paid / close.
string
Affiliate / referral code.
object
String-valued metadata map.
string
default:"modal"
modal or inline. inline adds layout=inline to the checkout URL.
object
Optional Elements appearance overrides, encoded onto the checkout URL.
string
Browser public IP (max 45 characters) for VPN / anti-fraud screening when the server only sees a proxy address.

Response

string
required
Draft order CUID.
string
required
Checkout URL including ?embed=1&theme=….

Errors

See also: Embed SDK.