Address verification is one of the best failsafes against undelivered packages. It's an essential part of international operations, especially if you're just expanding into a foreign market. Having address verification as a guardrail against customer or internal error will help ensure your packages reach the right destination. Plus, we have all the client documentation and support to get you set up and verifying China addresses in minutes.
require 'easypost'
EasyPost.api_key = "<YOUR_TEST/PRODUCTION_API_KEY>"
verifiable_address = EasyPost::Address.create(
verify: true,
street1: "417 montgomery street",
street2: "FL 5",
city: "SAN FRANCISCO",
state: "CA",
zip: "94104",
country: "US",
company: "EasyPost",
phone: "415-123-4567"
)
puts verifiable_address.street1
# 417 MONTGOMERY ST
puts verifiable_address.verifications
# {"delivery": {"success":true,"errors":[]}}
Sign up and start shipping in the same day. We have our API live and ready for you to test with. We also have extensive client documentation in over six different languages to help you get started. If you have any questions, or if you want to talk logistics, feel free to reach out to one of our shipping experts.