Netmera Developer Guide
Ask or search…
K
Comment on page

REST API Events

Fire Event

To fire an event with custom attributes add required parameter extId and post it to the following URL. Note that you can set optional and required event parameters from panel.
curl -X POST \
-H "X-netmera-api-key: your_rest_api_key" \
-H "Content-Type: application/json" \
-d '[
{
"extId" : "id_in_my_system_1",
"name": "ShareEvent",
"itemId": "4234",
"channel": "Facebook"
}
]' \
https://restapi.netmera.com/rest/3.0/fireEvents

Cancel Order Event

Cancel Order Event is fired when user cancels an order
curl -X POST \
-H "X-netmera-api-key: your_rest_api_key" \
-H "Content-Type: application/json" \
-d '[
{
"extId" : "id_in_my_system_1",
"name": "OrderCancelEvent",
"paymentMethod": "Some string",
"subTotal": 20.0,
"itemCount": 4,
"grandTotal": 35.0
}
]' \
https://restapi.netmera.com/rest/3.0/fireEvents