Map your SKU to one of your products
create_sku_mappingMap your SKU to one of your products. Adds your SKU to a product in My products, like adding a SKU on the portal's My products page. Orders that need attention because of this SKU are matched again right away. A product that isn't in My products returns 422 library_not_in_library. Needs the catalog:write permission.
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": {
"customerSku": "<customerSku>",
"productId": "<productId>"
},
"name": "create_sku_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | No | Your SKU is already mapped to another product: send true to move it to this product. Otherwise you get 409 library_sku_taken. | |
| productId | Yes | Our product id from your product list (a product in My products) | |
| customerSku | Yes | Your SKU, as it appears on your orders | |
| idempotencyKey | No | Make up a new unique value for each new action; reuse the same value only when retrying the same action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| replayed | No | true when this is the saved result of an earlier call with the same idempotencyKey |