customer.link_cart
Link the caller’s active cart to their account (funnel provenance; guest stays unlinked).
- Scope:
customer.self.write - System: no
- Reachable from:
POST /v1/commands/customer.link_cart(tenant credential) · MCP toolcustomer.link_cart· SDKclient.call('customer.link_cart', …) - Events: none — It attaches a session cart to a recognized customer; the fact a consumer would act on is cart.buyer_recognized, which the recognition emits.
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "cart_id": { "minLength": 1, "type": "string" } }, "required": [ "cart_id" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "cart_id": { "type": "string" } }, "required": [ "cart_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)