Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping International To Mexico GetRatesWithShipmentDetails #64

Open
abrchaves opened this issue Jul 17, 2023 · 2 comments
Open

Shipping International To Mexico GetRatesWithShipmentDetails #64

abrchaves opened this issue Jul 17, 2023 · 2 comments

Comments

@abrchaves
Copy link

Hello Devs,

I'm having an issue with this API: GetRatesWithShipmentDetails, when I create a shipping to Mexico

I'm calling it like this:

{
"ShipmentId": null,
"Shipment": {
"ValidateAddress": "no_validation",
"CarrierId": "se-2264604",
"ServiceCode": null,
"ExternalOrderId": null,
"Items": null,
"TaxIdentifiers": null,
"ExternalShipmentId": "302594bf-791e-471d-986b-b99345d331ad",
"ShipDate": "2023-07-17T13:43:45Z",
"ShipTo": {
"Name": "TEST MEXICO",
"Phone": "",
"CompanyName": "",
"AddressLine1": "AVE INTERNACIONAL 5702",
"AddressLine2": "",
"AddressLine3": null,
"CityLocality": "SINALOA",
"StateProvince": "",
"PostalCode": "82180",
"CountryCode": "MX",
"AddressResidentialIndicator": "yes"
},
"ShipFrom": null,
"WarehouseId": "se-6555950",
"ReturnTo": null,
"Confirmation": "None",
"Customs": {
"Contents": "Merchandise",
"NonDelivery": "return_to_sender",
"CustomsItems": [
{
"Description": "Vitamins",
"Quantity": 1,
"Value": {
"Currency": "USD",
"Amount": 10.5
},
"HarmonizedTariffCode": "30045099",
"CountryOfOrigin": "US",
"UnitOfMeasure": null,
"Sku": "01778",
"SkuDescription": "Super Selenium Complex, 200 mc "
}
]
},
"AdvancedOptions": null,
"OriginType": 0,
"InsuranceProvider": "None",
"Tags": null,
"OrderSourceCode": "amazon_ca",
"Packages": [
{
"PackageCode": "custom_Box1",
"Weight": {
"Value": 1,
"Unit": "Pound"
},
"Dimensions": null,
"InsuredValue": null,
"LabelMessages": null,
"ExternalPackageId": null
}
],
"Weight": null
},
"RateOptions": {
"CarrierIds": [
"se-2264604"
],
"PackageTypes": [
"package"
],
"ServiceCodes": [
"ups_worldwide_saver"
],
"CalculateTaxAmount": false,
"PreferredCurrency": "USD"
}
}

But when I want to get a label I got the next result:

{
"request_id": "bd64991e-89a5-46a4-b3af-43cf019c4ec0",
"errors": [
{
"error_source": "carrier",
"error_type": "business_rules",
"error_code": "unspecified",
"message": "A shipping carrier error occurred: A package in a Mexico shipment must have a Merchandise Description.",
"carrier_id": "se-2264604",
"carrier_code": "ups",
"carrier_name": "UPS"
}
]
}

I was checking the documentation and I found If want to send a shipping to Mexico I need to set this value on packages field: "content_description"

"packages": [
{
"content_description": "Vitamins",
"package_code": "package",
"weight": {
"value": 0.05,
"unit": "pound"
},
"dimensions": {
"unit": "inch",
"length": 15.0,
"width": 11.0,
"height": 0.25
}
}
]

So my question is: At this moment exists any way to set a value for "content_description"?

Thanks,
Abraham Chaves

@AnneOReilly
Copy link
Member

Hello @abrchaves ! Apologies for the issue - due to a regulation in Mexico, they added a new required field for shipping through the country this year that we haven't updated this SDK with yet. We will make a ticket to update this field.

@abrchaves
Copy link
Author

Thank you for your insight. Do you have an idea of when this will be available? As it is right now we can't ship to Mexico and is affecting our business. -Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants