Last active
January 19, 2016 22:47
-
-
Save tonkapark/63c56725af916c7702a6 to your computer and use it in GitHub Desktop.
TaxJar JSON POST for SmartCalcs API Taxes Calculation
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 -X POST -H "Authorization: Token token="<<API_TOKEN>>"" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{ | |
"to_country":"US", | |
"to_state": "CA", | |
"to_zip": "90210", | |
"from_state":"CA", | |
"from_zip": "90029", | |
"from_country":"US", | |
"amount": 29.94, | |
"line_items": [ | |
{"quantity": 1, "unit_price": 19.99, "product_tax_code": "31000"}, | |
{"quantity": 1, "unit_price": 9.95, "product_tax_code": "30070"} | |
], | |
"shipping": 0, | |
"nexus_addresses": [ | |
{"country": "US", "state": "CA", "zip": "90029"}, | |
{"country": "US", "state": "FL", "zip": "32605"} | |
] | |
}' 'https://api.taxjar.com/v2/taxes' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment