Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample JSON for Cosmo
{
"user_id": "CUSTOMERID0001",
"custom_traits": "{}",
"email_address": "job@zeppelin.co.uk",
"first_name": "John",
"last_name": "Bonham",
"phone": "1-555-1212",
"company": "LZ Records",
"address":
{
"country": "Canada",
"city": "London",
"region": "Ontario",
"postal": "PLM2N5",
"address": "123 Any Lane"
},
"orders":
[
{
"channel": "Store",
"order_id": "ORDERNUMBER00001",
"currency": "USD",
"fx_rate": 0.7,
"subtotal": 0,
"total": 0,
"revenue": 907.98,
"shipping": 4.22,
"shipping_method": "FE-DEX",
"tax": 17.98,
"discount": 10.00,
"coupon": "COUPON_CODE_0001",
"products":
[
{
"sku": "100008964-9343",
"name": "Big bad drum set",
"price": 895.99,
"quantity": 3,
},
{
"sku": "100008964-32423",
"name": "Drum Sticks",
"price": 12.99,
"quantity": 1,
}
],
"note": "This is a note",
"api_token": "sample-token-01"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment