The purchase location feature is scheduled to be deprecated in a future version.
In the Checkouts resource, you can provide a purchaseLocation that generates a useful tax estimate for customers. The data contained in the object, along with other values, allows Digital River to estimate taxes on an order.
Optional (except for purchase locations in the United States)
ZIP or postal code
Using purchase location to get a tax estimate
A purchase location can generate a tax estimate when the customer has not yet provided a shipping or billing address. The following shows two simple POST/checkouts requests, with and without a specified purchaseLocation:
You're only required to provide a postalCode for purchase locations within the United States.
Use case: Storefronts with mostly domestic customers
Your company is located in Italy and the vast majority of your storefront customers are Italians. By specifying country, you can give them an initial tax estimate before they provide a ship to or billing address.
Use case: Different postal code values in the United States
For purchase within the United States, you might need to provide tax estimates for different delivery postal codes. The following two POST/checkouts requests specify different postalCode values in the purchaseLocation hash table:
The responses show how the initial tax estimate provided to the customer is affected by the postalCode. This is because different tax.rate values are used to compute taxes: