CHINA FACTORY DIRECT SALES TO THE WORLD !
$-USD
Home > Chinarephone API

Chinarephone API

Common Calling Convention
1. Common Parameters:
  key: The api key you got from CHINAREPHONE.
2. Result Format
  The return value is formatted in JSON.
  (a) Successful Result Example:
    { "result": "success", "data": [{"id":"1032", "code":"003", "name":"N Style Phone", "parentId":"408"}] }
  (b) Failed Result Example:
    { "result": "error", "messages": [ "The record you visiting does NOT exist." ] }
Interface 1: Get children of the category specified in the parameters
(a) URL: /api.php?act=get_children_category
(b) Parameters:
  If you don't pass any parameter, this API will retur all of the categories.
  You can specify the parameters below to filter the categories you want to fetch:
  * parentId: The ID of the category, which you want to get its direct child categories, optional;
(c) Result:
  Summary:
  * If you don't pass the parentId parameter, then an array of the all categories is returned;
  * If you specify '0' for the parentId, then an array of the top categories is returned;
  * If you specify other number for the parentId, then an array of the direct child categories is returned;
  Fields:
  * id: The unique ID of the category;
  * name: The full name of the category;
  * parentId The ID of the parent category;
Interface 2: Search goods
(a) URL: /api.php?act=goods_search
(b) Parameters:
  * categoryId: The ID of the category, which you want to search the goods within (including its subcategories), optional;
  * pageSize: The array size of the goods returned, default set to 40, max is 100;
  * page: The page number, default set to 1;
(c) Result:
  Summary:
  * This API return the goods which match the conditions you specified.
  Fields:
  * total: The total goods number match the conditions you specified.
  * pageCount: The total page number, calculated by total and pageSize.
  * result: An array contains goods records, refer to the Interface '/api.php?act=get_goods_detail' to get the details.
    i.e. [ {"goodsId":"538", "goodsName":"Refurbished Unlock iPhone 6 Plus No-Fingerprint", "price":"252.71", "shortDescription":"Fingerprint Identification, Model: A1522, 5.5 inch, iOS 9, A8 Chip, RAM: 1GB, Network: 4G", "image":"images/201612/goods_img/538_P_1481123223960.jpg", "thumbImage":"images/201612/thumb_img/538_thumb_P_1481123223841.jpg"} ]
Interface 3: Get the details of the specified goods
(a) URL: /api.php?act=get_goods_detail
(b) Parameters:
  * goodsId: The ID of the goods you want to get details.
(c) Result:
  Summary:
  * This API return the full information of the specified goods.
  Fields:
  * id: The unique ID of the goods;
  * categoryId: The category ID of the goods;
  * name: The name of the goods;
  * image: The image url of the goods;
  * thumbImage: The thumbnail image of the goods;
  * description: The detail description of the goods;
  * price: The current price of the goods;
  * keywords: The keywords of the goods;
  * shortDescription: The short description of the goods;
  * priceList: The wholesale prices of the price, according to the purchase quantity.
    i.e. [ {"qty":"1", "price":"120"}, {"qty":"20", "price":"110"}, {"qty":"50", "price":"100"} ]
  * sortOrder: The sort order of the goods;
  * params: The params of the goods;
    i.e. [ {"name":"Model","value":"iPhone 6", "group":"General"}, {"name":"WIFI","value":"802.11a/b/g/n/ac", "group":"Network"}, {"name":"Screen Size","value":"5.5 inch", "group":"Display"} ]
  * specList: The specification list of the goods;
    i.e. [ {"attrId":"17127", "name":"ROM", "value":"16G", "specPrice":"0", "specImage":"", "specThumbImage":""}, {"attrId":"17131", "name":"Color", "value":"Gold", "specPrice":"10", "specImage":"images/201612/goods_img/538_P_1481123223135.jpg", "specThumbImage":"images/201612/thumb_img/538_thumb_P_1481123223525.jpg"}, {"attrId":"17130", "name":"Color", "value":"Silver", "specPrice":"10", "specImage":"images/201612/goods_img/538_P_1481123223829.jpg", "specThumbImage":"images/201612/thumb_img/538_thumb_P_1481123223115.jpg"} ]
  * imgList: The image list of the goods;
    i.e. [ {"imgUrl":"images/201612/goods_img/538_P_1481123223960.jpg", "thumbUrl":"images/201612/thumb_img/538_thumb_P_1481123223841.jpg", "sortOrder":"0"}, {"url":"images/201612/goods_img/538_P_1481123223829.jpg", "thumbUrl":"images/201612/thumb_img/538_thumb_P_1481123223115.jpg", "sortOrder":"1"} ]
  * productList: The product list of the goods;
    i.e. [ {"sku":"IP0538S16", "attrValues":"17127|17131"}, {"sku":"IP0538G16", "attrValues":"17127|17130"} ]

All products support the return and warranty.

Open API Services: Open API

Customer Service Email: sales@chinarephone.com

We're here to help! We respond to emails as quickly as possible, every day of the week, in the order they're received.

 

Great Value

We offer competitive prices on our all plus product range.

 

Worldwide Delivery

We support DHL, Sweden Post, Singapore Post, the fast way cost 3-5 days·

 

Safe Payment

Pay with the world’s most popular and secure payment methods.

 

Shop with Confidence

Our Buyer Protection covers your purchase from click to delivery.

 

24/7 Help Center

Round-the-clock assistance for a smooth shopping experience.