-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi,
I created a PHP script for creating shipment via Shipcloud API
Though it has been created successfully, but I am getting only Id and the tracking_url,
and not carrier_tracking_no,label_url, and price as response parameters
I am using my sandbox API key
here is how the posted parameters in my request code look like.
$post_data = array(
'to' => array(
'company' => 'Receiver Inc.',
'first_name' => 'Max',
'last_name' => 'Mustermann',
'street' => 'Beispielstrasse',
'street_no' => '42',
'city' => 'Hamburg',
'zip_code' => '22100',
'country' => 'DE'
),
'package' => array(
'weight' => 15,
'length' => 20,
'width' => 20,
'height' => 20,
'type' => 'parcel'
),
'carrier' => 'dhl',
'service' => 'standard',
'reference_number' => 'ref123456',
'notification_email' => 'codegtmail@gmail.com',
'create_shipping_label' => true
);
Please help me out.
Thank You.