v1
latestOpenAPI 3.0.12026-07-243266138.0 KBEndpoints
Get an event
This endpoint retrieves an eTrusted event by its ID.
It can be used to check if your events has been created correctly after a POST request.
get/events/{eventRef}
Path parameters
eventRefstring required
This is the event ID in eTrusted UUIDformat as a reference. Event references are included in the response when you create an event via POST request.
Headers
Authorizationstring required
An OAuth2 authorization header with an access token, see OAuth2
Response
The event with the ID that equals eventRef.
Example response
{
"id": "evt-eacef7fe-5176-47b5-877d-b90a53a1cc68",
"accountRef": "acc-863c9d8d-1108-4591-868d-5e0aaad26cf4",
"type": "delivery",
"defaultLocale": "de_DE",
"customer": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"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"
},
"tracking": {
"client": "PUBLIC_EVENTS_API",
"medium": "API"
},
"transaction": {
"reference": "order-12345"
},
"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"
}