As an Avis Vérifiés customer, you have the possibility to survey your consumers by integrating a voluntary review submission form on your site.
This article explains the procedure for integrating a voluntary review submission form allowing the consumer to submit:
-
a review on one or more products;
-
a brand review (depending on the configuration).
Prerequisites
Having a customer account with Avis Vérifiés.
Procedure
Step 1: Form Generation
Operating Principle
By calling the API with GET parameters as described below, the user will be redirected to the form displaying the product(s) of the request and the brand part if desired.
API Access URL
The URL to use depends on the country where your account exists. Here is a non-exhaustive list, please contact your account manager if a country does not appear. This URL is described by [URL] in the examples below.
-
- France: https://avis2.avis-verifies.com
- Italy: https://recensioni2.recensioni-verificate.com
- Spain: https://opiniones2.opiniones-verificadas.com
- United States: https://reviews2.verified-reviews.com
- Portugal: https://opinioes2.opinioes-verificadas.com
- Brazil: https://opinioes2.opinioes-verificadas.com.br
- Germany: https://echte2.echte-bewertungen.com
- ...
Main Fields
Here are the fields related to the consumer experience:
Parameter | Description/Variable | Required |
Type | Always type=iframe | yes |
Token | Allows to secure the call via your secret key | Yes |
idWebsite | Identifier of your account | Yes |
lastname | Consumer Name | Yes |
firstname | Consumer first name | Yes |
Consumer email | Yes | |
request_products_only |
"false" : displays the brand and product review part "true" : displays only the product review part Important : "true" or "false" must be in string format, not boolean. |
no, default is 'false'.
|
Here are the fields related to the product.
You can display a form with one or more products. To do this, you need to group the information of each product using an array as shown below. The [x] is to be replaced by 0 for the 1st product, 1 for the 2nd product, and so on…
Parameter | Description | Required |
products[x] | Information of the product placed in [x] position (starts from 0, maximum 4) | yes |
id_product[x] | Unique identifier of product [x] | yes |
name_product[x] | Name of product [x] | yes |
brand_name[x] | Brand of product [x] | no |
gtin_ean[x] |
Barcode of product [x] | no |
url_image_product[x] | URL of product image [x] | no |
url_product [x] | URL of product page [x] | no |
&idWebsite=8f4gds92-6be9-cc84-f18e-1498dsf701be2
&token=791fa62b2a72aabaeab4af9f434c86af2017e73f
&lastname=dupont
&firstname=charles
&email=charles@avis-verifies.com
&request_products_only=true
&products[0][id_product]=00-0000063459
&products[0][name_product]=Mountain Trainer Mid GORE-TEX® Chaussures Femme 0674 - 39
&products[0][url_image_product]=https://cdn1.mywebsite.com/media/image/0c/cd/aa/f16710fa-eebc-41d8-b681-5b7fbd5681.jpg
&products[0][url_product]=https://www.mywebsite.com/fr-fr/mountain-trainer-mid-gore-tex-chaussures-femme-00-0000063459
&products[0][brand_name]=MyBrand
&products[0][gtin_ean]=9002000004980
Step 2: Token Generation
The token is a concatenation in SHA1 of the fields idWebsite, secretKey, and product identifiers, as follows:
token | SHA1(idWebsite + secretKey + concatenation without separator of 'id_product') |
Precision: the + denotes concatenation, they should not be added in the calculation.
Making a request with one product
The generated URL must have encoding (url_encode) on special fields such as closing bracket, opening bracket, space, semicolon, etc.
If the parameters are correct, an order with the data passed as parameters will be recorded, and you will be redirected to the form with its unique identifier. If the same parameters are passed again, no order will be recorded but you will be redirected to the already generated form.
&idWebsite=8f461c92-6be9-cc84-f18e-14986d70f1be2
&token=791fa62b2a72aabaeab4af9f434c86af2017e73f
&lastname=dupont
&firstname=charles
&email=charlesi%40avis-verifies.com
&request_products_only=true
&products%5B0%5D%5Bid_product%5D=00-0000063459
&products%5B0%5D%5Bname_product%5D=Mountain+Trainer+Mid+GORE-TEX®+Chaussures+Femme+0674+-+39
&products%5B0%5D%5Burl_image_product%5D=https://cdn1.mywebsite.com/media/image/0c/cd/aa/f16710fa-eebc-41d8-b681-5b7fbd5681.jpg
&products%5B0%5D%5Burl_product%5D=https://www.mywebsite.com/fr-fr/mountain-trainer-mid-gore-tex-chaussures-femme-00-0000063459
&products%5B0%5D%5Bbrand_name%5D=MyBrand
&products%5B0%5D%5Bgtin_ean%5D=9002000004980
Making a request with multiple products
If the parameters are correct, an order with the data passed as parameters will be recorded, and you will be redirected to the form with its unique identifier. If the same parameters are passed again, no order will be recorded but you will be redirected to the already generated form.
&idWebsite=8f461c92-6be9-cc84-f18e-14986d701be2
&token=eb793f440b5567b17bfdd22699b1bce2518573aa
&lastname=dupont
&firstname=charles
&email=charles%40avis-verifies.com
&request_products_only=true
&products%5B0%5D%5Bid_product%5D=00-0000063459
&products%5B0%5D%5Bname_product%5D=Mountain+Trainer+Mid+GORE-TEX®+Chaussures+Femme+0674+-+39
&products%5B0%5D%5Burl_image_product%5D=https://cdn1.mywebsite.com/media/image/0c/cd/aa/f16710fa-eebc-41d8-b681-5b7fbd568149_.jpg
&products%5B0%5D%5Burl_product%5D=https://www.mywebsite.com/fr-fr/mountain-trainer-mid-gore-tex-chaussures-femme-00-0000063459
&products%5B0%5D%5Bbrand_name%5D=MyBrand
&products%5B0%5D%5Bgtin_ean%5D=9002000004980-8
&products%5B1%5D%5Bid_product%5D=00-0000063457
&products%5B1%5D%5Bname_product%5D=Mountain+Trainer+Mid+GORE-TEX®+Chaussures+Femme+0674+-+39
&products%5B1%5D%5Burl_image_product%5D=https://cdn1.mywebsite.com/media/image/0c/cd/aa/f16710fa-eebc-41d8-b681-5b7fbd568149.
⚠️ Attention, the token must contain the concatenation of all product identifiers id_product as follows: sha1(idwebsiteSecretKey00-000006345900-0000063457)
so the token will be: eb793f440b5567b17bfdd22699b1bce2518573aa