# `customer.identity.attach` Attach an order's customer to a Mozaik ID (explicit, shopper-initiated). - **scope**: `checkout` - **storefront-visible** (bumps the catalog generation): no - **destructive**: no ## Payload | field | type | required | notes | |---|---|---|---| | `orderId` | string (/^ord_[a-zA-Z0-9]{1,32}$/) | yes | | | `userId` | string (/^usr_[a-zA-Z0-9]{1,32}$/) | yes | | ### JSON Schema ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "orderId": { "type": "string", "pattern": "^ord_[a-zA-Z0-9]{1,32}$" }, "userId": { "type": "string", "pattern": "^usr_[a-zA-Z0-9]{1,32}$" } }, "required": [ "orderId", "userId" ], "additionalProperties": false } ```