You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Update Amazon mode to use official data export; fix detail view sort
- Update all Amazon documentation to reflect import from official "Your Orders"
export instead of personal CSV files
- Add step-by-step instructions for requesting Amazon data from Account Settings
- Update format documentation to match official Retail.OrderHistory CSV format
- Fix crash when navigating to detail view with COUNT sort active by resetting to DATE sort
(detail views don't have a count column)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
moneyflow includes a dedicated mode for analyzing Amazon purchase history. This allows you to import, categorize, and explore your Amazon purchases using the same powerful terminal UI.
3
+
moneyflow includes a dedicated mode for analyzing Amazon purchase history using Amazon's official "Your Orders" data export. This allows you to import, categorize, and explore your Amazon purchases using the same powerful terminal UI.
4
4
5
5
## Overview
6
6
7
7
Amazon mode provides:
8
8
9
-
- Import Amazon purchase data from CSV files
10
-
- Automatic deduplication across imports
11
-
- Category normalization and management
9
+
- Import from official Amazon "Your Orders" data export
10
+
- Automatic deduplication and category assignment
12
11
- SQLite storage (local, no cloud dependencies)
13
12
- Same TUI experience as Monarch mode
14
-
- Track quantityand price per item
13
+
- Track quantity, pricing, and order status
15
14
16
15
## Getting Started
17
16
18
-
### 1. Import Your Purchase Data
17
+
### 1. Request Your Amazon Data
18
+
19
+
**IMPORTANT**: You need to request your purchase history from Amazon first.
20
+
21
+
!!! note "How to Request Your Amazon Data"
22
+
1. Log into your Amazon account
23
+
2. Go to **Account Settings** → **Privacy** → **Request My Data**
24
+
3. Select **"Your Orders"** (you don't need all your data)
25
+
4. Submit the request
26
+
5. Wait 1-3 days for Amazon to prepare your data
27
+
6. Download the **Your Orders.zip** file when ready
- Assign categories automatically using Monarch category mappings
28
46
- Detect and skip duplicates
29
-
-Calculate price per item
47
+
-Skip cancelled orders
30
48
- Store everything in SQLite
31
49
32
-
### 2. Check Import Status
50
+
### 3. Check Import Status
33
51
34
52
```bash
35
53
# View database statistics
@@ -43,7 +61,7 @@ This shows:
43
61
- Number of unique items and categories
44
62
- Import history
45
63
46
-
### 3. Launch the UI
64
+
### 4. Launch the UI
47
65
48
66
```bash
49
67
# Open the terminal UI
@@ -54,69 +72,59 @@ Uses the same keyboard-driven interface as Monarch mode.
54
72
55
73
## CSV Format
56
74
57
-
### Personal Format (Currently Supported)
75
+
moneyflow imports from the official Amazon "Your Orders" data export format.
58
76
59
-
Your personal Amazon purchase tracking CSV:
77
+
### Expected Files
60
78
61
-
```csv
62
-
Order Date,Title,Category,Quantity,Item Total,Reimbursed,Year,Regret,Disposed,Sale Price
63
-
01/15/2024,Python Crash Course,Books,1,39.99,,,,,
64
-
01/20/2024,USB-C Cable,Electronics,2,15.99,,,,,
65
-
03/01/2024,Coffee Maker,Kitchen,1,89.99,,,,,
66
-
```
79
+
Files named: `Retail.OrderHistory.*.csv`
67
80
68
-
**Required columns:**
69
-
-`Order Date` - Purchase date (MM/DD/YYYY format)
70
-
-`Title` - Item name/description
71
-
-`Category` - Product category
72
-
-`Quantity` - Number of items (must be > 0)
73
-
-`Item Total` - Total cost (positive number)
81
+
### Expected Columns
74
82
75
-
Additional columns are ignored.
83
+
-**ASIN**: Amazon Standard Identification Number
84
+
-**Order ID**: Amazon order identifier
85
+
-**Order Date**: ISO timestamp (e.g., "2025-10-13T22:08:07Z")
86
+
-**Product Name**: Item description/title
87
+
-**Quantity**: Number of items ordered
88
+
-**Total Owed**: Final amount paid (after tax)
89
+
-**Unit Price**: Item price before tax
90
+
-**Order Status**: "Closed", "New", "Cancelled", etc.
91
+
-**Shipment Status**: "Shipped", "Delivered", etc.
76
92
77
-
### Official Amazon Export (Planned)
93
+
### Category Assignment
78
94
79
-
Support for the official Amazon.com order history export format is planned for a future release. This will include automatic category mapping from Amazon's internal categories to moneyflow categories.
95
+
Categories are automatically assigned using moneyflow's centralized category mappings (same as Monarch mode). You can edit categories in the UI after import.
80
96
81
97
## Features
82
98
83
99
### Automatic Deduplication
84
100
85
-
Transactions are deduplicated based on a fingerprint of:
86
-
- Order date
87
-
- Item title
88
-
- Amount
89
-
- Quantity
101
+
Transactions are deduplicated based on a unique ID generated from:
102
+
- ASIN (or product name hash if ASIN missing)
103
+
- Order ID
90
104
91
-
This means you can safely re-import the same CSV file multiple times - duplicates will be automatically skipped.
105
+
This means you can safely re-import the same directory multiple times - duplicates will be automatically skipped.
92
106
93
107
```bash
94
108
# First import
95
-
moneyflow amazon import purchases.csv
109
+
moneyflow amazon import ~/Downloads/"Your Orders"
96
110
# Output: Imported 100 new transactions
97
111
98
112
# Re-import (safe!)
99
-
moneyflow amazon import purchases.csv
113
+
moneyflow amazon import ~/Downloads/"Your Orders"
100
114
# Output: Skipped 100 duplicates, Imported 0 new transactions
101
115
```
102
116
103
-
### Category Normalization
104
-
105
-
Common category variants are automatically normalized:
106
-
-`BOoks` → `Books`
107
-
-`VIdeo Game` → `Video Game`
108
-
-`Office Products` → `Office Product`
109
-
110
-
This ensures consistent categorization even if your CSV has typos or variants.
117
+
Cancelled orders are automatically skipped during import.
0 commit comments