Data Sharing Becomes Easier With KartRocket API
Now, you can easily share your customer information, list of most viewed products and customer reward points to any other platform using an easy KartRocket API integration.
API or Application Program Interface is an interface between different software programs which helps them to interact. In other terms, API is used to communicate and facilitate data transfer from one service to another.
As per the context of KartRocket, if you want to share any of your store’s data to any other platform without revealing your store credentials, then API is the best way to do that. This way, you just share a specific part of your store’s data, without compromising with its privacy. And this data will be updated automatically.
What I Will Need To Get API?
This work only for KartRocket admin version 2. So, you need to switch to version 2 before getting started. Once, you are in Version 2, you will need the following:
• KartRocket Sub Domain
For example, if your store has a domain name “www.mystore.com,” then your kartrocket subdomain will be “mystore.kartrocket.co.”
• Web API key
To get web API key of your store, then follow these steps:
1) Login to your KartRocket store.
2) Click on Setting and then on Web API
3) You will see API key. Copy it.
• API Endpoint
This is the remote procedure call (RPC) service that provides remote methods accessible to external clients
API to “Get Customer Information”
With “Get Customer” API, you can share your customers’ details through an API. To request this API, follow these steps.
1) Send an HTTP GET request to the following URL
mystore.kartrocket.co.’index.php?route=feed/web_api/customers&version=2&key=’.web_api_key.’
2) You will get the following response. In this, the developer can fetch all your customer details like name, phone number, address, etc.
API for Most Viewed Product
With this API, you can easily show the most viewed product of your store on any other platform or website. To do this, you need to send a request on the following URL
mystore.kartrocket.co/index.php?route=feed/web_api/mostviewedproducts&key=web_api_key
Once, you send this, you will get details which will be shown as below. In this, you will get the product detail and number of views it got.
API For Customer Reward Points
Now, you can share your customer’s reward point to any platform using the following URL
mystore.kartrocket.co/index.phproute=feed/web_api/orders&key=web_api_keye4c22&version=2&order_id=number
After you hit enter, you will get the following response.
Please note:
In all these URLs,
• mystore stands for your KartRocket store sub domain
• Web_api_key stands for your store’s API key which will you get, as discussed above.
• Number stands for the order ID for which you want to share the reward points.
To debug these responses and make it readable, you can copy this response, go to Jsonformatter and paste it. Hit Enter and it will format the data so that you can easily read it.
