China procurement, global delivery, the way to your business success

English \ العربية \ русский язык

Services Introduction:
This document describes the integration points available to clients via the www.shopv.com API, which makes shipping data available for syncing the client system with the www.shopv.com system.
Interface Address:
https://api.shopv.com/sku-inventory-all
Request Method:
GET
Request Parameters (header):
Request Example:
                        
<?php
    $ch = curl_init();
    $url = 'https://api.chinadivision.com/sku-inventory-all';
    $header = array(
            'apikey: your apikey',
    );
    // Add apikey to header
    curl_setopt($ch, CURLOPT_HTTPHEADER  , $header);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    // HTTP request
    curl_setopt($ch , CURLOPT_URL , $url);
    $res = curl_exec($ch);

    var_dump(json_decode($res));
?>
                        
                    
JSON Returns Example:
                        
{
    "code": 0,
    "msg": "success",
    "data": [
        {
            "product_id": "888",
            "sku": "xxxx",
            "product_name": "SKIRT",
            "product_source": "",
            "product_color": "Red",
            "product_size": "M",
            "date_added": "2016-08-29 17:46:46",
            "product_quantity": "100",
            "sent_quantity": "6",
            "stock_quantity": "94"
        },
        {
            "product_id": "889",
            "sku": "xxxx",
            "product_name": "SKIRT1",
            "product_source": "",
            "product_color": "Red",
            "product_size": "M",
            "date_added": "2016-08-29 17:46:46",
            "product_quantity": "106",
            "sent_quantity": "6",
            "stock_quantity": "100"
        }
    ]
}
                        
                    
Remark:
The SKU Inventory API: Get your product inventory
Error Messages: