This endpoint allows you to post any type of valid JSON to Emma. In order for an event to power an automated workflow, the following conditions must be met:
Sample Request
[showhide]
POST /events.e2ma.net/v1/100/events/
{
“event_name”: “order-completed”
"id": 1028374857,
"email": “cody.devos@myemma.com”,
"closed_at": null,
"created_at": "2016-04-12T11:00:00-09:00",
"total_price": “145.53”,
"total_discounts": “14.70",
"order_number": 1001,
"discount_codes": [
{
"code": “TEN16”,
"amount": “10.00",
"type": "percentage"
}
],
"line_items": [
{
"id": 998327818,
"variant_id": 59284621,
"title": “Slim Short Sleeve Linen Shirt”,
"quantity": 1,
"price": “68.00",
"sku": “SLSSLNSHRT”,
"variant_title": “white”,
“size”: medium,
"product_id": 632910392,
"requires_shipping": true,
"taxable": true,
"gift_card": false,
"name": “Slim Short Sleeve Linen Shirt - White“,
],
"tax_lines": [
{
"title": "State Tax",
"price": “6.12”,
"rate": 0.09
}
{
"id": 789327523,
"variant_id": 89137513,
"title": “Slim Mens Chino”,
"quantity": 1,
"price": “79.00",
"sku": “SLMNCHNO”,
"variant_title": “green”,
“size”: 32W32L,
"product_id": 948517351,
"requires_shipping": true,
"taxable": true,
"gift_card": false,
"name": “Slim Short Sleeve Linen Shirt - White“,
],
"tax_lines": [
{
"title": "State Tax",
"price": “7.11”,
"rate": 0.09
}
]
},
"shipping_lines": [
{
"id": 0928273492,
"title": "Free Shipping",
"price": "0.00",
"code": "Free Shipping",
"source": "shopify",
"phone": null,
"carrier_identifier": null,
"tax_lines": [
]
}
],