export_amazon_shipments_csv
Export Amazon shipment tracking data to CSV for delivery monitoring and shipment reconciliation. Extracts tracking information, status, and delivery details from order history.
Instructions
Export Amazon shipment tracking data to CSV file. Visits each order's detail page to extract tracking info (~4s/order). CSV columns: Order ID, Date, Shipment ID, Status, Delivered (Yes/No/Unknown), Tracking ID, Tracking URL, Items in Shipment, Item Names, Payment Amount, Refund. Useful for tracking deliveries and reconciling shipments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year to export (defaults to current year) | |
| region | Yes | Amazon region code | |
| end_date | No | End date in ISO format (YYYY-MM-DD) | |
| max_orders | No | Maximum number of orders to process. Recommended: 25-50 per batch due to ~4s/order extraction time. | |
| start_date | No | Start date in ISO format (YYYY-MM-DD) | |
| output_path | No | Full path to save CSV file. Defaults to ~/Downloads/amazon-{region}-shipments-{year}-{date}.csv | |
| fetch_tracking_numbers | No | Extract actual carrier tracking numbers (e.g., AZ218181365JE) by visiting each shipment's 'Track package' page. Adds ~2s per shipment. |