test_commerce_policy
Dry-run a commerce pricing policy against an item and competitor observations you supply, and see the price it would propose and why. Nothing is saved. Needs a Last Price credential with commerce proposal draft scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The catalog item: its id, sku, price and attributes, as list_commerce_catalog shows one. | |
| policy_id | Yes | The policy id, as list_commerce_policies gives it. | |
| marketplace | No | The marketplace the item is sold on, when the policy scopes by marketplace. | |
| observations | No | Competitor observations for the item, as list_commerce_observations shows them. Defaults to none. |