Skip to content

add get_rate_estimate method#58

Merged
semarj merged 2 commits intoShipEngine:mainfrom
micaelaw:feature/get-rate-estimate
Apr 21, 2026
Merged

add get_rate_estimate method#58
semarj merged 2 commits intoShipEngine:mainfrom
micaelaw:feature/get-rate-estimate

Conversation

@micaelaw
Copy link
Copy Markdown
Contributor

Add new method for using the rate estimate endpoint and appropriate documentation.

@micaelaw
Copy link
Copy Markdown
Contributor Author

Hi, wanted to check in on this PR. My team is hoping to integrate rate estimate functionality into our custom fulfillment app soon. I appreciate any feedback when you have time and am happy to make changes as needed. Thank you for your time!

@semarj

@semarj
Copy link
Copy Markdown
Contributor

semarj commented Apr 21, 2026

Hello @micaelaw. What are you wanting from the rates estimate endpoint? We generally advise people to use the full /v1/rates/ endpoint with rate_type "quick" if they do not want to create a label from the rate, as it is more fully featured, but can also be run with very limited information.

Comment thread shipengine/shipengine.py Outdated
origin/destination postal codes and country codes, and package weight.
:param Union[str, Dict[str, Any], ShipEngineConfig] config: Method level configuration to set new values
for properties of the global ShipEngineConfig object.
:returns Dict[str, Any]: A list of rate estimates from the specified carriers.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a List return type right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you, updated.

@semarj
Copy link
Copy Markdown
Contributor

semarj commented Apr 21, 2026

Want me to merge this as is?

@micaelaw
Copy link
Copy Markdown
Contributor Author

Hello @micaelaw. What are you wanting from the rates estimate endpoint? We generally advise people to use the full /v1/rates/ endpoint with rate_type "quick" if they do not want to create a label from the rate, as it is more fully featured, but can also be run with very limited information.

@semarj Thanks for pointing out the quick rates functionality; I was not familiar with it. That looks like a good fit for our needs when we have a full "ship to" address. When we only have the zip code, I'd like to be able to estimate the delivery days various services will take. I wasn't able to do that with quick rates, as it required more address information beyond just the zip code.

Yes, it would be great if you could merge this in as-is. Thanks for your help!

@semarj semarj merged commit 65c99cf into ShipEngine:main Apr 21, 2026
6 checks passed
@micaelaw micaelaw deleted the feature/get-rate-estimate branch April 22, 2026 12:47
@micaelaw micaelaw mentioned this pull request Apr 23, 2026
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

Successfully merging this pull request may close these issues.

2 participants