Reference - Individual

Individual

Check Kod Pos

Try It POST http://demo.connect.easyparcel.co.id/?ac=EPCheckKodePos
api :
bulk[0][Provinsi] :
bulk[0][Kecamatan] :
bulk[0][Kelurahan] :
bulk[1][Provinsi] :
bulk[1][Kecamatan] :
bulk[1][Kelurahan] :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.co.id/?ac=";

$action = "EPCheckKodePos";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'Provinsi' => 'JK',
'Kecamatan' => 'KebayoranLama',
'Kelurahan' => 'Pondok Pinang',
),
array(
'Provinsi' => 'JK',
'Kecamatan' => 'SetiaBudi',
'Kelurahan' => '',
),
),
);

$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>";
?>

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 http://demo.connect.easyparcel.co.id/?ac=EPRateCheckingBulk
api :
bulk[0][pick_code] :
bulk[0][pick_state] :
bulk[0][pick_country] :
bulk[0][send_code] :
bulk[0][send_state] :
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_state] :
bulk[1][pick_country] :
bulk[1][send_code] :
bulk[1][send_state] :
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 = "http://demo.connect.easyparcel.co.id/?ac=";

$action = "EPRateCheckingBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'pick_code' => '12310',
'pick_state' => 'JK',
'pick_country' => 'ID',
'send_code' => '12910',
'send_state' => 'JK',
'send_country' => 'ID',
'weight' => '1',
'width' => '0',
'length' => '0',
'height' => '0',
'date_coll' => '2017-11-14',
),
array(
'pick_code' => '12310',
'pick_state' => 'JK',
'pick_country' => 'ID',
'send_code' => '12910',
'send_state' => 'JK',
'send_country' => 'ID',
'weight' => '1',
'width' => '0',
'length' => '0',
'height' => '0',
'date_coll' => '2017-11-14',
),
),
);

$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 http://demo.connect.easyparcel.co.id/?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_mobile1] :
bulk[0][pick_mobile2] :
bulk[0][pick_addr1] :
bulk[0][pick_addr2] :
bulk[0][pick_addr3] :
bulk[0][pick_addr4] :
bulk[0][pick_code] :
bulk[0][pick_city] :
bulk[0][pick_state] :
bulk[0][pick_country] :
bulk[0][send_name] :
bulk[0][send_company] :
bulk[0][send_mobile1] :
bulk[0][send_mobile2] :
bulk[0][send_addr1] :
bulk[0][send_addr2] :
bulk[0][send_addr3] :
bulk[0][send_addr4] :
bulk[0][send_code] :
bulk[0][send_city] :
bulk[0][send_state] :
bulk[0][send_country] :
bulk[0][collect_date] :
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_mobile1] :
bulk[1][pick_mobile2] :
bulk[1][pick_addr1] :
bulk[1][pick_addr2] :
bulk[1][pick_addr3] :
bulk[1][pick_addr4] :
bulk[1][pick_code] :
bulk[1][pick_city] :
bulk[1][pick_state] :
bulk[1][pick_country] :
bulk[1][send_name] :
bulk[1][send_company] :
bulk[1][send_mobile1] :
bulk[1][send_mobile2] :
bulk[1][send_addr1] :
bulk[1][send_addr2] :
bulk[1][send_addr3] :
bulk[1][send_addr4] :
bulk[1][send_code] :
bulk[1][send_city] :
bulk[1][send_state] :
bulk[1][send_country] :
bulk[1][collect_date] :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.co.id/?ac=";

$action = "EPSubmitOrderBulk";
$postparam = array(
'api' => 'xxxxxx',
'bulk' => array(
array(
'weight' => '1',
'width' => '0',
'length' => '0',
'height' => '0',
'content' => 'book',
'value' => '858',
'service_id' => 'EP-CS0IJZ',
'pick_name' => 'Yong Tat',
'pick_company' => 'Yong Tat Sdn Bhd',
'pick_mobile1' => '82291173009',
'pick_mobile2' => '',
'pick_addr1' => 'ciputat raya',
'pick_addr2' => '',
'pick_addr3' => 'Pondok Pinang',
'pick_addr4' => 'Kebayoran Lama',
'pick_code' => '12310',
'pick_city' => 'Kota Jakarta Selatan',
'pick_state' => 'JK',
'pick_country' => 'ID',
'send_name' => 'Pak Warso',
'send_company' => '',
'send_mobile1' => '81851926311',
'send_mobile2' => '',
'send_addr1' => 'Jl. Karet Belakang V',
'send_addr2' => '',
'send_addr3' => 'Setiabudi',
'send_addr4' => 'Setia Budi',
'send_code' => '12910',
'send_city' => 'Kota Jakarta Selatan',
'send_state' => 'JK',
'send_country' => 'ID',
'collect_date' => '2017-11-30',
),
array(
'weight' => '1',
'width' => '0',
'length' => '0',
'height' => '0',
'content' => 'book',
'value' => '858',
'service_id' => 'EP-CS0IJZ',
'pick_name' => 'Yong Tat',
'pick_company' => 'Yong Tat Sdn Bhd',
'pick_mobile1' => '82291173009',
'pick_mobile2' => '',
'pick_addr1' => 'ciputat raya',
'pick_addr2' => '',
'pick_addr3' => 'Pondok Pinang',
'pick_addr4' => 'Kebayoran Lama',
'pick_code' => '12310',
'pick_city' => 'Kota Jakarta Selatan',
'pick_state' => 'JK',
'pick_country' => 'ID',
'send_name' => 'Pak Warso',
'send_company' => '',
'send_mobile1' => '81851926311',
'send_mobile2' => '',
'send_addr1' => 'Jl. Karet Belakang V',
'send_addr2' => '',
'send_addr3' => 'Setiabudi',
'send_addr4' => 'Setia Budi',
'send_code' => '12910',
'send_city' => 'Kota Jakarta Selatan',
'send_state' => 'JK',
'send_country' => 'ID',
'collect_date' => '2017-11-30',
),
),
);

$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 http://demo.connect.easyparcel.co.id/?ac=EPPayOrderBulk
api :
bulk[0][order_no] :
bulk[1][order_no] :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.co.id/?ac=";

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

$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 http://demo.connect.easyparcel.co.id/?ac=EPOrderStatusBulk
api :
bulk[0][order_no] :
bulk[1][order_no] :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.co.id/?ac=";

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

$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 http://demo.connect.easyparcel.co.id/?ac=EPParcelStatusBulk
api :
bulk[0][order_no] :
bulk[1][order_no] :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.co.id/?ac=";

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

$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 http://demo.connect.easyparcel.co.id/?ac=EPTrackingBulk
api :
bulk[0][awb_no] :
bulk[1][awb_no] :
Try and see results
<?php 
$domain = "http://demo.connect.easyparcel.co.id/?ac=";

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

$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>";
?>