These docs are for v1.0. Click to read the latest docs for v2024.09.

Discussions

Ask a Question
Back to All

Cannot ship to domestic address in US using sandbox

I'm POST'ing to https://api.easyship.com/2023-01/rates

{
"origin_address": {
"line_1": "24700 S Main St",
"state": "CA",
"city": "Carson",
"postal_code": "90745",
"country_alpha2": "US",
"contact_name": "John Doe test",
"contact_phone": "+18773180278",
"contact_email": "[email protected]"
},
"destination_address": {
"line_1": "24700 S Main St",
"state": "CA",
"city": "Carson",
"postal_code": "90745",
"country_alpha2": "US",
"contact_name": "John Doe test",
"contact_phone": "+18773180278",
"contact_email": "[email protected]"
},
"incoterms": "DDU",
"shipping_settings": {
"units": {
"weight": "lb",
"dimensions": "in"
},
"output_currency": "USD"
},
"parcels": [
{
"total_actual_weight": 5,
"box": {
"length": 11,
"width": 11,
"height": 11
},
"items": [
{
"description": "Mouse",
"hs_code": "84716060",
"declared_currency": "USD",
"declared_customs_value": 100,
"quantity": 1
}
]
}
]
}
With my sandbox api key and I get:

"error": {
"code": "invalid_content",
"details": [
"No shipping solutions available based on the information provided"
],
"message": "The request body content is not valid.",
"request_id": "b71648a413da71321980d89f9e9b526b",
"type": "invalid_request_error"
}

With my PROD api key I get a proper response with a bunch of rates.

What needs to be done for the sandbox API to start working properly?

My goal is to create shipments in sandbox, but shipment creation is partially successful with the same error as in "rates" response.

"meta": {
"errors": [
"No shipping solutions available based on the information provided"
],
"request_id": "bac5f608936511980224d8c7bd20c166",
"status": "partial_success",
"unavailable_couriers": []
}