I have this website ([url removed, login to view]). Some of my products are directly shipped by my distributor to my customers. My distributor gave me an API and PHP code so I could get the tracking information (Tracking # and shipper) back to my customer order pages (please see attached files). Today I have to login to my distributor account page and copy and paste all the tracking information back to my magento which is time consuming.
Here is the code that my distributor gave me:
const HTTP_URI = "[url removed, login to view]";
// Shipment information by your Order Reference
echo '<h3>Shipment Information</h3>';
$orderRef = array('Jean luc Royer');
$url = HTTP_URI."orders/shipments/infos";
$json_string = json_encode($orderRef);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POSTFIELDS, $json_string);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, "vitapiscine@[url removed, login to view]:MY_PASSWORD");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
'Content-Length: ' . strlen($json_string))
$result = curl_exec($curl);
"description":"annulation 4405010411 paul cataldo\n",
"value":"Jean luc Royer",
I can provide you with the distributor account page so you can see the order I submit and how the shipping information is being displayed.
10 freelancers are bidding on average €161 for this job
hi Paul HIGHLY interested with your project. I'm ready to start right now. I'm an individual developer and my completion rate is always 100%. I STRICTLY BITE only WHICH I CAN CHEW. Knock me please
I will bid 95 Euro. I am bidding low because I am just starting on this site and need to build up reviews. I have the skill set and experience to complete this project and additional I.T. needs.