Discussions
Sandbox - "Sorry, we couldn't find any shipping solutions based on the information provided."
Hi,
Why am I getting all the time the response "Sorry, we couldn't find any shipping solutions based on the information provided." calling this endpoint -> https://api.easyship.com/shipment/v1/shipments/create_and_buy_label
The same problem I had with the request rates endpoint. I had to change the sanbox key to the production key after reading some threads in "Discussions". After this change I got the list of couriers, but with the sandbox key I got "Sorry, we couldn't find any shipping solutions based on the information provided."
Please find below the body of the request to the "/shipment/v1/shipments/create_and_buy_label" endpoint:
'body' => json_encode([
'selected_courier_id' => 'b6f1d8c1-7e1e-465e-aa64-880d34662e54',
"is_insured" => false,
"destination_country_alpha2" => "US",
"destination_city" => "New York",
"destination_postal_code" => "10022",
"destination_state" => "NY",
"destination_name" => "Aloha Chen",
"destination_address_line_1" => "300 Park Avenue",
"destination_phone_number" => "+1 234-567-890",
"destination_email_address" => "[email protected]",
"seller_notes" => "VIP client",
"buyer_notes" => "Happy Birthday!",
"order_notes" => "Happy Birthday!",
"items" => [
["quantity" => 1,
"description" => "Application documents",
"category" => "documents",
"height" => 0,
"width" => 0,
"length" => 0,
"declared_currency" => "USD",
"declared_customs_value" => 0
]
],
"allow_courier_fallback" => false,
"buy_label_synchronous" => true,
"format" => "URL",
"label" => "4x6",
"commercial_invoice" => "4x6",
"packing_slip" => "4x6",
"total_actual_weight" => 0.2
])