//PHP example //Magento shopping sample //Observer file getEvent()->getOrder()->getIncrementId(); $custName = $observer->getEvent()->getOrder()->getCustomerFirstname(); $orderPrice = $observer->getEvent()->getOrder()->getGrandTotal(); $orderId = $observer->getEvent()->getOrder()->getId(); $order= $observer->getEvent()->getOrder(); $mobile = trim($order->getShippingAddress()->getData('telephone')); $postdata = array('' => , ); $url = 'https://www.courierscripts.com/app/api?cid={{company_id}}&type=shipment&security_key={{security_key}}'; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$postdata); $output=curl_exec($ch); curl_close($ch); Mage::log('order created successfully'); } } ?>