Sending Post-Purchase E-mails on custom platforms

Rivio helps you getting reviews from your customers with Post-Purchase E-mails. A Post-Purchase E-mail is dispatched 10 days after the purchase (by default, can be modified on the dashboard) and asks the customer to write a review about your shop and the product.


Post-Purchase E-mails are one of the most efficient ways to get reviews to your webshop.


Dispatching Post-Purchase E-mails is easy with Rivio. There's an API endpoint which you can call from server-side each time an order is completed, and let Rivio know, that there has been a purchase which should be followed by the email 10 days later.


POST https://api.reev.io/api/postpurchase?api_key=[your-api-key]&secret_key=[your-secret-key]

Post Content-Type: application/json


{  
   "orders":[  
      {  
         "order_id":"1492411012",
         "ordered_date":"2015-09-28T09:16:16-04:00",
         "product_id":"1621557380",
         "product_name":"Example product",
         "product_barcode":"545241324753",
         "product_category":"Smart phone",
         "product_url":"http://test.myshop.com/products/nexus-5",
         "product_image_url":"https://myshop.com/s/files/1/0981/nexus-5.jpg",
         "product_description":"This is the product description",
         "product_brand":"Example brand",
         "product_price":"18.00",
         "customer_email":"example@email.com",
         "customer_first_name":"Joe"
      }
   ]
}

Note, that the orders property is an array, so you can set more than 1 Post-Purchase E-mail in your request.


The response message will be the following:


{  
   "inserted_orders":[  
      {  
         "order_id":"149241e1012",
         "order_date":"2015-09-28T09:16:16-04:00",
         "business_id":"31",
         "first_name":"Joe",
         "email":"example@email.com",
         "product_name":"Example product",
         "shopitem_id":"7386",
         "product_url":"http://test.myshop.com/products/nexus-5",
         "shopitem_variant_id":"10504",
         "price":"18.00",
         "number_of_email_sent":0,
         "number_of_error_sent":0,
         "created_at":"2015-10-18 16:13:16",
         "replied_at":null
      }
   ]
}

Congratulations, you're all set.


Next step is to log into your dashboard, and configure and customize the outgoing email.


Is this article helpful for you?