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-create
Request Method:
POST
Request Parameters (header):
Request Parameters (bodyParam):
Request Example:
                        
<?php
    $ch = curl_init();
    $url = 'https://api.shopv.com/order-cancel';
    $header = array(
            'Content-Type:application/x-www-form-urlencoded',
            'apikey: your apikey',
    );
    $post_data = array(
            'order_id' => '100001',
            'remark' => 'test'
    );
    // 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:
The cancel API call to cancel any orders before shipment.
Error Messages: