Betas
Create checkout session
Create a new checkout session.
Checkout sessions are hosted checkout forms your shoppers can use to complete their purchases.
post/api/v1/betas/checkout-sessions
Request body
Example request
{
"productUrl": "https://www.amazon.com/dp/B0DFC9MT8Q",
"quantity": 1,
"variantSelections": [
{
"label": "Size, Color, etc."
}
],
"constraints": {
"maxShippingPrice": 500,
"maxTotalPrice": 100000
},
"referenceId": "order-1234",
"buyer": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "1234567890",
"address1": "123 Main St",
"address2": "Apt 1",
"city": "New York",
"province": "NY",
"country": "US",
"postalCode": "10001"
}
}Response
Checkout session