Hello,
In the Fulfillment Methods settings for Delivery there is a setting “Delivery Region” where the company can specify how large of an area to deliver to. In our app when the user enters their address, we need to ensure it’s within the delivery region. How can we do this using available information/endpoints? I don’t see any endpoints that “validate” a given address against the company’s delivery region. I also don’t see any way to fetch the delivery region settings via the api.
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Locations API
Locations API
Working with Addresses
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Currently, the Square API does not provide a direct way to fetch the delivery region settings or validate a given address against the company’s delivery region. You would need to implement this functionality in your application. You could do this by storing the delivery region information in your application and then comparing the user’s address to this information.
This answer was reviewed by @Bryan-Square.