提交上架 / Publish to Walmart
publish_listing把暂存商品提交上架到沃尔玛店铺。默认 dry_run=true 只做预演:返回将提交的商品、合规闸门与预检结果,不真上架。真上架必须显式 dry_run=false 并提供唯一 idempotency_key(防 Agent 重试导致重复上架;同键同参数重复调用只返回首次结果)。任一商品没有 7 天内的有效合规结论(能卖)时拒绝执行(fail-closed)。若商品未做人工审核,portal 会先返回 HUMAN_REVIEW_CONFIRM_REQUIRED 与 review_confirmation_token:把情况告知用户、取得明确同意后,用同一个 idempotency_key 加 review_confirmation_token 重提(等同用户在网页端勾选「直接提交」)。Publish staging items to a Walmart store: dry-run by default; real publish needs dry_run=false plus a unique idempotency_key and a fresh passing compliance verdict; unreviewed items require the portal review-confirmation token flow.
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": {
"staging_ids": "<staging_ids>",
"store_id": "<store_id>"
},
"name": "publish_listing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| store_id | Yes | ||
| staging_ids | Yes | ||
| idempotency_key | No | ||
| review_confirmation_token | No |