Assign Items to Client
assign_items_to_clientRe-tag existing items to a 3PL client (publisher/owner), so the client owns them for inventory, price books, quotes and recommendations. Select the items by skus OR itemIds (supply exactly one of the two), max 200 per call. Items already owned by the target client are reported as alreadyAssigned rather than failing, so a retried call converges. A per-item failure (e.g. the SKU already exists under the target client — item identity is unique per client, not per tenant) is reported in errors while the remaining items still apply. Use list_items to see current owners. Requires an operator (unpinned) org token on a 3PL tenant.
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": {
"clientId": "<clientId>"
},
"name": "assign_items_to_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skus | No | Item SKUs to re-tag. Supply this OR itemIds, not both. Case-insensitive. | |
| itemIds | No | Item ids (GUIDs) to re-tag. Supply this OR skus, not both. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview (resolved items with their current owner + not-found/ambiguity reports) plus a single-use previewReceipt. Nothing is re-tagged until the commit call. NOTE: the commit re-tags the whole batch ATOMICALLY (any per-item failure rolls the entire batch back). | |
| clientId | Yes | The client id (GUID) to tag the items to. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| errors | No | ||
| preview | No | ||
| assigned | No | ||
| clientId | No | ||
| notFound | No | ||
| expiresAt | No | ||
| clientName | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| alreadyAssigned | No | ||
| idempotentReplay | No |