Hey!
How do I set the dropdown field Indirect Signature Required via API as shown on the attached image?
Thanks!!!
Sergio
Hey!
How do I set the dropdown field Indirect Signature Required via API as shown on the attached image?
Thanks!!!
Sergio
Here you’ll want to use the delivery confirmation parameter with the INDIRECT
value.
"delivery_confirmation": "INDIRECT"
Thanks Sophie. I will try and let you know if I have any further questions.
Have a nice weekend!
Thanks! Hope this fixes it up for you!
Shopie,
I tried
POST
..@apiverson.ordoro.com/order/2-TP-00015810/label/fedex
{
"shipper_id": 204996,
"packages": [{
"box_shape": "YOUR_PACKAGING",
"length": 4,
"height": 2,
"width": 4,
"declared_value": 0,
"dry_ice_weight": 0,
}],
"recipient_address_is_residential": false,
"signature_option": "INDIRECT",
"shipping_method": "FEDEX_GROUND"
}
and got
{
"error_message": "'NoneType' object has no attribute 'items'",
"param": null
}
Any clues?
Thanks!
According to logs, it appears that the payload was not received by the API.
Hey Sophie.
I’ve just tried again and got the same error.
Header is
Content-Type: application/json
Added weight to the body as well:
{
"shipper_id": 12345,
"packages": [{
"box_shape": "FEDEX_PAK",
"length": 4,
"height": 2,
"width": 4,
"weight": 1,
"declared_value": 0,
"dry_ice_weight": 0,
}],
"recipient_address_is_residential": false,
"signature_option": "NO_SIGNATURE_REQUIRED",
"shipping_method": "FEDEX_GROUND"
}
Still the same error:
{
"error_message": "'NoneType' object has no attribute 'items'",
"param": null
}
I can’t understand what is wrong or why the payload it’s not being received.
Any clues?
Thanks!
Sérgio
Adding some new info.
It has to be USPS via Endicia
The field Delivery Confirmation has to read “Signature Required”.
I now tried
…apiverson.ordoro.com/order/1-2-TP-00016019-1/label/endicia
{
"shipper_id": 12345,
"packages": [{
"box_shape": "Flat",
"length": 4,
"height": 2,
"width": 4,
"weight": 1,
"declared_value": 0,
}],
}
And got the same error:
{
"error_message": "'NoneType' object has no attribute 'items'",
"param": null
}
Thanks!
Any updates about this one?
Hi,
No, unfortunately we still were not seeing the payload body in the request.
Hi, Sophie!
Could you please send us the body as it should be? Maybe my body has something wrong in it.
THanks
Have you tried the example from the documentation? https://devapiverson.docs.apiary.io/#reference/label/orderordernumberlabelfedex/post
We are actually not getting the body in the request, so it is difficult to tell what may or may not be included in the request.
Could you try with curl or some other http request creator to see if you are getting the same result?
Hwy Sophie,
Following the example you suggested and using curl/php:
URL: ..@apiverson.ordoro.com/order<VALID_ORDER_NUMBER>/label/fedex
curl_setopt($ch, CURLOPT_POSTFIELDS,
'{
"shipper_id": 204996,
"packages":
[{ "box_shape": "YOUR_PACKAGING",
"length": 4,
"height": 2,
"width": 4,
"declared_value": 0,
"dry_ice_weight": 0,
}],
"recipient_address_is_residential": false,
"signature_option": "NO_SIGNATURE_REQUIRED",
"shipping_method": "FEDEX_GROUND"
}'
);
string(78) "{"error_message": "'NoneType' object has no attribute 'items'", "param": null}"
Hi,
I had to update the example json for my shipper. Remove a trailing comma, because it’s not valid JSON. Add weight to the package, because it’s required. Change the key signature_option
to delivery_confirmation
. This returned a valid label created response.
{
"delivery_confirmation": "NO_SIGNATURE_REQUIRED",
"packages": [
{
"box_shape": "YOUR_PACKAGING",
"declared_value": 0,
"dry_ice_weight": 0,
"height": 2,
"length": 4,
"weight": 11,
"width": 4
}
],
"recipient_address_is_residential": false,
"shipper_id": <SHIPPER_ID>,
"shipping_method": "FEDEX_GROUND"
}
Thanks a lot, Sophie.
It works!