Palbase Commerce & Promotions · API
POST
/commerce/carts/{cart_id}/mergeMerge guest cart into signed-in customer cart
Merge guest cart into signed-in customer cart. Only an open cart (status active) is merged: one being checked out, checked out or merged already is refused (409 cart_not_active).
Called by a signed-in user of your app, with their token and the publishable key.
Path
cart_idstring · requiredPath parameter cart_id.curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/carts/<cart_id>/merge" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{}'Responses
200Merge guest cart into signed-in customer cart
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation MergeGuestCart of commerce's contract.