call_endpoint
Execute authenticated Walmart Marketplace API requests by providing an operation ID or method and path. Handles authentication, headers, and environment selection for production or sandbox.
Instructions
[WalmartMarketplace] Execute an authenticated API request. Give operation_id, or method and path together. Auth, WM_MARKET, WM_GLOBAL_VERSION, WM_SANDBOX and correlation headers are added by the server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | [WalmartMarketplace] JSON request body for POST/PUT/PATCH. | |
| path | No | [WalmartMarketplace] API path after the base URL, e.g. /v3/orders. Required unless operation_id is given. | |
| method | No | [WalmartMarketplace] HTTP method. Required unless operation_id is given. | |
| params | No | [WalmartMarketplace] Query string parameters as a JSON object. | |
| region | Yes | [WalmartMarketplace] Region label, e.g. us. Src: config. | |
| environment | Yes | [WalmartMarketplace] Target environment — production or sandbox. Src: config. | |
| path_params | No | [WalmartMarketplace] Values for {placeholders} in the path, e.g. {"purchaseOrderId": "1796277083022"}. | |
| operation_id | No | [WalmartMarketplace] Operation id as domain:operationId. Resolves method, path, and required headers from the spec. Src: operations. | |
| advertiser_id | Yes | [WalmartMarketplace] Advertiser (seller profile) id to act as. Required — selects the credential. Src: config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| curl | No | ||
| error | No | ||
| cached_at | No | ||
| truncated | No | ||
| status_code | No |