post https://api.etrusted.com/events
This endpoint creates a new eTrusted event.
NB: In compliance with GDPR, customers should be given the option to opt-in to receive review invitations from you. Therefore, create events using data of only customers who have opted-in.
Sample request payload in JSON (Click to view)
{
"type": "delivery",
"defaultLocale": "de_DE",
"customer": {
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"address": "Anystr. 17, 12345, Anycity, Anystate 12345",
"mobile": "+49123456789",
"reference": "cus-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx"
},
"channel": {
"id": "chl-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"type": "etrusted"
},
"transaction": {
"reference": "order-12345",
"date": "value goes here"
},
"estimatedDeliveryDate": "2017-01-07",
"products": [
{
"gtin": "1234567890123",
"imageUrl": "https://www.specialbrandshop.com/article123-TS-WH-M/image.jpg",
"name": "Specialbrand T-Shirt White M",
"mpn": "23687778",
"sku": "1234-TS-WH-M",
"brand": "specialbrand",
"url": "https://www.specialbrandshop.com/article123-TS-WH-M/"
}
],
"system": "customer_system_name",
"systemVersion": "1.0",
"metadata": {
"metaKey1": "metaValue1",
"metaKey2": "metaValue2"
},
"createdAt": "2018-02-01T17:09:41.790Z"
}