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
{
"$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
}Generated from the live platform registries at build time โ reference pages cannot go stale. Markdown variant: /reference/commands/customer.identity.attach.md