Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
taxjar.taxForOrder({
from_street: '480 N Orange Ave',
from_city: 'Orlando',
from_state: 'FL',
from_zip: '32801',
from_country: 'US',
line_items: [
{
id: 1,
quantity: 1,
unit_price: 20,
product_tax_code: '31000',
discount: 7.50
},
{
id: 2,
quantity: 1,
unit_price: 5,
product_tax_code: null,
discount: 7.50
}
],
to_street: '101 S New York Ave',
to_city: 'Winter Park',
to_state: 'FL',
to_zip: '32789',
to_country: 'US',
amount: 25,
shipping: 0
});
{
"order_total_amount": 10,
"shipping": 0,
"taxable_amount": -2.5,
"amount_to_collect": -0.16,
"rate": 0.065,
"has_nexus": true,
"freight_taxable": true,
"tax_source": "destination",
"jurisdictions": {
"country": "US",
"state": "FL",
"county": "ORANGE",
"city": "WINTER PARK"
},
"breakdown": {
"taxable_amount": -2.5,
"tax_collectable": -0.16,
"combined_tax_rate": 0.065,
"state_taxable_amount": -2.5,
"state_tax_rate": 0.06,
"state_tax_collectable": -0.15,
"county_taxable_amount": -2.5,
"county_tax_rate": 0.005,
"county_tax_collectable": -0.01,
"city_taxable_amount": 0,
"city_tax_rate": 0,
"city_tax_collectable": 0,
"special_district_taxable_amount": 0,
"special_tax_rate": 0,
"special_district_tax_collectable": 0,
"shipping": {
"taxable_amount": 0,
"tax_collectable": 0,
"combined_tax_rate": 0.065,
"state_taxable_amount": 0,
"state_sales_tax_rate": 0.06,
"state_amount": 0,
"county_taxable_amount": 0,
"county_tax_rate": 0.005,
"county_amount": 0,
"city_taxable_amount": 0,
"city_tax_rate": 0,
"city_amount": 0,
"special_taxable_amount": 0,
"special_tax_rate": 0,
"special_district_amount": 0
},
"line_items": [
{
"id": "1",
"taxable_amount": 0,
"tax_collectable": 0,
"combined_tax_rate": 0,
"state_taxable_amount": 0,
"state_sales_tax_rate": 0,
"state_amount": 0,
"county_taxable_amount": 0,
"county_tax_rate": 0,
"county_amount": 0,
"city_taxable_amount": 0,
"city_tax_rate": 0,
"city_amount": 0,
"special_district_taxable_amount": 0,
"special_tax_rate": 0,
"special_district_amount": 0
},
{
"id": "2",
"taxable_amount": -2.5,
"tax_collectable": -0.16,
"combined_tax_rate": 0.065,
"state_taxable_amount": -2.5,
"state_sales_tax_rate": 0.06,
"state_amount": -0.15,
"county_taxable_amount": -2.5,
"county_tax_rate": 0.005,
"county_amount": -0.01,
"city_taxable_amount": 0,
"city_tax_rate": 0,
"city_amount": 0,
"special_district_taxable_amount": 0,
"special_tax_rate": 0,
"special_district_amount": 0
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.