The address would need to be looked up in some cases due to different delivery costs and time estimates.

I'm sure having a publicly available API that shows the region a code is in would be fine as long as the courier honours pricing based on that information.