Questionnaires
Retrieve a questionnaire link
Each questionnaire link points to a specific rendered questionnaire. The link will expire after a set amount of time.
Parameters
Body
Content-Type | Type |
---|---|
application/json | QuestionnaireLinkRequest |
|
Responses
200 - OK
Name | Description |
---|---|
application/json | QuestionnaireLinkResponse |
|
400 - Bad Request
401 - Unauthorized
403 - Forbidden
Models
QuestionnaireLinkRequest
The request parameters for generating a transactional questionnaire link.
Properties
type
string
The type parameter defines the transactional event type.
This parameter is useful to connect a feedback with a specific transaction type (e.g. sales, after-sales, checkout, etc.).
By default the type is link_generation
.
questionnaireTemplate
object
The questionnaireTemplate
property identifies the questionnaire template used to render the actual questionnaire.
Properties
id
string
The id
property is the eTrusted ID of the questionnaire template to use.
There are a host of questionnaire templates to choose from:
Template Description ID
Standard Questionnaire Template Collect service reviews tpl-qst-aabd1dee-2676-4303-995a-1e6762a78b44
Standard Questionnaire Template (COVID-19) Collect service reviews with COVID-19 message tpl-qst-1605077d-f768-422d-8fad-809f93d7a18f
Extended Questionnaire Template Multipage service review template tpl-qst-baaec16a-7fd6-4815-b119-9aadea3cf986
Extended Questionnaire Template (COVID-19) Multipage service review template with COVID-19 message tpl-qst-fc188b0e-5777-4a26-be03-ef186aab9cd1
Standalone Product Review Template Collect just product reviews tpl-qst-a62a58a3-2dbe-4cc0-8be7-d57d1b1a075a
Please visit the help center to see what each template looks like.
customer
object
The customer object includes all data of the customer who is invited to leave a review.
If developers do not want to use the optional properties, they should omit them instead of including empty strings as their values.
Properties
id
string
The ID of the customer who is invited to leave a review.
firstName
string
First name of the customer who is invited to leave a review (e.g. John
).
lastName
string
Last name of the customer who is invited to leave a review (e.g. Doe
).
email
string
Email address of the customer who is invited to leave a review (e.g. john.doe@example.com
). This must be a valid email address.
mobile
string
Mobile telephone number of the customer who is invited to leave a review. The mobile number must have international format including +
and country code. (e.g. +49123456789
).
address
string
Address of the customer who is invited to leave a review (e.g. Anystreet 17, Anycity, Anystate 12345
).
channel
object
A company can interact with their customers through different channels (e.g. online, offline, app, etc.). Those channels can be mapped in eTrusted under the account. The channel object contains the information about the channel associated with the review.
Properties
id
string
The property id
is the unique identifier of the channel associated with the review. Organisations can choose to use the eTrusted ID of the channel or an ID of any external system (e.g. CH-123456
) if eTrusted is properly configured.
type
string
etrusted
: if the organisation chooses to use the eTrusted ID usually has the format chl-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx
.
user_defined
: if the organisation uses an ID that was generated by themselves.
transaction
object
The transaction object defines the transaction for which the customer shall write a review.
If developers do not want to use the optional date
property, they should omit it instead of including an empty strings as its value.
Properties
reference
string
The reference property can contain any reference used by organisations to identify the transaction. This string must be unique (the order or invoice number, e.g. order-12345
).
date
string
The date reference specifies the date at which the event to be reviewed took place. It is a timestamp in the ISO 8601 and RFC3339 compliant format yyyy-MM-dd’T’HH:mm:ss.SSSZ
. Check the glossary for examples of valid datetime formats.
products
object[]
This is a list of products.
It contains the products that are associated with the event.
It includes all data needed for product reviews for these products.
NB: The products property is required in case the questionnaireTemplate
property is set to the id of the Standalone Product Review Template
.
If the product property is filled out for any of the other four questionnaireTemplate
above, the product reviews page will be added to the generated questionnaire.
metadata
object
This object can be used to add information (besides what eTrusted provides by default) about the customer, event or anything else, e.g. for analysis purposes.
system
string
The system
property identifies the system that issued the questionnaire link API call (e.g. “salesforce”, “sap”, etc.).
systemVersion
string
The systemVersion
property identifies the version of the source system (e.g. “1.0”).
This offers organisations the option to use different versions of the same integration without putting this information into the system name.
The type parameter defines the transactional event type.
This parameter is useful to connect a feedback with a specific transaction type (e.g. sales, after-sales, checkout, etc.).
By default the type is link_generation
.
The questionnaireTemplate
property identifies the questionnaire template used to render the actual questionnaire.
The id
property is the eTrusted ID of the questionnaire template to use.
There are a host of questionnaire templates to choose from:
Template | Description | ID |
---|---|---|
Standard Questionnaire Template | Collect service reviews | tpl-qst-aabd1dee-2676-4303-995a-1e6762a78b44 |
Standard Questionnaire Template (COVID-19) | Collect service reviews with COVID-19 message | tpl-qst-1605077d-f768-422d-8fad-809f93d7a18f |
Extended Questionnaire Template | Multipage service review template | tpl-qst-baaec16a-7fd6-4815-b119-9aadea3cf986 |
Extended Questionnaire Template (COVID-19) | Multipage service review template with COVID-19 message | tpl-qst-fc188b0e-5777-4a26-be03-ef186aab9cd1 |
Standalone Product Review Template | Collect just product reviews | tpl-qst-a62a58a3-2dbe-4cc0-8be7-d57d1b1a075a |
Please visit the help center to see what each template looks like.
The customer object includes all data of the customer who is invited to leave a review.
If developers do not want to use the optional properties, they should omit them instead of including empty strings as their values.
The ID of the customer who is invited to leave a review.
First name of the customer who is invited to leave a review (e.g. John
).
Last name of the customer who is invited to leave a review (e.g. Doe
).
Email address of the customer who is invited to leave a review (e.g. john.doe@example.com
). This must be a valid email address.
Mobile telephone number of the customer who is invited to leave a review. The mobile number must have international format including +
and country code. (e.g. +49123456789
).
Address of the customer who is invited to leave a review (e.g. Anystreet 17, Anycity, Anystate 12345
).
A company can interact with their customers through different channels (e.g. online, offline, app, etc.). Those channels can be mapped in eTrusted under the account. The channel object contains the information about the channel associated with the review.
The property id
is the unique identifier of the channel associated with the review. Organisations can choose to use the eTrusted ID of the channel or an ID of any external system (e.g. CH-123456
) if eTrusted is properly configured.
etrusted
: if the organisation chooses to use the eTrusted ID usually has the format chl-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx
.
user_defined
: if the organisation uses an ID that was generated by themselves.
The transaction object defines the transaction for which the customer shall write a review.
If developers do not want to use the optional date
property, they should omit it instead of including an empty strings as its value.
The reference property can contain any reference used by organisations to identify the transaction. This string must be unique (the order or invoice number, e.g. order-12345
).
The date reference specifies the date at which the event to be reviewed took place. It is a timestamp in the ISO 8601 and RFC3339 compliant format yyyy-MM-dd’T’HH:mm:ss.SSSZ
. Check the glossary for examples of valid datetime formats.
This is a list of products.
It contains the products that are associated with the event.
It includes all data needed for product reviews for these products.
NB: The products property is required in case the questionnaireTemplate
property is set to the id of the Standalone Product Review Template
.
If the product property is filled out for any of the other four questionnaireTemplate
above, the product reviews page will be added to the generated questionnaire.
This object can be used to add information (besides what eTrusted provides by default) about the customer, event or anything else, e.g. for analysis purposes.
The system
property identifies the system that issued the questionnaire link API call (e.g. “salesforce”, “sap”, etc.).
The systemVersion
property identifies the version of the source system (e.g. “1.0”).
This offers organisations the option to use different versions of the same integration without putting this information into the system name.
QuestionnaireLinkResponse
Properties
id
string
The property id
identifies the actual questionnaire which was rendered (e.g. qre-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx
).
link
string
This is a link to the questionnaire which can be provided to the customer via the channel the organisation chooses (e.g., SMS, email, etc.).
The link is shortened automatically so that it can also be used for channels with space limitations (e.g. SMS).
token
string
The questionnaireToken
is the jwt token of the questionnaire which was rendered.
eTrusted uses the compact serialisation format as defined in JSON Web Signature (JWS) standard rfc7515, like "head.payload.signature".
The property id
identifies the actual questionnaire which was rendered (e.g. qre-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx
).
This is a link to the questionnaire which can be provided to the customer via the channel the organisation chooses (e.g., SMS, email, etc.). The link is shortened automatically so that it can also be used for channels with space limitations (e.g. SMS).
The questionnaireToken
is the jwt token of the questionnaire which was rendered.
eTrusted uses the compact serialisation format as defined in JSON Web Signature (JWS) standard rfc7515, like "head.payload.signature".
Need further support?
Visit the Help Centre for further information, or contact us. Are some words or terms unfamiliar? Then visit the glossary for clarification.