Create a checkout link
POST
/checkout-linksSend a shopper to Storlio’s hosted checkout. Links expire after one hour.
Bearer token ·
checkout:writeHeaders
Idempotency-KeystringrequiredReuse only for an identical retry. Changed requests need a new key.
Request body application/json
itemsobject[]requiredProducts and quantities for this checkout.
Up to 30 items.
Child fields
productIdstringrequiredStorlio product ID.
quantityintegerrequiredNumber of units.
Min: 1.Max: 1000.
optionsobjectSelected variation options, for example { "Size": "M" }.
Integration notes
- Maximum 30 distinct product/variation lines. Prices and availability are checked again at checkout.
- Creating a link does not create an order, reserve stock or charge the shopper. Continuing replaces the shopper’s cart.
Responses
Created successfully.
Response fields
urlstringPublic HTTPS URL.
Format: uri.
expiresAtstringFormat: date-time.