download_file
Download Walmart Marketplace reports, labels, or binary payloads to a local file using a direct URL or API operation reference, with automatic redirect handling and secure credential removal.
Instructions
[WalmartMarketplace] Download a report, label, or other binary payload to a local path. Give a full url, or operation_id (or method and path). Follows redirects and drops credentials when a redirect leaves Walmart's host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | [WalmartMarketplace] Absolute URL to fetch, e.g. a report URL returned by a previous call. | |
| path | No | [WalmartMarketplace] API path when not using url. | |
| method | No | [WalmartMarketplace] HTTP method when using path. | |
| params | No | [WalmartMarketplace] Query string parameters. | |
| region | Yes | [WalmartMarketplace] Region label, e.g. us. Src: config. | |
| dest_path | Yes | [WalmartMarketplace] Local path to write the downloaded bytes to. | |
| environment | Yes | [WalmartMarketplace] Target environment — production or sandbox. Src: config. | |
| path_params | No | [WalmartMarketplace] Values for {placeholders} in path. | |
| operation_id | No | [WalmartMarketplace] Operation id as domain:operationId. Src: operations. | |
| advertiser_id | Yes | [WalmartMarketplace] Advertiser (seller profile) id to act as. Src: config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| urls | No | ||
| error | No | ||
| status_code | No | ||
| content_type | No | ||
| bytes_written | No |