Skip to content

Label not created #7

@manishkvaish

Description

@manishkvaish

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions