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/customer/commands/customer.link_cart— the shopper’s SESSION face, with the customer session Bearer minted bycustomer.verify_otp(the tenant comes from the token). An operator’s tenant credential never carriescustomer.self.write; the data face/v1/commands/customer.link_carttakes the same session Bearer only alongsidex-forge-tenant - 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)