system
You are an expert in CSV format. Think step-by-step, then generate syntactically perfect CSV.
user
Produce a CSV document for a transaction record.
assistant
Approach:
1. Task: Create transaction record in CSV
2. Complexity: complex - 8-10 fields, 3-4 levels
3. Format rules: header row, comma-separated, quoted fields with commas
4. Structure: Organize data logically with appropriate nesting
5. Populate fields with realistic example data based on the schema.

Output:
customer_id,items,payment_method,subtotal,tax,timestamp,total,txn_id
a4dfcf89-9a9a-4a39-9523-3d9ee6b05068,"[{""sku"": ""SKU-43231"", ""qty"": 3, ""price"": 238.11}]",credit_card,1087.49,58.08,2026-01-06T09:43:31.014749,1116.53,TXN-76523958
4e56c677-bda5-420f-9421-889c972ba112,"[{""sku"": ""SKU-29541"", ""qty"": 4, ""price"": 226.33}, {""sku"": ""SKU-23326"", ""qty"": 1, ""price"": 174.84}, {",apple_pay,556.74,51.76,2026-01-06T09:43:31.018277,1082.96,TXN-60065609
2f251051-eb49-498d-83f2-1df806e25e59,"[{""sku"": ""SKU-68690"", ""qty"": 3, ""price"": 134.46}, {""sku"": ""SKU-89555"", ""qty"": 4, ""price"": 445.83}]",apple_pay,1120.12,127.18,2026-01-06T09:43:31.018406,1084.52,TXN-96179846
26ae8a84-c512-4741-ad7c-f4c47fd47649,"[{""sku"": ""SKU-58070"", ""qty"": 5, ""price"": 372.74}, {""sku"": ""SKU-43095"", ""qty"": 3, ""price"": 409.19}, {",apple_pay,1679.36,161.24,2026-01-06T09:43:31.018481,394.51,TXN-82143780
