Reference - Individual

Individual

Rate Checking

This enable rate checking from all courier companies in EasyParcel platform. User need to provide sender and receiver address to check the shipment rate.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPRateCheckingBulk
api :
bulk[0][pick_code] :
bulk[0][pick_country] :
bulk[0][send_code] :
bulk[0][send_country] :
bulk[0][weight] :
bulk[0][width] :
bulk[0][length] :
bulk[0][height] :
bulk[0][date_coll] :
bulk[1][pick_code] :
bulk[1][pick_country] :
bulk[1][send_code] :
bulk[1][send_country] :
bulk[1][weight] :
bulk[1][width] :
bulk[1][length] :
bulk[1][height] :
bulk[1][date_coll] :
Try and see results
<?php 
$domain = "https://demo.connect.easyparcel.sg/?ac=";

$action = "EPRateCheckingBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'pick_code' => '059893',
'pick_country' => 'SG',
'send_code' => '059897',
'send_country' => 'SG',
'weight' => '10',
'width' => '0',
'length' => '0',
'height' => '0',
'date_coll' => '2017-11-10',
),
array(
'pick_code' => '059893',
'pick_country' => 'SG',
'send_code' => '059897',
'send_country' => 'SG',
'weight' => '10',
'width' => '0',
'length' => '0',
'height' => '0',
'date_coll' => '2017-11-10',
),
),
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Making Order

The authenticated user can make single order at EasyParcel. User need to make sure the courier service is available.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPSubmitOrderBulk
api :
bulk[0][weight] :
bulk[0][width] :
bulk[0][length] :
bulk[0][height] :
bulk[0][content] :
bulk[0][value] :
bulk[0][service_id] :
bulk[0][pick_name] :
bulk[0][pick_company] :
bulk[0][pick_mobile] :
bulk[0][pick_contact] :
bulk[0][pick_unit] :
bulk[0][pick_code] :
bulk[0][pick_country] :
bulk[0][send_name] :
bulk[0][send_company] :
bulk[0][send_mobile] :
bulk[0][send_contact] :
bulk[0][send_unit] :
bulk[0][send_addr1] :
bulk[0][send_state] :
bulk[0][send_code] :
bulk[0][send_country] :
bulk[0][collect_date] :
bulk[0][reference] :
bulk[1][weight] :
bulk[1][width] :
bulk[1][length] :
bulk[1][height] :
bulk[1][content] :
bulk[1][value] :
bulk[1][service_id] :
bulk[1][pick_name] :
bulk[1][pick_company] :
bulk[1][pick_mobile] :
bulk[1][pick_contact] :
bulk[1][pick_unit] :
bulk[1][pick_code] :
bulk[1][pick_country] :
bulk[1][send_name] :
bulk[1][send_company] :
bulk[1][send_mobile] :
bulk[1][send_contact] :
bulk[1][send_unit] :
bulk[1][send_addr1] :
bulk[1][send_state] :
bulk[1][send_code] :
bulk[1][send_country] :
bulk[1][collect_date] :
bulk[1][reference] :
Try and see results
<?php 
$domain = "https://demo.connect.easyparcel.sg/?ac=";

$action = "EPSubmitOrderBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'weight' => '1',
'width' => '0',
'length' => '0',
'height' => '0',
'content' => 'book',
'value' => '20',
'service_id' => 'EP-CS0D',
'pick_name' => 'Yong Tat',
'pick_company' => 'Yong Tat Sdn Bhd',
'pick_mobile' => '',
'pick_contact' => '+6568505280',
'pick_unit' => '30',
'pick_code' => '059892',
'pick_country' => 'SG',
'send_name' => 'Sam',
'send_company' => '',
'send_mobile' => '',
'send_contact' => '+60-0178320239',
'send_unit' => '12',
'send_addr1' => '12',
'send_state' => 'png',
'send_code' => '119916',
'send_country' => 'SG',
'collect_date' => '2017-11-15',
'reference' => 'order123',
),
array(
'weight' => '1',
'width' => '0',
'length' => '0',
'height' => '0',
'content' => 'book',
'value' => '20',
'service_id' => 'EP-CS0D',
'pick_name' => 'Yong Tat',
'pick_company' => 'Yong Tat Sdn Bhd',
'pick_mobile' => '',
'pick_contact' => '+6568505280',
'pick_unit' => '30',
'pick_code' => '059892',
'pick_country' => 'SG',
'send_name' => 'Sam',
'send_company' => '',
'send_mobile' => '',
'send_contact' => '+60-0178320239',
'send_unit' => '12',
'send_addr1' => '12',
'send_state' => 'png',
'send_code' => '119916',
'send_country' => 'SG',
'collect_date' => '2017-11-15',
'reference' => 'order123',
),
),
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Making Order Payment

This step involves payment for the orders made. The authenticated user can do single order payment. Single order payment refers to payment for a single parcel only. There are various payment conditions that may appear such as insufficient credit (when user’s account do not have sufficient credit to perfom payment), sufficient credit (when there are sufficient credit for payment) and etc.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPPayOrderBulk
api :
bulk[0][order_no] :
bulk[1][order_no] :
Try and see results
<?php 
$domain = "https://demo.connect.easyparcel.sg/?ac=";

$action = "EPPayOrderBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'order_no' => 'EI-000JK',
),
array(
'order_no' => 'EI-000JK',
),
),
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Checking Order Status

Get order status by using order number is the recommended call to use for management. Use this call to retrieve all orders in which the authenticated caller.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPOrderStatusBulk
api :
bulk[0][order_no] :
bulk[1][order_no] :
Try and see results
<?php 
$domain = "https://demo.connect.easyparcel.sg/?ac=";

$action = "EPOrderStatusBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'order_no' => 'EI-000JK',
),
array(
'order_no' => 'EI-000JK',
),
),
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Checking Parcel Status

Get parcel status by using order number is the recommended call to use for checking the shipment. Use this call to retrieve parcel details.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPParcelStatusBulk
api :
bulk[0][order_no] :
bulk[1][order_no] :
Try and see results
<?php 
$domain = "https://demo.connect.easyparcel.sg/?ac=";

$action = "EPParcelStatusBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'order_no' => 'EI-000JK',
),
array(
'order_no' => 'EI-000JK',
),
),
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Tracking Parcel Details

Track the shipment status using airway bill number.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPTrackingBulk
api :
bulk[0][awb_no] :
bulk[1][awb_no] :
Try and see results
<?php 
$domain = "https://demo.connect.easyparcel.sg/?ac=";

$action = "EPTrackingBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'awb_no' => '86983175113435',
),
array(
'awb_no' => '86983175113435',
),
),
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Get Insurance Rate

This enables users to check the insurance rates from specific courier companies on the EasyParcel platform. Users are required to fill in the necessary fields to access the insurance rate information.
Try It POST https://demo.connect.easyparcel.sg/?ac=EPInsuranceRateChecking
api :
awb :
parcel_content_value :
courier :
coll_country :
deli_country :
coll_state :
deli_state :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.sg/?ac=";

$action = "EPInsuranceRateChecking";
$postparam = array(
'api' => 'xxxxxx',
'awb' => 'TestingAWB',
'parcel_content_value' => '390',
'courier' => 'EP-CR05',
'coll_country' => 'MY',
'deli_country' => 'MY',
'coll_state' => 'srw',
'deli_state' => 'srw',
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>

Purchase Insurance

This step involves both ordering and making payments for the orders placed. Authenticated users can make single insurance order payments. Single order payment specifically refers to the payment for a single parcel. Various payment conditions may arise, such as insufficient credit (when the user account lacks sufficient funds for payment) or sufficient credit (when there are adequate funds available for payment).
Try It POST https://demo.connect.easyparcel.sg/?ac=EPInsurancePurchase
api :
awb :
parcel_content_value :
courier :
coll_country :
deli_country :
coll_state :
deli_state :
parcel_category_id :
parcel_content :
parcel_content_type :
parcel_content_currency_code :
parcel_content_weight :
coll_name :
coll_company :
coll_mobile_code :
coll_mobile :
coll_alternative_mobile_code :
coll_alternative_mobile :
coll_email :
deli_name :
deli_company :
deli_mobile_code :
deli_mobile :
deli_alternative_mobile_code :
deli_alternative_mobile :
deli_email :
coll_address_1 :
coll_address_2 :
coll_postcode :
coll_city :
deli_address_1 :
deli_address_2 :
deli_postcode :
deli_city :
shipment_date :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.sg/?ac=";

$action = "EPInsurancePurchase";
$postparam = array(
'api' => 'xxxxxx',
'awb' => 'TESTDomestic',
'parcel_content_value' => '250',
'courier' => 'EP-CR05',
'coll_country' => 'MY',
'deli_country' => 'MY',
'coll_state' => 'png',
'deli_state' => 'png',
'parcel_category_id' => '12',
'parcel_content' => 'testing',
'parcel_content_type' => 'parcel',
'parcel_content_currency_code' => 'MYR',
'parcel_content_weight' => '123',
'coll_name' => '12313',
'coll_company' => 'Testing Company',
'coll_mobile_code' => '60',
'coll_mobile' => '162631234',
'coll_alternative_mobile_code' => '60',
'coll_alternative_mobile' => '123456789',
'coll_email' => '[email protected]',
'deli_name' => 'Receiver Testing',
'deli_company' => 'Receiver Testing Company',
'deli_mobile_code' => '60',
'deli_mobile' => '123456789',
'deli_alternative_mobile_code' => '',
'deli_alternative_mobile' => '',
'deli_email' => '[email protected]',
'coll_address_1' => 'testing',
'coll_address_2' => 'testing 2',
'coll_postcode' => '11950',
'coll_city' => 'penang',
'deli_address_1' => 'test receiver',
'deli_address_2' => 'test receiver 2',
'deli_postcode' => '11950',
'deli_city' => 'penang',
'shipment_date' => '2024-05-11',
);

$url = $domain.$action;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postparam));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

ob_start();
$return = curl_exec($ch);
ob_end_clean();
curl_close($ch);

$json = json_decode($return);
echo "<pre>"; print_r($json); echo "</pre>";
?>