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 to Virgin Islands #66

Open
abrchaves opened this issue Aug 14, 2023 · 4 comments
Open

Shipping to Virgin Islands #66

abrchaves opened this issue Aug 14, 2023 · 4 comments

Comments

@abrchaves
Copy link

Rate request issue with the combination of "service_codes" and "ups_worldwide_saver" service. Please refer to the details of Zendesk ticket 3710055 with ShipEngine Support.

Our QA team can't finish end to end testing and we need to do that to go live.

Thanks for your help.

@KaseyCantu
Copy link
Collaborator

Hello @abrchaves 👋🏽 - from the looks of it you are attempting to make use of the /v1/rates ShipEngine API endpoint. It seems that you are attempting to pass "service_codes": "ups_worldwide_saver" which is incorrect according to our ShipEngine Open API Schema.

You can see here that the service_codes field is typed as an array of strings:

screenshot

This means the correct usage is:

"service_codes": [
    "ups_worldwide_saver"
],

Instead of this:

"service_codes": "ups_worldwide_saver"

I hope this helps, please let us know if there is anything else we can do to help you get shipping! 🚀

@abrchaves
Copy link
Author

abrchaves commented Aug 14, 2023

Hello @KaseyCantu

Thanks for answer, I was using the SDK to create a shipping and get a rate value to IV from NJ with "ups_worldwide_saver" as a service code.

I think the SDK builds the request in the way that you told me as a correct usage.

Share a screenshot:

image

And JSON Request:

{
"ShipmentId": null,
"Shipment": {
"ValidateAddress": "no_validation",
"CarrierId": "se-2264604",
"ServiceCode": null,
"ExternalOrderId": null,
"Items": null,
"TaxIdentifiers": null,
"ExternalShipmentId": "d6c43169-3441-4a87-ba85-bf537f471a6a",
"ShipDate": "2023-08-15T00:00:00Z",
"ShipTo": {
"Name": "TEST VIRGIN ISLANDS",
"Phone": "",
"CompanyName": "",
"AddressLine1": "394-144 HIDDEN VLY",
"AddressLine2": "",
"AddressLine3": null,
"CityLocality": "ST THOMAS",
"StateProvince": "VI",
"PostalCode": "00802",
"CountryCode": "VI",
"AddressResidentialIndicator": "yes"
},
"ShipFrom": null,
"WarehouseId": "se-6555950",
"ReturnTo": null,
"Confirmation": "None",
"Customs": {
"Contents": "Merchandise",
"NonDelivery": "return_to_sender",
"CustomsItems": [
{
"Description": "Vitamins/Books/Mags",
"Quantity": 1,
"Value": {
"Currency": "USD",
"Amount": 6
},
"HarmonizedTariffCode": "",
"CountryOfOrigin": "US",
"UnitOfMeasure": null,
"Sku": "01788",
"SkuDescription": "Melatonin 6 Hr Timed Release, "
}
]
},
"AdvancedOptions": null,
"OriginType": 0,
"InsuranceProvider": "None",
"Tags": null,
"OrderSourceCode": "amazon_ca",
"Packages": [
{
"ContentDescription": "Vitamins/Books/Mags",
"PackageCode": "custom_Box1",
"Weight": {
"Value": 0.09,
"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"
}
}

So, I don't know why I didn't get a rate, let me know if you have any comments.

Regards.

@abrchaves
Copy link
Author

Hello @KaseyCantu

If you have any comments, please let me know.

Thanks

@abrchaves
Copy link
Author

Hello team

Any updates related with this issue?

Thanks

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