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

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

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/orders-log
Request Method:
GET
Request Parameters (header):
Request Parameters (urlParam):
Request Example:
                        
<?php
    $ch = curl_init();
    $url = 'https://api.shopv.com/orders-log?page=1&start=2021-05-01&end=2021-05-14';
    $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":{
        "page":1,
        "page_size":100,
        "page_count":1,
        "log_count":"3",
        "log_infos":[
            {
                "order_id":"HSN#2472",
                "log_type":"1",
                "content":"HSN#2472 tracking changed from 36789314191901 to 36789314191902",
                "date_added":"2021-05-14 14:36:15"
            },
            {
                "order_id":"HSN#2473",
                "log_type":"1",
                "content":"HSN#2473 tracking changed from 36789515715101 to 36789515715102",
                "date_added":"2021-05-14 14:36:15"
            },
            {
                "order_id":"HSN#2468",
                "log_type":"1",
                "content":"HSN#2468 tracking changed from 36789343027742 to 36789343027743",
                "date_added":"2021-05-14 14:36:15"
            }
        ]
    }
}
                        
                    
Remark:

log_type: Log type

1:tracking number is changed

2:order is reshipped

3:address information is changed

Error Messages: