Introduction of Easy Purchase's API documentation

Easy Purchase API is powerful tool to support your China importing business in a quick way. If you have any questions, please send us an email at [email protected]. For API endpoint, contact us with your account ID (phone number). We will contact you via phone shortly. Thank you.

Request

Parameter Type # Description
username String Required Your login account
apiKey String Required A key assoicated with your account
action String Required Functions to execute (See below)
extra Array Required Parameter to support functions to execute (See below)
lang String Required hant/hans/en only. Error message will be translated according to this parameter
chinaCDN Bool Optional If true, files such as image will be returned with China url

Sample Request (PHP)

$url = "http://CONTACT_US_FOR_ENDPOINT/run.php";

$data = array(  "username"  => "+852XXXXXXXX",
            "apiKey"    => "live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "action"    => "say_hello",
            "extra"     => array("location" => "Hong Kong"),
            "lang"      => "en");

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);

$resp = json_decode($response, true);

print_r($resp);