# Label weight always 16 oz

**URL:** <https://forums.ordoro.com/t/label-weight-always-16-oz/140>\
**Category:** Uncategorized\
**Created:** [August 9, 2017, 1:18am UTC](https://forums.ordoro.com/t/label-weight-always-16-oz/140 "2017-08-09T01:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulo.junior](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@paulo.junior](https://forums.ordoro.com/u/paulo.junior)\
**Post date:** [August 9, 2017, 1:18am UTC](https://forums.ordoro.com/t/label-weight-always-16-oz/140/1 "2017-08-09T01:18:57Z")

</div>

Every label created appears as shipping weight 16 Oz.  
For example I’m using the following code for a 25 Oz shipping:

> $username=“username”;  
> $password=“password”;  
> $header=[“Authorization”=\> “Basic " . base64\_encode(”$username:$password")];  
> $header[“Content-Type”]=“application/json”;  
> $header[“Accept”]=“application/json”;
> 
> $to=[  
> “city”=\>“São Paulo”,  
> “name”=\> “John Doe”,  
> “zip”=\> “01520000”,  
> “street1”=\> “Rua Pires da Mota, 1”,  
> “street2”=\> “”,  
> “phone”=\> “+551155555555”,  
> “state”=\> “SP”,  
> “country”=\> “Brazil”  
> ];  
> $from=[  
> “city”=\>“Bear”,  
> “name”=\> “Paulo Junior”,  
> “zip”=\>“19701”,  
> “street1”=\>“1 My Street”,  
> “phone”=\>“(302)555-5555”,  
> “state”=\>“DE”,  
> “country”=\>“US”  
> ];
> 
> $urlcreateshipment=“[https://api.ordoro.com/shipment/M-TEST\_ORDORO-1/label/generate/](https://api.ordoro.com/shipment/M-TEST_ORDORO-1/label/generate/)”;
> 
> $endicia=[  
> “shipper\_type”=\>“endicia”,  
> “shipper\_id”=\>111111,  
> “shipping\_method”=\>“FirstClassPackageInternationalService”,  
> “weight”=\> 25,  
> “height”=\> 10,  
> “width”=\> 6,  
> “length”=\> 5,  
> “nondelivery\_option”=\> “Return”,  
> “ship\_to”=\> $to,  
> “contents\_explanation”=\> “”,  
> “email\_bill\_to”=\> false,  
> “contents\_type”=\> “Gift”,  
> “hold\_for\_pickup”=\> 0,  
> “stealth”=\> true,  
> “ship\_date”=\> ‘2017-08-09T11:00:00+00:00’,  
> “ship\_from”=\> $from,  
> “email\_ship\_to”=\> false,  
> “box\_shape”=\> “Parcel”,  
> “delivery\_confirmation”=\> “DeliveryConfirmation”,  
> “reference\_number”=\> “M-TEST\_ORDORO”,  
> “customs\_forms”=\>[  
> [  
> “description”=\> “T-SHIRT”,  
> “weight”=\> 1,  
> “country”=\> “US”,  
> “value”=\> 27,  
> “quantity”=\> 1  
> ]  
> ],  
> “value”=\> 27  
> ];
> 
> $label= Requests::post($urlcreateshipment, $header, json\_encode($endicia));

And I get this response for a 16 Oz shipping

object(stdClass)[8]  
public ‘shipping\_method’ =\> string ‘FirstClassPackageInternationalService’ (length=37)  
public ‘package\_tracking’ =\> string ‘LZxxxxxxxxxxxxxxUS’ (length=13)  
public ‘cost’ =\> float 19.67  
public ‘\_link’ =\> string ‘/label/M-TEST\_ORDORO-1/’ (length=23)  
public ‘id’ =\> int 1111111  
public ‘company\_id’ =\> int 11111111  
public ‘print\_date’ =\> null  
public ‘insurance’ =\> null  
public ‘params’ =\>  
object(stdClass)[4]  
public ‘shipping\_method’ =\> string ‘FirstClassPackageInternationalService’ (length=37)  
public ‘weight’ =\> float 16  
public ‘box\_shape’ =\> string ‘Parcel’ (length=6)  
public ‘height’ =\> int 10  
public ‘ship\_date’ =\> string ‘2017-08-09T11:00:00+00:00’ (length=25)  
public ‘nondelivery\_option’ =\> string ‘Return’ (length=6)  
public ‘delivery\_confirmation’ =\> string ‘DeliveryConfirmation’ (length=20)  
public ‘ship\_to’ =\>  
object(stdClass)[11]  
public ‘city’ =\> string ‘São Paulo’ (length=9)  
public ‘fax’ =\> null  
public ‘name’ =\> string ‘John Doe’ (length=8)  
public ‘zip’ =\> string ‘01520000’ (length=8)  
public ‘reference\_number’ =\> null  
public ‘country’ =\> string ‘BR’ (length=2)  
public ‘company’ =\> null  
public ‘cart\_address\_id’ =\> null  
public ‘id’ =\> float 1111111111  
public ‘phone’ =\> string ‘+551155555555’ (length=13)  
public ‘state’ =\> string ‘SP’ (length=2)  
public ‘street1’ =\> string ‘Rua Pires da Mota 1’ (length=19)  
public ‘street2’ =\> string ‘’ (length=0)  
public ‘validation’ =\>  
object(stdClass)[10]  
…  
public ‘email’ =\> null  
public ‘contents\_explanation’ =\> string ‘’ (length=0)  
public ‘shipper\_id’ =\> int 1111111  
public ‘insurance\_type’ =\> string ‘no\_insurance’ (length=12)  
public ‘reference\_number’ =\> string ‘M-TEST\_ORDORO’ (length=13)  
public ‘email\_bill\_to’ =\> boolean false  
public ‘contents\_type’ =\> string ‘Gift’ (length=4)  
public ‘hold\_for\_pickup’ =\> boolean false  
public ‘shipper\_type’ =\> string ‘endicia’ (length=7)  
public ‘length’ =\> int 5  
public ‘value’ =\> int 27  
public ‘width’ =\> int 6  
public ‘stealth’ =\> boolean true  
public ‘customs\_forms’ =\>  
array (size=1)  
0 =\>  
object(stdClass)[12]  
…  
public ‘ship\_from’ =\>  
object(stdClass)[13]  
public ‘city’ =\> string ‘Bear’ (length=4)  
public ‘fax’ =\> null  
public ‘name’ =\> string ‘Paulo Junior’ (length=12)  
public ‘zip’ =\> string ‘19701’ (length=5)  
public ‘reference\_number’ =\> null  
public ‘country’ =\> string ‘US’ (length=2)  
public ‘company’ =\> null  
public ‘cart\_address\_id’ =\> null  
public ‘id’ =\> float 111111111  
public ‘phone’ =\> string ‘3025555555’ (length=10)  
public ‘state’ =\> string ‘DE’ (length=2)  
public ‘street1’ =\> string ‘1 My Street’ (length=13)  
public ‘street2’ =\> string ‘’ (length=0)  
public ‘validation’ =\>  
object(stdClass)[14]  
…  
public ‘email’ =\> string ‘my@email.com’ (length=21)  
public ‘email\_ship\_to’ =\> boolean false  
public ‘updated’ =\> string ‘2017-08-08T21:49:36.099483+00:00’ (length=32)  
public ‘vendor’ =\> string ‘endicia’ (length=7)  
public ‘void’ =\> boolean false  
public ‘shipper\_id’ =\> int 111111  
public ‘\_linkraw’ =\> string ‘/label/1111111/raw/’ (length=20)  
public ‘tracking\_url’ =\> string ‘[https://tools.usps.com/go/TrackConfirmAction?qtc\_tLabels1=LZxxxxxxxxxxUS](https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=LZxxxxxxxxxxUS)’ (length=71)  
public ‘tracking’ =\> string ‘LZxxxxxxxxxxxxUS’ (length=13)  
public ‘created’ =\> string ‘2017-08-08T21:49:35.310330+00:00’ (length=32)  
public ‘package\_type’ =\> string ‘Parcel’ (length=6)  
public ‘\_linkrawdocs’ =\> null  
public ‘shipment\_id’ =\> string ‘M-TEST\_ORDORO-1’ (length=15)  
public ‘display\_shipping\_method’ =\> string ‘First Class Package International’ (length=33)

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [August 10, 2017, 5:18pm UTC](https://forums.ordoro.com/t/label-weight-always-16-oz/140/2 "2017-08-10T17:18:53Z")

</div>

Hi,

I believe the weight may be coming from the shipment in this scenario. If you get the shipment, what is the weight in the response?

sophie

---

<div class="post-metadata">

**Author:** ![paulo.junior](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@paulo.junior](https://forums.ordoro.com/u/paulo.junior)\
**Post date:** [August 10, 2017, 6:07pm UTC](https://forums.ordoro.com/t/label-weight-always-16-oz/140/3 "2017-08-10T18:07:52Z")

</div>

Yes, The response for the shipment is “weight=1”.  
I already solved the problem, I’m using the “PUT” shipment for to place weight information after generate the order and before generate the label.  
Thank You.
