I am attempting to place an API call to add a tracking number to an automatically generated shipment.
I am posting to:
$url = “https://api.ordoro.com/shipment/5-1044-1/tracking/”;
My post payload looks like this:
"notify_cart" => true
"tracking" => "1Z85X8W00341190000"
“shipment_id” => “5-1044-1”
I am receiving this error message:
‘error_message’ => string ‘The input must be dict-like (not a : u’1Z85X8W00341190000’)’ (length=75)
‘param’ => string ‘tracking’ (length=8)
This seems to indicate that this parameter is being converted to unicode, and I found some documents online that indicate you might be using a python back-end which has trouble with certain character encodings. I have tried using the connection header to specify ISO-8859-1 encoding and typecasting all of my variables to make sure they are simple ASCII, but I have not yet been able to get around this error. Do you have any suggestions or documentation related to this? Or, perhaps, is the problem something else completely?