ZoodMall Local Merchant API 1.2.0-En
ZoodMall Local Merchant API 1.2.0-En
CONTENTS
ZoodMall Local Merchant API .......................................................................................................... 1
1 Calls Specification ........................................................................................................................ 3
1.1 Request URL ........................................................................................................................ 3
1.2 HTTP Request Method ................................................................................................... 4
1.3 Request Description ........................................................................................................ 4
1 Calls Specification
1.1 Request URL
Production environment:https://open.zoodmall.com/rpc.php
Test environment:https://staging-main-open.zoodmall.com/rpc.php
Set default shipping fee and default delivery time in back office for each market
before uploading products
C. Response Parameter
4
API version:v1.1.0
D. Parameters Description
Find instructions for PHP and Python below:
https://github.com/subutux/json-rpc2php/
Response:
HTTP/1.1 200 OK
Date: Wed, 17 Jan 2018 10:20:09 GMT
Server: Apache
X-Powered-By: PHP/5.4.35
Set-Cookie: PHPSESSID=87lu9nt6ui9rpftmh2qccj8mt3; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
5
API version:v1.2.0
Pragma: no-cache
x-RPC-Auth-Session: 87lu9nt6ui9rpftmh2qccj8mt3
Content-Length: 1974
Content-Type: application/json
{"jsonrpc":"2.0","id":"7SItvCfdXnWWiQzF","result":{"products":[],"pagination":{"
page":1,"rowsPerPage":10,"totalCount":"0"}}
6
API version:v1.1.0
"sproperty":[
{
"name":" specification name of product[string(50)]",
"value":" specification value of product[string(50)]"
},
...
{
"name":" specification name of product[string(50)]",
"value":" specification value of product[string(50)]"
}
],
"brand": "Brand Name[string(200)]",
"shippingFee": "shipping cost to local market[dobule (10,2)]",
"description": "description of product[string(4000)]",
"productHeight": "package heighth (mm)[int(10)]",
"productLength": "package length (mm) [int(10)]",
"productWidth": "package width (mm) [int(10)]",
"productWeight": "package weight(g)[dobule(12,4)]",
"tags": "product tags (separated by ||) [string(200)]",
"crossedPrice": "MSRP(Manufacturer Suggested Retail Price)[double(10,2)]",
"sizeGuideUrl":"picture of size guide [string(1000)]"
}
]]
Requestmaximum (Add, update)10 products each time.
Example:
[
[{
"spu": "290301_01",
"name": "29March",
8
API version:v1.1.0
"defaultPrice": "25.00",
"picture": [
"http://res.cloudinary.com/demo/basketball_shot.jpg"
],
"categoryId":"561,abc,123",
"property": [
{
"sku": "270301__02_1",
"size": "M_S",
"color":"&Pink#Blue#White",
"price": "12.00",
"crossedPrice":"30.00",
"quantity":1
},
{
"sku": "270301__02_2",
"size": "S_L",
"color":"&Pink#Blue#White",
"price": "21.00",
"crossedPrice":"30.00",
"quantity":1
}
],
"sproperty": [
{
"name": "TYPE",
"value": "IMPRINT"
}
],
"brand": "Vintage Adidas",
9
API version:v1.2.0
"shippingFee": "15.00",
"description": "Description_Text",
"productHeight": "5.7",
"productLength": "5.7",
"productWidth": "32",
"productWeight": "56",
"tags": "Tank||Oil Cup||Clutch Tank||Fluid Cup||Motorcycle Accessories||Oil Fluid Cu
p||Repair Tool||Gadget||Motorcycle Clutch||Unoversal",
"crossedPrice": "30.00",
"sizeGuideUrl":"https://cdn.shopify.com/s/files/1/1380/3157/files/168293_origin
al_1-2_2048x2048.png"
}
]]
2.4 Descr
If the SKU already exists in ZoodMall database,the product will be updated.
If the SKU does not exist, the product will be added.
10
API version:v1.1.0
2.4.1 categoryId
CategoryId Category
1 Women’s Clothing
2 Men’s Clothing
3 Phones & Accessories
4 Computer & Office
5 Consumer Electronics
6 Jewelry & Accessories
7 Home & Garden
8 Luggage & Bags
9 Toys & Hobbies
10 Sports & Entertainment
11 Beauty & Health
12 Automobiles & Motorcycles
13 Home Improvement
14 Food
15 Handicraft
2028 Hair Extensions & Wigs
2337 Furniture
2383 Education & Office Supplies
3091 Weddings & Events
3214 Security & Protection
3266 Home Appliances
3467 Watches
3664 Shoes
4006 Mother & Kids
4148 Apparel Accessories
4247 Electronic Components & Supplies
4417 Lights & Lighting
11
API version:v1.2.0
CategoryId Category
4523 Novelty & Special Use
4562 Tools
4709 Underwear & Sleepwears
Attention: Above table only lists main categories, products category should be
based on the specific category list that we provide, not above table.
The correct category list can be found in the import products template, which can
be downloaded at the Seller Back Office.
To define the category of products, please make sure that the category is the
deepest category of this product. For example, MP3 Player’s category ID should be
1035 (sub2 subcategory-MP3&MP4 Player), it should Not be 1034 (subcategory-
Portable Audio & Video) or 5 (category-Consumer Electronics).
2.4.2 marketCodes
marketCodes Country
KZ Kazakhstan
LB Lebanon
IR Iran
AF Afghanistan
AZ Azerbaijan
UZ Uzbekistan
TR Turkey
IQ Iraq
KW Kuwait
JO Jordan
KSA Kingdom of Saudi Arabia
office.
If shipping cost is not uploaded, the default shipping cost will take effect for these
products.
3 RetrieveProduct
3.1 NAME:LocalProductRpc.finds
"defaultPriceTo":"maximumPrice(<=)",
13
API version:v1.2.0
"page":"page parameter,pagenumber[int(10)]",
14
API version:v1.1.0
...
{
"sku":" SKU of product property [string(200)]",
"propertyValue":"value of variationproperty(if has 2 varoations,
separated by ||, eg Red||XL) [string(200)]",
"propertyImage":"property of image [string(1000)]",
"price":" the price of variation product [dobule (10,2)]"
}
],
"sproperty":[
{
"name":" name of specification [string(50)]",
"value":" value of specification [string(50)]"
},
...
{
"name":" name of specification [string(50)]",
"value":" value of specification [string(50)]"
}
],
15
API version:v1.2.0
4 Retrieve Orders
4.1 NAME: OrderRpc.finds
16
API version:v1.1.0
"spu":"product SPU[string(200)]",
"sku":"product SKU[string(200)]",
"productName":"product name[string(200)]",
"quantity":" item quantity[int(10)]",
"price":" total amount of this variation[double(10,2)]",
"shippingPrice":" shippingfee of this product[double(10,2)]",
"productUrl":"product URL[string(400)]",
"productId":"product Id[string(10)]",
“declareValue”: product declare Value [double(10,2)],
“hsCode”: product hscode[string(10)],
"hasBattery":"1=battery inside;2=no battery)[int(3)]",
"hasPowder":"1=powder; 2=not powder [int(3)]",
"hasLiquid":"1=liquid included; 2=no liquid[int(3)]",
"productHeight":"package heighth (mm)[int(10)]",
"productLength":"package length (mm) [int(10)]",
"productWidth":"package width (mm) [int(10)]",
"productWeight":"package weight(g)[double(12,4)]",
“refundQuantity”: the quantity of refund item[int(10)],
"refundStatus":3(1:is refunding; 2: Has refunded; 3: no refund),
"trackList":[
"trackNumber":"tracking number [string(50)]",
"timeShipped":"time of shipping [datetime]",
"timeShippedUnix": 1571217322,
],
shippedQuantity: the quantity of shipped item[int(10)],
},
...
{
19
API version:v1.2.0
"spu":"product SPU[string(200)]",
"sku":"product SKU[string(200)]",
"productName":"product name[string(200)]",
"quantity":" item quantity[int(10)]",
"price":" total amount of this variation[double(10,2)]",
"shippingPrice":" shippingfee of this product[double(10,2)]",
"productUrl":"product URL[string(400)]",
"productId":"product Id[string(10)]",
“declareValue”: product declare Value [double(10,2)],
“hsCode”: product hscode[string(10)],
"hasBattery":"1=battery inside;2=no battery)[int(3)]",
"hasPowder":"1=powder; 2=not powder [int(3)]",
"hasLiquid":"1=liquid included; 2=no liquid[int(3)]",
"productHeight":"package heighth (mm)[int(10)]",
"productLength":"package length (mm) [int(10)]",
"productWidth":"package width (mm) [int(10)]",
"productWeight":"package weight(g)[double(12,4)]",
“refundQuantity”: the quantity of refund item[int(10)],
"refundStatus":3(1:is refunding; 2: Has refunded; 3: no refund),
"trackList":[
"trackNumber":"tracking number [string(50)]",
"timeShipped":"time of shipping [datetime]",
"timeShippedUnix": 1571217322,
],
shippedQuantity: the quantity of shipped item[int(10)],
},
,
"address":{
"countryCode":"the code of recipient”s country[string(100)]"
"receiver":" recipient[string(200)]",
20
API version:v1.1.0
21
API version:v1.2.0
{
"contactName":"Seller_contact Name"[string(128)],
"contactPhone":"Contact phone Number"[string(255)],
"address":"Seller Address"[string(512)],
"zipcode":"Seller_Zipcode"[string(50)],
"city":"Seller_City"[string(32)],
"province":"Seller_Province"[string(32)],
"country":" country"[string(50)]
}
,
"returnAddress"://return address
{
"contactName":"Seller_Name"[string(128)],
"contactPhone":"contact phone number"[string(255)],
"address":"Seller_address"[string(512)],
"zipcode":"Seller_zipcode"[string(50)],
"city":"Seller_city"[string(32)],
"province":"Seller_province"[string(32)],
"country":"Seller_country"[string(50)]
}
,
"shippingProvider":0 [int(10)]//
}]
The tracking number will be saved with corresponding item in the ItemList.
23
API version:v1.2.0
6 UpdateProductinformation
6.1 NAME: ProductRpc. change
update informationofMax 100 products each time. This is to update information of SPU
All fields are optional except productId
[{
"productId":"product ID [int(10)]",
"name":"product name [string(200)]",
"categoryId":"product category ID[int(10)]",
"description":"product description[string(4000)]",
"sproperty":[
{
"name":"specification name[string(50)]",
"value":" specification value[string(50)]"
},
...
{
"name":" specification name [string(50)]",
"value":"specification value [string(50)]"
}
],
"picture":[
"image url 1[string(400)]",
...
"image url x[string(400)]"
],
24
API version:v1.1.0
"productId":"productID [int(10)]"
},
...
]
7 Addnew variations
7.1 NAME: ProductRpc. addSku
8 Updatevariations PropertyValue
8.1 NAME: ProductRpc. changeSku
26
API version:v1.1.0
27
API version:v1.2.0
"trackNumbers": [
"RRB600019224GE",…,“UUH900262981GE"
]
}]
Only can cancel 10 tracking numers most.
12 Error Codes
29
API version:v1.2.0
code reason
30
API version:v1.1.0
110022 Default logistic information has not been set in back office
32