This file contains hidden or 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":"15.30" | |
} | |
] | |
} |
This file contains hidden or 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[predefined_package]=LargeFlatRateBox' \ | |
-d 'parcel[weight]=100.0' |
This file contains hidden or 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 file contains hidden or 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/buy \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'to[name]=Jon Calhoun' \ | |
-d 'to[street1]=388 Townsend St' \ | |
-d 'to[street2]=Apt 20' \ | |
-d 'to[city]=San Francisco' \ | |
-d 'to[state]=CA' \ | |
-d 'to[zip]=94107' \ | |
-d 'from[name]=Jarrett Streebin' \ | |
-d 'from[phone]=3235950799' \ |
This file contains hidden or 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
{ | |
"rate":{ | |
"carrier":"USPS", | |
"service":"Express", | |
"rate":"11.11" | |
}, | |
"tracking_code":"xxxxxxxxxx", | |
"label_file_name":"test.png", | |
"label_file_type":"image/png", | |
"label_url":"https://www.easypost.co/assets/test.png" |
This file contains hidden or 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/buy \ | |
-u cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi: \ | |
-d 'to[name]=Jon Calhoun' \ | |
-d 'to[street1]=388 Townsend St' \ | |
-d 'to[street2]=Apt 20' \ | |
-d 'to[city]=San Francisco' \ | |
-d 'to[state]=CA' \ | |
-d 'to[zip]=94107' \ | |
-d 'from[name]=Jarrett Streebin' \ | |
-d 'from[phone]=3237078576' \ |
This file contains hidden or 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" | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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' |