API Data Exchange Service
Jasani is offering an API service to use our product data within your own ecommerce and IT solutions.
In order to access this API service, you will need reseller authorization as well as a unique token to start using the API service. To request your token, kindly contact us.
With the API’s, you’ll be able to do the following:
Product API
You will make a GET request to www.jasani.ae/products/all/<token> or any of our other websites simply by replacing "jasani.ae" in the URL with the correct website address you would like to access.
You will receive an XML object containing following fields:
field_name |
type |
description |
id |
integer |
Unique identifier integer for a specific product |
name |
text |
Full Name of the Product, as it appears on our website |
default_code |
char |
Product Code as it appears on our website |
description_sale |
text |
This is a long text field containing the description of the product as it appears on our website |
public_categ_ids |
Many2Many |
This is a Many2Many field containing an array of category ids and category names that the product belongs to. Category name is the important value to extract here from the array of variable length. Most products belong to 1-5 categories in general, however there is not a fixed number. |
product_template_attribute_value_ids |
Many2Many |
This
will return the array of product attributes, applicable for Garments only.
The return array could look like this: |
image_url |
char |
Contains the URL of the primary product image |
product_variant_image_ids |
One2Many |
Contains an array of secondary image URL's, applicable only for garments. For all other products, will return NULL. |
images |
One2Many |
Contains an array of additional secondary image URL’s |
Price API
You will make a GET request to www.jasani.ae/products/price/<token>
field_name |
type |
description |
id |
integer |
Unique identifier integer of the product in database |
default_code |
text |
Jasani Product Code |
currency |
char |
Your currency |
product_price |
float |
Your price |
Stock API
You will make a GET request to www.jasani.ae/products/stock/<token>
field_name |
type |
description |
|
|
|
default_code |
text |
Product Code |
Quant_available |
float |
This is the quant_available field
As this is a float field natively in our system, you can convert it to an integer field before storing the value on your system |
Test Connection API
As our primary API's have rate limiters in place, we have a test website built specifically to allow you to test your API connections and data download before you start. The test website is https://api-test.jasani.ae. All integration and test code works in the exact same way as above.
Error Handling
You will receive a 403 Forbidden Error response in following situations:
1. Incorrect token or URL structure
2. If you exceed daily limit of 5 API calls. Day is measured as per UAE timezone