Save Shopify customer-type tag mappings
update_sales_configSave the complete Shopify customer-type configuration. Read get_sales_config first and preserve settings the user did not ask to change. config requires enabled, wholesale_tags, distributor_tags, d2c_tags and untagged. Each tag list replaces that type's mappings; [] clears it. Tags match exactly, ignoring case, with up to 30 tags per type and 100 characters per tag. The same tag cannot map to multiple types. untagged is unknown or d2c, and also applies to customers with tags that match no mapping; choose d2c only when the user asks for that fallback. Set enabled: true to turn classification on (requires Shopify read_customers permission). Needs write:config and an owner or member role. Changes affect future sales; existing classified orders keep their type. Does not edit tags in Shopify or import past orders.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"config": "<config>"
},
"name": "update_sales_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| config | Yes | Complete customer-type configuration from get_sales_config, with the requested changes applied. |