create_discounts_allocator_function
Create a Shopify discounts allocator function by specifying a function ID and optional metafields to configure how discounts are allocated.
Instructions
Create a discounts allocator function using a Shopify Function
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": {
"functionId": "<functionId>"
},
"name": "create_discounts_allocator_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functionId | Yes | ID of the discounts allocator function to use | |
| metafields | No | Configuration metafields for the function |