Storeino API provides new enhancement, performance improvements and new features for clients. This document provides detailed API information. It is recommended to to read it completely before implementing the integrations to any system
Storeino provides API end points for both Development and Production systems. For initial development and testing please use the development API end point.
Storeino API requires the following two headers.
| Header | Possible Value | Description |
|---|---|---|
| Accept | application/json | To get response in JSON format, this header should be passed with request with value application/json |
| X-auth-token | String | Token your company get it after register |
we send to your end point creation order this data format JSON
{ RECEIVER : 'BADR AGRIR', //full name SELLERID : 2343, //seller ID in your company PHONE : '06xx-xx-xx-xx', //phone number string CITY : 'city of custemer', //string COUNTRY:'USA', //contry of custemer String //You can find product field only if you have warehousing service PRODUCTS:[ { product:{ _id:'23412' //id of product in your plateform }, quantity:4, unitPrice:34 }, {...}, ], ADDRESS : 'new yourk 1109 road 02', //address of custemer string TOTAL_PRICE : 15, //total price integer SERVICE:'CASH IN DELIVERY', // string SOURCE : 'STOREINO' };
success format accepted
{ status:200 data:{ orderRef:23234, //ID order in yourn plateform } };
Error format accepted
{ status:400 data:{ error:'phone number not valid' } };
We send to your end point creation Product this data format JSON
{ name : 'phone', //title the product picture:'https/image.xx/', //url of the product description : 'new product', //description of the product source: 'STOREINO', sellerId:'', //id the seller in your company price: 15, quantity: 122, //quantity in stock };
success format accepted
{ status:200 data:{ productRef:23234, //ID product in your plateform sellerId:233 //ID seller in your plateform } };
Error format accepted
{ status:400 data:{ error:'title not valid' } };
body format accepted
https://api-shippings.storeino.com/api/BASE-URL/companies/changeStatus?source=NAME-COMPANY
<!-- headers above is necessary -->
{
orderId : 423, //ID order in your database
status:'', //new status
note:'delivered 12:12 AM'
};
success result
{ status:200, { data: 'status changed' } };
body format accepted
BASE-URL/companies/login?source=NAME-COMPANY
{ email : 'email@xxx.com', password:'......', source:'STOREINO' };
success result
{ status:200, data:{ sellerId: '423' //ID seller in your database } };
Error format accepted
{ status:400 data:{ error:'EX email or password is invalid' } };
body format accepted
BASE-URL/companies/register?source=NAME-COMPANY
{ fullName:'' email : 'email@xxx.com', password:'......', numberPhone:'', source:'STOREINO' };
success result
{ status:200, data:{ sellerId: '423' //ID seller in your database } };
Error format accepted
{ status:400 data:{ error:'EX' } };
body format accepted
BASE-URL/companies/validation?source=NAME-COMPANY
<!-- headers above is necessary -->
{
sellerId : 423, //ID Seller in your database
confirmed:true,
};
success result
{ status:200, data:{ connected: true } };