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.