Replies: 1 comment 2 replies
-
@gshaw thanks for your replies here! Makes sense to me! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There have been various questions around the postage rate API. I'm going to lock that issue and move the discussion here:
To get a rate using the Chit Chats API you need to create a shipment with an unknown postage type. The response will return a shipment object with an array of rates.
The ideal workflow would be to create the shipment for the order that is in the customer's cart and then show the rates from that shipment. If check out is completed, buy the postage for that shipment, if the cart is abandoned you can delete or ignore the shipment. This way the rate that was shown is guaranteed to be the rate you've shown.
I can appreciate that it seems odd that you need to create a shipment query rates.
One of the reasons for this is that if you get a rate and display it to the customer but then later create a new shipment and buy the postage there isn't any guarantee that the rates will be the same. Rates don't change often but they do change.
Beta Was this translation helpful? Give feedback.
All reactions