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/order-cancel
Request Method:
POST
Request Parameters (header):
Request Parameters (bodyParam):
Request Example:
                        
<?php
    $ch = curl_init();
    $url = 'https://api.shopv.com/order-create';
    $header = array(
            'Content-Type:application/x-www-form-urlencoded',
            'apikey: your apikey',
    );
    $post_data = array(
            'order_id' => '100001',
            'first_name' => 'wang',
            'last_name' => 'xiao hong',
            'ship_address1' => '8888 Parkland',
            'ship_address2' => '',
            'ship_city' => 'Calgary',
            'ship_state' => 'AB',
            'ship_zip' => 'T2J3Y2',
            'ship_country' => 'Canada',
            'ship_phone' => '8888888888',
            'ship_email' => '[email protected]',
            'quantity' => 8,
            'info' => array(
                array(
                    'sku' => 'sku-iv-1',
                    'product_name' => 'shirt',
                    'product_url' => 'https://item.taobao.com/item.htm?spm=a1z10.1-c.w5003-10229753858.1.9rA5ew&id=524430044755&scene=taobao_shop',
                    'color' => 'Red Pansy',
                    'size' => 'XS',
                    'category' => 'Fragile',
                    'supplier' => 'taobao',
                    'quantity' => 4,
                    'package_number' => 'N10001',
                    'tracking_number' => '888888888',
                    'shipping_method' => 'SF',
                ),
                array(
                    'sku' => 'sku-iv-2',
                    'product_name' => 'shirt',
                    'product_url' => 'https://item.taobao.com/item.htm?spm=a1z10.33-c.w4002-12426177414.14.bqhm4D&id=39906160111',
                    'color' => 'Pansy',
                    'size' => 'XS',
                    'category' => 'Fragile',
                    'supplier' => 'taobao',
                    'quantity' => 1,
                    'package_number' => 'N10001',
                    'tracking_number' => '888888888',
                    'shipping_method' => 'SF',
                ),
                array(
                    'sku' => 'sku-iv-3',
                    'product_name' => 'shirt',
                    'product_url' => 'https://item.taobao.com/item.htm?spm=a1z10.33-c.w4002-12426177414.14.bqhm4D&id=39906160111',
                    'color' => 'Green Pansy',
                    'size' => 'XS',
                    'category' => 'Fragile',
                    'supplier' => 'whoolala',
                    'quantity' => 3,
                    'package_number' => 'N10002',
                    'tracking_number' => '999999999',
                    'shipping_method' => 'SF',
                ),
            ),
            'shipping_method' => 'DHL',
            'vat' => '',
            'inspection' => 0,
            'remark' => 'test',
            'business_type' => 1
    );
    // Add apikey to header
    curl_setopt($ch, CURLOPT_HTTPHEADER  , $header);
    // Add post_data to bodyParam
    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post_data));
    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": null
}
                        
                    
Remark:
Repeat create order, execute update order information operation.
Error Messages: