Back to all updates

almost 10 years ago

Tax and Shipping Service

The endpoint "Tax and Shipping" gives the opportunity to predict tax and shipping costs for an item.  

Use it to give your client an estimate of the total cost of one or more quantities of an item.

In the return, the "productTax" attribute is the tax on the product only, while the "tax" attribute is the tax on the product costs added to any tax on shipping.

(the "productTax" attribute needs to be truncated, that enhancement is in queue)

Several shipping options may be returned, with the "default" shipping method marked as such.

Example:

GET /AffiliatePublisherNetwork/v1/taxandshipping?prodIds=600496745&quantity=1&zip=27284 HTTP/1.1
Host: api.shop.com

Returns:

{
"state": "North Carolina",
"quotes": {
"72094": [
{
"productTax": [
0.94162500000000004529709940470638684928417205810546875
],
"estShipDate": {
"checkoutRange": "2-9 business days",
"prodPageRange": "2-9 business days"
},
"defaultMethod": false,
"method": "Value Shipping",
"id": 49,
"total": 4,
"currency": "$",
"taxType": "Tax",
"tax": 1.28,
"shoppingCartIDs": [
0
],
"taxRate": 0.0675
},
{
"productTax": [
0.94162500000000004529709940470638684928417205810546875
],
"estShipDate": {
"checkoutRange": "07-08-2016",
"prodPageRange": "07-08-2016"
},
"defaultMethod": false,
"method": "Next Day",
"id": 3,
"total": 5,
"currency": "$",
"taxType": "Tax",
"tax": 1.28,
"shoppingCartIDs": [
0
],
"taxRate": 0.0675
},
{
"productTax": [
0.94162500000000004529709940470638684928417205810546875
],
"estShipDate": {
"checkoutRange": "07-08-2016",
"prodPageRange": "07-08-2016"
},
"defaultMethod": true,
"method": "Standard Shipping",
"id": 42,
"total": 5,
"currency": "$",
"taxType": "Tax",
"tax": 1.28,
"shoppingCartIDs": [
0
],
"taxRate": 0.0675
},
{
"productTax": [
0.94162500000000004529709940470638684928417205810546875
],
"estShipDate": {
"checkoutRange": "07-11-2016",
"prodPageRange": "07-11-2016"
},
"defaultMethod": false,
"method": "3 Day Expedited Shipping (excludes Saturdays and Sundays)",
"id": 46,
"total": 11.75,
"currency": "$",
"taxType": "Tax",
"tax": 1.28,
"shoppingCartIDs": [
0
],
"taxRate": 0.0675
},
{
"productTax": [
0.94162500000000004529709940470638684928417205810546875
],
"estShipDate": {
"checkoutRange": "07-08-2016",
"prodPageRange": "07-08-2016"
},
"defaultMethod": false,
"method": "2 Day Expedited Shipping (excludes Saturdays and Sundays)",
"id": 45,
"total": 13.67,
"currency": "$",
"taxType": "Tax",
"tax": 1.28,
"shoppingCartIDs": [
0
],
"taxRate": 0.0675
},
{
"productTax": [
0.94162500000000004529709940470638684928417205810546875
],
"estShipDate": {
"checkoutRange": "07-07-2016",
"prodPageRange": "07-07-2016"
},
"defaultMethod": false,
"method": "Overnight (excludes Saturdays and Sundays)",
"id": 44,
"total": 16.53,
"currency": "$",
"taxType": "Tax",
"tax": 1.28,
"shoppingCartIDs": [
0
],
"taxRate": 0.0675
}
]
}
}