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

Discussions

Ask a Question
Back to All

Create Shipment Error with status code = 202 (partial_success)

Hi!

I'm creating a shipment but unfortunately I'm facing error when call POST API: https://public-api.easyship.com/2024-09/shipments. The error is: "Country of sender address should be same as country of origin address"

Could you help me check why it occurs. I've already request rates before it

The body params that I try to post as below:


{
  "origin_address_id": "efdb8a01-5013-49be-a96d-deb732bac1d8",
	"destination_address": {
		"line_1": "1 Aquatic Dr",
		"state": "VIC", 
		"city": "South Melbourne",
		"postal_code": "3205",
		"contact_name": "Test Shipment",
		"contact_phone": "+61 406 433 235",
		"contact_email": "[email protected]",
		"country_alpha2": "AU"
	},
	"order_data": {
		"platform_name": "API",
		"platform_order_number": "ORD_00001"
	},
	"courier_settings": {
		"courier_service_id": "7f81ad1e-c84f-452a-a04c-15585e0ca7a3",
		"allow_fallback": true
	},
	"shipping_settings": {
		"buy_label": true,
		"buy_label_synchronous": true,
        "printing_options": {
            "format": "url", 
            "label": "A4",
            "commercial_invoice": "A4", 
            "packing_slip": "A4"
        }
	},
	"parcels": [
		{
			"items": [
				{
					"description": "Test Product",
					"category": "accessory_no_battery", 
					"sku": "Test Product",
					"quantity": 2,
					"dimensions" : {
						"length": 2.54, 
						"width": 5.08,
						"height": 7.62
					},
					"actual_weight": 2.724, 
					"declared_currency": "USD",
          "origin_country_alpha2": "AU",
					"declared_customs_value": "46.1900"
				}
			]
		}
	]
}