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
{{ message }}
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
Expectations:
Providing object id (which was created using shippo.shipment.create) and getting single rate as referenced in the doc.
Request will be send to https://api.goshippo.com/rates/ as per documentation.
Actual behaviour: const shippingRate = await shippo.shipment.retrieve(shippingRateId);
It seems that shippo.shipment.retrieve method actually does not expects shippingRateId ... instead it expects shipping id. If I provide shipping id, it simply returns all shipping rates, which is different behaviour then explained within documentation.
Rates retrieve does not work. Method does not return individual shipping rates, nor it expects individual shipment object id.
Documentation: https://goshippo.com/docs/reference/js#rates-retrieve
Expectations:
Providing object id (which was created using shippo.shipment.create) and getting single rate as referenced in the doc.
Request will be send to https://api.goshippo.com/rates/ as per documentation.
Actual behaviour:
const shippingRate = await shippo.shipment.retrieve(shippingRateId);
It seems that shippo.shipment.retrieve method actually does not expects shippingRateId ... instead it expects shipping id. If I provide shipping id, it simply returns all shipping rates, which is different behaviour then explained within documentation.
Request is sent to the https://api.goshippo.com/shipments/
The text was updated successfully, but these errors were encountered: