Discussions
Create shipment error "Invalid request" with this SKU
{
"incoterms": "DDP",
"origin_address": {
"contact_name": "Wong",
"country_alpha2": "FR",
"postal_code": "25640",
"state": "Doubs",
"line_1": "6 Route de Moncey ",
"line_2": "",
"city": "Chaudefontaine",
"contact_phone": "+852 1234 5612",
"contact_email": "[email protected]",
"company_name": "[STAGING] KYC-approved"
},
"destination_address": {
"contact_name": "Ben Suen",
"country_alpha2": "HK",
"postal_code": "0000",
"state": "Hong Kong",
"line_1": "Tung Lo Wan Road",
"line_2": "38",
"city": "Tai Hang",
"contact_phone": "+852 9877 0084",
"contact_email": "[email protected]"
},
"return_address": {
"contact_name": "Wong",
"country_alpha2": "FR",
"postal_code": "25640",
"state": "Doubs",
"line_1": "6 Route de Moncey ",
"line_2": "",
"city": "Chaudefontaine",
"contact_phone": "+852 1234 5612",
"contact_email": "[email protected]",
"company_name": "[STAGING] KYC-approved"
},
"parcels": [
{
"total_actual_weight": 100,
"items": [
{
"sku": "12345",
"description": "testproduct2",
"quantity": 4,
"declared_currency": "HKD",
"declared_customs_value": 785,
"origin_country_alpha2": "FR",
"hs_code": "5d7df2ea-6f39-4ba4-a029-4c187836b015"
}
],
"box": {
"slug": "custom-box",
"length": 30,
"width": 20,
"height": 30,
"packageWeight": 100
}
}
],
"shipping_settings": {
"units": {
"dimensions": "in",
"weight": "lb"
},
"buy_label": false
},
"eei_reference": null,
"courier_selection": {
"selected_courier_id": "1f09d069-7c0b-4d80-87dd-7917af48c692",
"apply_shipping_rules": true,
"allow_courier_fallback": false
},
"insurance": {
"is_insured": true,
"insured_amount": 4239,
"insured_currency": "HKD"
Return log with "invalid_content", we don't know the root cause to debug
Request log
{
"incoterms": "DDP",
"parcels": [
{
"total_actual_weight": null,
"items": [
{
"actual_weight": 0.090718474,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 51.09,
"description": "Toothpaste Tablets with Fluoride Minty Yuzu Flavor",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 51.09,
"quantity": 10,
"sku": "tidalminttablettin"
},
{
"actual_weight": 0.181436948,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 110.04,
"description": "Botanical Body Wash Sheets",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 110.04,
"quantity": 10,
"sku": "tidalbodyrefilltin"
},
{
"actual_weight": 0.0226796185,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 23.58,
"description": "100% Konjac Body Sponge",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 23.58,
"quantity": 20,
"sku": "860008458698"
},
{
"actual_weight": 0.1632932532,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 102.18,
"description": "3 in 1 Face Wash Beans Purifying",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 102.18,
"quantity": 10,
"sku": "tidalfacialrefillgrnt"
},
{
"actual_weight": 0.1632932532,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 102.18,
"description": "3 in 1 Face Wash Beans Calming",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 102.18,
"quantity": 10,
"sku": "tidalfacialrefillwhttin"
},
{
"actual_weight": 0.1632932532,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 102.18,
"description": "3 in 1 Face Wash Beans Brightening",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 102.18,
"quantity": 10,
"sku": "tidalfacialrefillorgt"
},
{
"actual_weight": 0.090718474,
"category": null,
"contains_battery_pi966": null,
"contains_battery_pi967": null,
"contains_liquids": null,
"declared_currency": "HKD",
"declared_customs_value": 51.09,
"description": "Toothpaste Tablets with Fluoride Cinnamon Flavor",
"dimensions": {
"length": 1.27,
"width": 1.27,
"height": 1.27
},
"hs_code": "33049900",
"origin_country_alpha2": "US",
"origin_currency": "HKD",
"origin_customs_value": 51.09,
"quantity": 10,
"sku": "tidalpinktablettin"
}
],
"box": null
}
],
"shipping_settings": {
"units": {
"dimensions": "in",
"weight": "lb"
},
"output_currency": "HKD"
},
"origin_address": {
"city": "2-6 Foo Ming Street, Causeway Bay",
"company_name": "TLE Wellness",
"contact_email": "[email protected]",
"contact_name": "Genie Cheung",
"contact_phone": "+85297915880",
"country_alpha2": "HK",
"line_1": "2K, Po Ming Building",
"line_2": null,
"postal_code": "0000",
"state": "Hong Kong"
},
"destination_address": {
"state": "Hong Kong",
"postal_code": "0000",
"contact_phone": "+852 6042 2519",
"contact_name": "Bob",
"city": "Wong Chuk Hang",
"contact_email": "[email protected]",
"line_1": "20/F Metro South Tower 1",
"line_2": "39 Wong Chuk Hang Road",
"country_alpha2": "HK"
},
"insurance": {
"is_insured": true,
"insured_currency": "HKD",
"insured_amount": 5659.2
}
}
Is there an API for getting the checkpoints/statuses from https://www.trackmyshipment.co/shipment-tracking/<easyship-tracking-id>
Is there an API for getting the checkpoints/statuses from https://www.trackmyshipment.co/shipment-tracking/?
WooCommerce HPOS Compatibility
Hello,
Pledgebox Data Push
Hi
UPS rates are not received through API
Hi Easyship support team,
EORI number for UK shipments
Hello, I know this is not strictly related to the API, but customer support is not quite aware of this technical level detail it seems, and we will need to make changes to our label creation code when sending requests to set the DDU to DDP and input the EORI in the TAX ID field as it seems to not be handled correctly by easyship.
Store Integration via API
Hi, I am connecting Easyship to our third-party fulfillment partner. They are asking for a token and secret key for the API integration. How can I generate the token and secret key for this?
Create Courier Using API
Are there any ways to create courier account via API ?
Rates API
I have a question about this endpoint https://api.easyship.com/2023-01/rates. The endpoint documentation shows that you can pass either the ID or the SKU of the product, but I'm getting this error 422
{
"error": {
"code": "invalid_content",
"details": ,
"message": "The request body content is not valid.",
"request_id": "091b71a1d17b19f63b63317d71857e0e",
"type": "invalid_request_error"
}
}
the documentation states "if you provide the box object, its dimensions will prevail over the summary dimensions of each individual item. If not specified, items dimensions are mandatory to calculate the best box size for the parcel".
I don't have the box nor the item dimensions so I can't provide them, and so I want to know why I have to pass the item dimensions if I'm passing the ID/SKU of the product and the dimensions can be obtained using that ID/SKU.