Open ceekchong opened 4 years ago
Hi @ceekchong for some reason json is casing that boolean value to an int when serializing it.
I'll look into fixing that, but in the meantime, quoting the value works, eg:
echo $orders->createLabelForOrder([
'orderId' => '12345678',
'carrierCode' => 'stamps_com',
'serviceCode' => 'usps_first_class_mail',
'confirmation' => 'none',
'shipDate' => date('c'),
'testLabel' => "true"
])->getBody();
Hi @zack6849 Thanks for your kindly reply. I checked and it works with your eg. Please fix the issues and let me know after you fix the issues.
I only missed the testLabel => "true"
option. I wrote such as 'testLabel' => true/false,
but it makes issues.
Thank you
I worked with shipstation API for creatlabelfororder. But when I set the
testlabel
parameter, I get the issue like this.Also, I get same issue when create the order with insureShipment insureOption. Please let me know what is my wrong. Thank you