Get Letter Pricing
get_pricingReturn the published price list for mailing physical letters through USPS: the products on sale, what each one costs, how many pages it covers, and when sales tax applies. Amounts are in US cents. Every letter is one of these prices — there is no volume discount, no per-page charge and no colour printing — so quote the tier total and say New York sales tax is added, whatever the destination. Call this before telling a user what a letter will cost. This creates nothing and mails nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | Yes | ||
| tiers | Yes | ||
| add_ons | Yes | ||
| country | Yes | ||
| version | Yes | ||
| currency | Yes | ||
| page_rules | Yes | ||
| effective_from | Yes | ||
| volume_pricing | No |