call_endpoint
Execute authenticated Walmart Connect Ads API requests by operation ID or raw method and path; the server adds signing and auth headers, enabling endpoint calls without manual setup.
Instructions
[Walmart] Execute an authenticated API request. Identify the endpoint by operation_id, or by method + path with an api — a raw path also reaches alpha/beta/unpublished endpoints absent from the bundled specs. Auth, signature, market, and correlation headers are added by the server. A body over the configured threshold is truncated to a preview; read the returned cached_at resource for the whole of it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | Api to call, e.g. walmart:marketplace:order-management. Required with raw method+path; otherwise inferred from operation_id. Src: platforms. | |
| body | No | JSON request body for POST/PUT/PATCH — an object, or an array of objects where the API takes a batch. | |
| path | No | API path after the base URL, e.g. /v3/orders or /api/v1/campaigns. Required unless operation_id is given. | |
| method | No | HTTP method. Required unless operation_id is given. | |
| params | No | Query string parameters as a JSON object. | |
| region | Yes | Region label, e.g. us. Src: platforms. | |
| tenant | No | WAP tenant for non-US walmart:ads regions, e.g. WMT_CA, WMT_MX, WBD_OD. Omit for US and for walmart:marketplace. Sent as wap-tenant-id. | |
| file_path | No | Local file to send as multipart/form-data instead of a JSON body — Marketplace feed uploads. Pair with the feedType query parameter. | |
| environment | Yes | Target environment. walmart:marketplace accepts production or sandbox; the ads platforms accept whatever the config declares, usually production or staging. Src: platforms. | |
| path_params | No | Values for {placeholders} in the path, e.g. {"purchaseOrderId": "1796277083022"}. | |
| operation_id | No | Operation id, qualified as api:operationId (e.g. walmart:ads:sponsored-products:SBAProfileUpdateV2) or bare when unambiguous. Resolves the api, platform, method, path, and required headers. Src: operations. | |
| advertiser_id | No | Required on walmart:marketplace, where it selects the credential to act as. On the ads platforms it is optional and sent as X-Advertiser-ID, which many display/creative/campaign endpoints require. Src: platforms. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| curl | No | ||
| error | No | ||
| cached_at | No | ||
| truncated | No | ||
| status_code | No |