Skip to content

Instantly share code, notes, and snippets.

@d2kagw
Last active September 20, 2023 01:02
Show Gist options
  • Save d2kagw/14daa3502e928cad958d5bba153acb48 to your computer and use it in GitHub Desktop.
Save d2kagw/14daa3502e928cad958d5bba153acb48 to your computer and use it in GitHub Desktop.
batch_commerce_purchases.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{ "link": { "email": "jane@fake.com" }, "action_at": "2023-03-06T12:26:47Z", "purchase_id": "53059a...", "store": { "store_id": "40bf96...", "type": "physical", "name": "St Kilda Outlet", "location": { "name": "St Kilda", "coordinates": { "latitude": 86.3128, "longitude": -77.920063 } } }, "type": "ecommerce", "currency": "USD", "payment_types": [ { "name": "visa", "total": 100 } ], "adjustments": [ { "price_adjustment": -50, "adjusted_at": "2023-03-06T12:26:47Z", "reason": "gift card" } ], "products": [ { "product_reference": { "id": "7ede97...", "id_type": "product_id", "dataset_id": "0e2187..." }, "price_paid": 90, "quantity": 2, "full_price": 50, "discount": 10 }, { "product_reference": { "id": "8gf983...", "id_type": "product_id", "dataset_id": "0e2187..." }, "price_paid": 10.00, "quantity": 2, "full_price": 10 } ], "custom_fields": { "is_gift": true, "gift_message": "Happy Birthday Kevin!" } }
{ "link": { "email": "jane@fake.com" }, "action_at": "2023-03-06T12:26:47Z", "purchase_id": "34kok12...", "type": "ecommerce", "products": [ { "price_paid": 9.95, "quantity": 2 } ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment