Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label not created #7

Open
manishkvaish opened this issue Jan 4, 2018 · 0 comments
Open

Label not created #7

manishkvaish opened this issue Jan 4, 2018 · 0 comments

Comments

@manishkvaish
Copy link

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' => '[email protected]',
'create_shipping_label' => true
);

Please help me out.

Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant