This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address":{ | |
"street1":"388 TOWNSEND ST", | |
"city":"SAN FRANCISCO", | |
"state":"CA", | |
"zip":"94107" | |
}, | |
"message":"Default address: The address you entered was found but more information is needed (such as an apartment, suite, or box number) to match to a specific address." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.easypost.co/api/address/verify \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'address[street1]=388 Townsend St' \ | |
-d 'address[street2]=Apt 20' \ | |
-d 'address[city]=San Francisco' \ | |
-d 'address[state]=CA' \ | |
-d 'address[zip]=94107' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.easypost.co/api/address/verify \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'address[street1]=388 Townsend St' \ | |
-d 'address[city]=San Francisco' \ | |
-d 'address[state]=CA' \ | |
-d 'address[zip]=94107' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address":{ | |
"street1":"388 TOWNSEND ST", | |
"street2":"APT 20", | |
"city":"SAN FRANCISCO", | |
"state":"CA", | |
"zip":"94107" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address":{}, | |
"error":"Address Not Found." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.easypost.co/api/address/verify \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'address[street1]=5000 Townsend St' \ | |
-d 'address[street2]=Apt 20' \ | |
-d 'address[city]=San Francisco' \ | |
-d 'address[state]=CA' \ | |
-d 'address[zip]=94107' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.easypost.co/api/postage/rates \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'to[zip]=94107' \ | |
-d 'from[zip]=94019' \ | |
-d 'parcel[length]=10.0' \ | |
-d 'parcel[width]=5.0' \ | |
-d 'parcel[height]=8.0' \ | |
-d 'parcel[weight]=100.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rates":[ | |
{ | |
"carrier":"USPS", | |
"service":"Priority", | |
"rate":"9.12" | |
},{ | |
"carrier":"USPS", | |
"service":"Express", | |
"rate":"26.94" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.easypost.co/api/postage/rates \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'to[zip]=94107' \ | |
-d 'parcel[length]=10.0' \ | |
-d 'parcel[width]=5.0' \ | |
-d 'parcel[height]=8.0' \ | |
-d 'parcel[weight]=100.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error":"Invalid sender data. This must include a 5 digit zip code" | |
} |