Skip to main content
POST
Completes the cart with Mercur’s split-order workflow: items are grouped by seller, one order is created per seller, and all orders are attached to a single order group returned to the shopper.
On payment errors that need customer action (authorization failed or requires more), the route still returns 200 with type: "cart", the refreshed cart, and an error object; any other failure is thrown as an error response.

Path parameters

string
required
The cart’s ID.

Query parameters

string
Comma-separated fields to include on the returned order group; prefix with +/- to add to or remove from the defaults.

Response

string
order_group on success, cart when payment requires further action.
object
Present when type is order_group.
object
Present when type is cart; the refreshed cart with items, totals, and payment collection.
object
Present when type is cart.