Palbase Commerce & Promotions · API
POST
/commerce/cartsCreate guest or customer cart
Create guest or customer cart
Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/carts" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{}'Responses
201Create guest or customer cart
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation CreateCart of commerce's contract.