post https://api.etrusted.com/invites
This endpoint allows for the scheduling of new review invites into
eTrusted system.
NB: In compliance with GDPR, customers should be given the option to opt-in to receive review invitations from you. Therefore, schedule invites using data of only customers who have opted-in.
Sample request payload in JSON (Click to view)
{
"totalElements": 95,
"paging": {
"count": 10,
"cursor": {
"after": "inv-xxxxxxxb-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"before": "inv-xxxxxxxa-yyyy-xxxx-yyyy-xxxxxxxxxxxx"
},
"links": {
"previous": "https://api.etrusted.com/channels/channelId/invites?count=10&before=inv-xxxxxxxa-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"next": "https://api.etrusted.com/channels/channelId/invites?count=10&after=inv-xxxxxxxb-yyyy-xxxx-yyyy-xxxxxxxxxxxx"
}
},
"items": [
{
"id": "inv-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"_object": "Invite",
"mode": "AUTOMATIC",
"reviewType": "SERVICE_REVIEW",
"accountRef": "acc-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"channelRef": "chl-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"locale": "en_GB",
"platform": "GOOGLE",
"customer": {
"id": "cst-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"phoneNumber": 442071838750,
"preferredLocale": "en_GB",
"consents": [
{
"purpose": "DATA_FORWARDING",
"given": false
}
]
},
"inviteSource": "TRUSTBADGE",
"transaction": {
"id": "txn-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"reference": "ORDER-12792",
"date": "2018-01-04T12:09:50.722Z"
},
"scheduledAt": "2018-01-04T12:09:50.722Z",
"estimatedDeliveryDate": "2017-01-07",
"template": {
"id": "qrt-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"name": "After Sales Standard EN"
},
"sender": {
"name": "eTrusted",
"email": "[email protected]"
},
"replyTo": {
"name": "eTrusted",
"email": "[email protected]"
},
"event": "evt-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"createdAt": "2018-02-01T17:09:41.790Z",
"updatedAt": "2018-02-01T17:09:41.790Z",
"sentAt": "2018-02-01T17:09:41.790Z",
"status": {
"name": "REJECTED",
"reason": "INVALID_RECIPIENT_EMAIL"
}
}
]
}