You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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! 🚀
Activity
KaseyCantu commentedon Aug 14, 2023
Hello @abrchaves 👋🏽 - from the looks of it you are attempting to make use of the
/v1/ratesShipEngine 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_codesfield is typed as anarray of strings:This means the correct usage is:
Instead of this:
I hope this helps, please let us know if there is anything else we can do to help you get shipping! 🚀
abrchaves commentedon 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:
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 commentedon Aug 15, 2023
Hello @KaseyCantu
If you have any comments, please let me know.
Thanks
abrchaves commentedon Aug 17, 2023
Hello team
Any updates related with this issue?
Thanks