If you are looking to build a customisation or integration to be shown on request tracking page of Return Prime, you will need few data points to build upon. A good example of such use case will be a product recommendation application which can show some products to customers once they are done placing their return or exchange request. This will ensure that the merchants are able to capitalise the untouched real estate they had until now and give them the opportunity to make more revenue by upselling/cross-selling to the customers even in the returns/exchange flow.

We have exposed few of the data points on the page itself to let you access it without any need for additional integration:

Object Name

Key Name

Description

order

id

Shopify order id for which the request was created

order

name

Shopify order number for which the request was created

customer

email

Email address of the customer in the Shopify order

request_type

Type of request raised by customer. Expected values:

return: For return requests
exchange: For exchange requests

returned_product

id

Shopify product id of the item being returned

returned_variant

id

Shopify variant id of the item being returned

exchanged_product

id

Shopify product id of the new item requested by customer in exchange of originally bought product.

Note: This will only be available in case of exchange requests.

exchanged_variant

id

Shopify variant id of the new item requested by customer in exchange of originally bought product.

Note: This will only be available in case of exchange requests.

How can you access this data?

Just use the below code in your global javascript directly to get all the data present on the tracking page:

// Return Prime Tracking Page Data
if(window.location.pathname.includes('return_prime')) {
document.addEventListener("returnprime_tracking", (e) => {
var getData = e.detail;
// Use the getData variable to access all the tracking data available on the page
});
}

Get access to order details on request tracking page of Return Prime

Once you have the data, you can build some amazing things for the merchants. Say, for an example, you can add a product recommendation section for customers on the request tracking page to let them continue shopping. Here is an example showing a similar implementation:

Wonder-Tip: As we say, your imagination is the bar here to build some of the most innovative and interesting things with Return Prime. Do give us a shout out if you need help in building anything with Return Prime


In case, you need any other data to build something amazing, do reach out to us using the Live chat option available on this page.

Did this answer your question?