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

Discussions

Ask a Question
Back to All

Unable to create shipment through sandbox keys

I am getting following error while I call the shipment api to create shipment with my sandbox api key but works fine with production api key.

{
"message": "Failed to create shipment: ["error_message: Validation Failure: No credentials", "error_message: Sorry, we couldn't find any shipping solutions based on the information provided."]"
}

Below is my request body -

{
"destination_country_alpha2": "US",
"destination_city": "New York",
"destination_name": "Aloha B",
"destination_address_line_1": "300 Park Avenue",
"destination_phone_number": "+1 234-567-890",
"items": [
{
"description": "Silk dress",
"actual_weight": 1.2,
"height": 10,
"width": 15,
"length": 20,
"category": "fashion",
"declared_currency": "SGD",
"declared_customs_value": 100,
"sku": "test"
}
],
"platform_name": "Amazon",
"platform_order_number": "#1234",
"taxes_duties_paid_by": "string",
"is_insured": true,
"selected_courier_id": "b8d528a7-a2d4-4510-a7ac-11cbbb6542cd",
"destination_postal_code": 10022,
"destination_state": "NY",
"destination_address_line_2": "string",
"destination_email_address": "[email protected]"
}