super_good-solidus_taxjar 0.18.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +48 -6
- data/CHANGELOG.md +103 -1
- data/Gemfile +26 -10
- data/PULL_REQUEST_TEMPLATE.md +0 -1
- data/README.md +299 -39
- data/Rakefile +3 -0
- data/app/controllers/spree/admin/taxjar_settings_controller.rb +86 -1
- data/app/controllers/spree/admin/taxjar_transactions_controller.rb +37 -0
- data/app/controllers/spree/admin/transaction_sync_batches_controller.rb +18 -0
- data/app/jobs/super_good/solidus_taxjar/backfill_transaction_sync_batch_job.rb +23 -0
- data/app/jobs/super_good/solidus_taxjar/replace_transaction_job.rb +26 -0
- data/app/jobs/super_good/solidus_taxjar/report_transaction_job.rb +22 -0
- data/app/models/super_good/solidus_taxjar/configuration.rb +27 -0
- data/app/models/super_good/solidus_taxjar/order_transaction.rb +16 -0
- data/app/models/super_good/solidus_taxjar/refund_transaction.rb +13 -0
- data/app/models/super_good/solidus_taxjar/transaction_sync_batch.rb +11 -0
- data/app/models/super_good/solidus_taxjar/transaction_sync_log.rb +8 -0
- data/app/overrides/spree/admin/orders_controller_override.rb +12 -0
- data/app/overrides/spree/admin/shared/_order_submenu/add_taxjar_sync_history_tab.html.erb.deface +6 -0
- data/app/overrides/spree/admin/shared/_order_summary/add_taxjar_reported_at.html.erb.deface +30 -0
- data/app/overrides/spree/admin/shared/_taxes_tabs/add_configuration_menu_items.html.erb.deface +5 -0
- data/app/overrides/super_good/solidus_taxjar/spree/order_override.rb +21 -0
- data/app/views/spree/admin/orders/taxjar_transactions.html.erb +4 -0
- data/app/views/spree/admin/shared/_transaction_sync_log_table.html.erb +35 -0
- data/app/views/spree/admin/taxjar_settings/_nexus_regions.html.erb +23 -0
- data/app/views/spree/admin/taxjar_settings/_tax_categories.html.erb +41 -0
- data/app/views/spree/admin/taxjar_settings/edit.html.erb +17 -0
- data/app/views/spree/admin/taxjar_settings/edit_no_api_key.html.erb +21 -0
- data/app/views/spree/admin/transaction_sync_batches/index.html.erb +50 -0
- data/app/views/spree/admin/transaction_sync_batches/show.html.erb +7 -0
- data/bin/console +2 -0
- data/bin/rails-engine +1 -1
- data/bin/sandbox +43 -36
- data/bin/setup +3 -3
- data/config/routes.rb +13 -1
- data/db/migrate/20210908205201_create_taxjar_order_transactions.rb +16 -0
- data/db/migrate/20211008175113_create_taxjar_refund_transaction.rb +15 -0
- data/db/migrate/20211008183858_add_transaction_date_to_order_transaction.rb +5 -0
- data/db/migrate/20211119143354_create_configuration.rb +8 -0
- data/db/migrate/20220405213958_create_transaction_sync_batches.rb +7 -0
- data/db/migrate/20220405215225_create_transaction_sync_logs.rb +14 -0
- data/db/migrate/20220908181655_add_dates_to_transaction_sync_batch.rb +6 -0
- data/db/migrate/20220912182210_allow_null_transaction_sync_batches_on_logs.rb +5 -0
- data/db/migrate/20230320211309_add_refund_transaction_to_sync_logs.rb +5 -0
- data/lib/generators/super_good/solidus_taxjar/install/install_generator.rb +68 -0
- data/lib/super_good/solidus_taxjar/api.rb +41 -9
- data/lib/super_good/solidus_taxjar/api_params.rb +92 -25
- data/lib/super_good/solidus_taxjar/backfill_transactions.rb +11 -0
- data/lib/super_good/solidus_taxjar/cached_api.rb +23 -0
- data/lib/super_good/solidus_taxjar/calculator_helper.rb +33 -4
- data/lib/super_good/solidus_taxjar/discount_calculator.rb +1 -1
- data/lib/super_good/solidus_taxjar/overrides/request_override.rb +15 -0
- data/lib/super_good/solidus_taxjar/reportable.rb +91 -0
- data/lib/super_good/solidus_taxjar/reporting.rb +44 -0
- data/lib/super_good/solidus_taxjar/spree/legacy_reporting_subscriber.rb +41 -0
- data/lib/super_good/solidus_taxjar/spree/reporting_subscriber.rb +40 -0
- data/lib/super_good/solidus_taxjar/tax_calculator.rb +7 -1
- data/lib/super_good/solidus_taxjar/testing_support/factories/address_factory.rb +11 -0
- data/lib/super_good/solidus_taxjar/testing_support/factories/configuration_factory.rb +11 -0
- data/lib/super_good/solidus_taxjar/testing_support/factories/order_transaction_factory.rb +22 -0
- data/lib/super_good/solidus_taxjar/testing_support/factories/refund_transaction_factory.rb +7 -0
- data/lib/super_good/solidus_taxjar/testing_support/factories/transaction_sync_batch_factory.rb +9 -0
- data/lib/super_good/solidus_taxjar/testing_support/factories/transaction_sync_log_factory.rb +18 -0
- data/lib/super_good/solidus_taxjar/transaction_id_generator.rb +45 -0
- data/lib/super_good/solidus_taxjar/version.rb +1 -1
- data/lib/super_good/solidus_taxjar.rb +29 -2
- data/spec/features/spree/admin/backfill_transactions_spec.rb +138 -0
- data/spec/features/spree/admin/refund_spec.rb +167 -0
- data/spec/features/spree/admin/reporting_to_taxjar_spec.rb +156 -0
- data/spec/features/spree/admin/taxjar_settings_spec.rb +58 -16
- data/spec/features/spree/checkout_spec.rb +58 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/GET_sync_nexus_regions/Taxjar_API_token_is_not_set/doesn_t_make_a_request_for_the_nexus_regions.yml +57 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/GET_sync_tax_categories/Taxjar_API_token_is_not_set/doesn_t_make_a_request_for_the_tax_categories.yml +57 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_is_set/shows_the_settings_page.yml +2437 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_isn_t_set/doesn_t_show_any_other_TaxJar_features.yml +57 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_isn_t_set/shows_a_descriptive_error_message.yml +57 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_reporting_is_enabled/shows_that_reporting_is_enabled.yml +2382 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/order_is_shipped/the_user_backfills_their_transactions.yml +2511 -0
- data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/the_user_navigates_to_the_TaxJar_Settings.yml +2382 -0
- data/spec/fixtures/cassettes/Admin_Transaction_Sync_Batches/user_has_a_shipped_order/starts_a_transaction_backfill.yml +370 -0
- data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/shipping_a_complete_and_paid_order.yml +310 -0
- data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/updating_an_order_which_was_not_reported_due_to_failure/it_reports_the_order_instead_of_trying_to_replace_it.yml +794 -0
- data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/with_an_order_with_invalid_zipcode/retry_of_a_previously_failed_transaction_sync.yml +418 -0
- data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/creates_a_batch.yml +250 -0
- data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/creates_a_log_in_the_batch_with_an_order.yml +250 -0
- data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/user_supplies_a_start_date/creates_a_batch.yml +250 -0
- data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/user_supplies_a_start_date/user_supplies_start_and_end_date/creates_a_batch.yml +250 -0
- data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_CalculatorHelper/_taxable_address_/when_taxable_address_check_returns_true/with_US_address/when_the_address_is_not_within_a_nexus_region/1_3_2_2_2_1.yml +58 -0
- data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_CalculatorHelper/_taxable_address_/when_taxable_address_check_returns_true/with_US_address/when_the_address_is_within_a_nexus_region/1_3_2_2_1_1.yml +58 -0
- data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_Reporting/_refund_and_create_transaction/when_Taxjar_cannot_create_a_refund_transaction/doesn_t_create_a_new_transaction.yml +393 -0
- data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_Reporting/_refund_and_create_transaction/when_Taxjar_cannot_create_a_refund_transaction/raises_an_error.yml +393 -0
- data/spec/fixtures/cassettes/Taxjar_API_Request/logging_is_disabled/doesn_t_call_the_logger.yml +158 -0
- data/spec/fixtures/cassettes/Taxjar_API_Request/logging_is_enabled/calls_the_logger.yml +158 -0
- data/spec/fixtures/cassettes/features/spree/admin/checkout.yml +238 -0
- data/spec/fixtures/cassettes/features/spree/admin/refund.yml +1162 -0
- data/spec/jobs/super_good/solidus_taxjar/backfill_transaction_sync_batch_job_spec.rb +117 -0
- data/spec/jobs/super_good/solidus_taxjar/replace_transaction_job_spec.rb +95 -0
- data/spec/jobs/super_good/solidus_taxjar/report_transaction_job_spec.rb +76 -0
- data/spec/models/super_good/solidus_taxjar/configuration_spec.rb +79 -0
- data/spec/models/super_good/solidus_taxjar/order_transaction_spec.rb +36 -0
- data/spec/models/super_good/solidus_taxjar/transaction_sync_batch_spec.rb +48 -0
- data/spec/requests/spree/admin/order_request_spec.rb +121 -0
- data/spec/requests/spree/admin/taxjar_settings_request_spec.rb +198 -0
- data/spec/requests/spree/admin/taxjar_transactions_request_spec.rb +62 -0
- data/spec/requests/spree/admin/transaction_sync_batches_request_spec.rb +82 -0
- data/spec/spec_helper.rb +46 -3
- data/spec/subscribers/super_good/solidus_taxjar/spree/reporting_subscriber_spec.rb +278 -0
- data/spec/super_good/solidus_taxjar/addresses_spec.rb +0 -14
- data/spec/super_good/solidus_taxjar/api_params_spec.rb +261 -89
- data/spec/super_good/solidus_taxjar/api_spec.rb +152 -29
- data/spec/super_good/solidus_taxjar/backfill_transactions_spec.rb +24 -0
- data/spec/super_good/solidus_taxjar/cached_api_spec.rb +58 -0
- data/spec/super_good/solidus_taxjar/calculator_helper_spec.rb +131 -0
- data/spec/super_good/solidus_taxjar/discount_calculator_spec.rb +19 -2
- data/spec/super_good/solidus_taxjar/reportable_spec.rb +194 -0
- data/spec/super_good/solidus_taxjar/reporting_spec.rb +243 -0
- data/spec/super_good/solidus_taxjar/tax_calculator_spec.rb +19 -19
- data/spec/super_good/solidus_taxjar/tax_rate_calculator_spec.rb +8 -3
- data/spec/super_good/solidus_taxjar/transaction_id_generator_spec.rb +77 -0
- data/spec/super_good/solidus_taxjar_spec.rb +84 -0
- data/spec/support/checkoutable_store_shared_context.rb +19 -0
- data/spec/support/solidus_events_helper.rb +26 -0
- data/spec/taxjar/api/request_spec.rb +52 -0
- data/super_good-solidus_taxjar.gemspec +3 -2
- metadata +169 -17
- data/app/decorators/super_good/solidus_taxjar/spree/order_updater/fire_recalculated_event.rb +0 -18
- data/app/overrides/spree/admin/shared/_configuration_menu.rb +0 -11
- data/app/views/spree/admin/taxjar_settings/show.html.erb +0 -13
- data/spec/models/spree/order_updater_spec.rb +0 -12
@@ -0,0 +1,794 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.taxjar.com/v2/nexus/regions
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
12
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
13
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
14
|
+
Authorization:
|
15
|
+
- Bearer <BEARER_TOKEN>
|
16
|
+
X-Api-Version:
|
17
|
+
- '2020-08-07'
|
18
|
+
Plugin:
|
19
|
+
- supergoodsolidustaxjar
|
20
|
+
Connection:
|
21
|
+
- close
|
22
|
+
Host:
|
23
|
+
- api.taxjar.com
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Content-Length:
|
32
|
+
- '277'
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Date:
|
36
|
+
- Fri, 15 Dec 2023 18:36:41 GMT
|
37
|
+
X-Amzn-Requestid:
|
38
|
+
- 2bc4afa1-8013-4064-b9fb-b626a682f0a7
|
39
|
+
X-Amz-Apigw-Id:
|
40
|
+
- P_1tBG_goAMEa7Q=
|
41
|
+
X-Amzn-Trace-Id:
|
42
|
+
- Root=1-657c9cb9-58f0c7b53f5019f005267137
|
43
|
+
X-Cache:
|
44
|
+
- Miss from cloudfront
|
45
|
+
Via:
|
46
|
+
- 1.1 a8e5d5aeee6eacca5c379e5059b1f68c.cloudfront.net (CloudFront)
|
47
|
+
X-Amz-Cf-Pop:
|
48
|
+
- SEA73-P2
|
49
|
+
X-Amz-Cf-Id:
|
50
|
+
- eSpB1fiJ6eL6AIt-3LWZ3VaDaRm2UZDHs4kduFUIqog1q4KqdOhmdw==
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"regions":[{"region_code":"BC","region":"British Columbia","country_code":"CA","country":"Canada"},{"region_code":"CA","region":"California","country_code":"US","country":"United
|
54
|
+
States"},{"region_code":"NY","region":"New York","country_code":"US","country":"United
|
55
|
+
States"}]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Fri, 15 Dec 2023 18:36:41 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: https://api.taxjar.com/v2/taxes
|
61
|
+
body:
|
62
|
+
encoding: ASCII-8BIT
|
63
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"99999","to_city":"Herndon","to_state":"NY","to_street":"10
|
64
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
65
|
+
- 410790"}],"shipping":"100.0"}'
|
66
|
+
headers:
|
67
|
+
User-Agent:
|
68
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
69
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
70
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
71
|
+
Authorization:
|
72
|
+
- Bearer <BEARER_TOKEN>
|
73
|
+
X-Api-Version:
|
74
|
+
- '2020-08-07'
|
75
|
+
Plugin:
|
76
|
+
- supergoodsolidustaxjar
|
77
|
+
Connection:
|
78
|
+
- close
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=UTF-8
|
81
|
+
Host:
|
82
|
+
- api.taxjar.com
|
83
|
+
response:
|
84
|
+
status:
|
85
|
+
code: 400
|
86
|
+
message: Bad Request
|
87
|
+
headers:
|
88
|
+
Content-Type:
|
89
|
+
- application/json; charset=utf-8
|
90
|
+
Content-Length:
|
91
|
+
- '91'
|
92
|
+
Connection:
|
93
|
+
- close
|
94
|
+
Date:
|
95
|
+
- Fri, 15 Dec 2023 18:36:41 GMT
|
96
|
+
X-Amzn-Requestid:
|
97
|
+
- b18991cd-a60d-4170-8c85-0d33bfc9f8f3
|
98
|
+
X-Amz-Apigw-Id:
|
99
|
+
- P_1tEFPooAMErhg=
|
100
|
+
X-Amzn-Trace-Id:
|
101
|
+
- Root=1-657c9cb9-3fe9057c6ef709b37f395bad
|
102
|
+
X-Cache:
|
103
|
+
- Error from cloudfront
|
104
|
+
Via:
|
105
|
+
- 1.1 d2575afea3774df33dcf5e5ff475025e.cloudfront.net (CloudFront)
|
106
|
+
X-Amz-Cf-Pop:
|
107
|
+
- SEA73-P2
|
108
|
+
X-Amz-Cf-Id:
|
109
|
+
- EHxEWIwBfT1DGoLRELLFNSLo3W1CoCDO_-7v_wvNZnoPu1bHP6Gwfg==
|
110
|
+
body:
|
111
|
+
encoding: UTF-8
|
112
|
+
string: '{"status":400,"error":"Bad Request","detail":"to_zip 99999 is not used
|
113
|
+
within to_state NY"}'
|
114
|
+
http_version:
|
115
|
+
recorded_at: Fri, 15 Dec 2023 18:36:41 GMT
|
116
|
+
- request:
|
117
|
+
method: post
|
118
|
+
uri: https://api.taxjar.com/v2/taxes
|
119
|
+
body:
|
120
|
+
encoding: ASCII-8BIT
|
121
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"99999","to_city":"Herndon","to_state":"NY","to_street":"10
|
122
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
123
|
+
- 410790"}],"shipping":"100.0"}'
|
124
|
+
headers:
|
125
|
+
User-Agent:
|
126
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
127
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
128
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
129
|
+
Authorization:
|
130
|
+
- Bearer <BEARER_TOKEN>
|
131
|
+
X-Api-Version:
|
132
|
+
- '2020-08-07'
|
133
|
+
Plugin:
|
134
|
+
- supergoodsolidustaxjar
|
135
|
+
Connection:
|
136
|
+
- close
|
137
|
+
Content-Type:
|
138
|
+
- application/json; charset=UTF-8
|
139
|
+
Host:
|
140
|
+
- api.taxjar.com
|
141
|
+
response:
|
142
|
+
status:
|
143
|
+
code: 400
|
144
|
+
message: Bad Request
|
145
|
+
headers:
|
146
|
+
Content-Type:
|
147
|
+
- application/json; charset=utf-8
|
148
|
+
Content-Length:
|
149
|
+
- '91'
|
150
|
+
Connection:
|
151
|
+
- close
|
152
|
+
Date:
|
153
|
+
- Fri, 15 Dec 2023 18:36:41 GMT
|
154
|
+
X-Amzn-Requestid:
|
155
|
+
- a3e66767-bb0a-4539-81c0-23b06aa02e48
|
156
|
+
X-Amz-Apigw-Id:
|
157
|
+
- P_1tGGzjIAMEAcQ=
|
158
|
+
X-Amzn-Trace-Id:
|
159
|
+
- Root=1-657c9cb9-60a4a50c2a5268de7202656f
|
160
|
+
X-Cache:
|
161
|
+
- Error from cloudfront
|
162
|
+
Via:
|
163
|
+
- 1.1 25b9a991f871f75614e7f92f97b136a4.cloudfront.net (CloudFront)
|
164
|
+
X-Amz-Cf-Pop:
|
165
|
+
- SEA73-P2
|
166
|
+
X-Amz-Cf-Id:
|
167
|
+
- xmF_OU795uRHIpt9BpMelCR4oYjREAx3S2z_2ftI4ejVSjfzaa8i1A==
|
168
|
+
body:
|
169
|
+
encoding: UTF-8
|
170
|
+
string: '{"status":400,"error":"Bad Request","detail":"to_zip 99999 is not used
|
171
|
+
within to_state NY"}'
|
172
|
+
http_version:
|
173
|
+
recorded_at: Fri, 15 Dec 2023 18:36:41 GMT
|
174
|
+
- request:
|
175
|
+
method: post
|
176
|
+
uri: https://api.taxjar.com/v2/taxes
|
177
|
+
body:
|
178
|
+
encoding: ASCII-8BIT
|
179
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"99999","to_city":"Herndon","to_state":"NY","to_street":"10
|
180
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
181
|
+
- 410790"}],"shipping":"100.0"}'
|
182
|
+
headers:
|
183
|
+
User-Agent:
|
184
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
185
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
186
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
187
|
+
Authorization:
|
188
|
+
- Bearer <BEARER_TOKEN>
|
189
|
+
X-Api-Version:
|
190
|
+
- '2020-08-07'
|
191
|
+
Plugin:
|
192
|
+
- supergoodsolidustaxjar
|
193
|
+
Connection:
|
194
|
+
- close
|
195
|
+
Content-Type:
|
196
|
+
- application/json; charset=UTF-8
|
197
|
+
Host:
|
198
|
+
- api.taxjar.com
|
199
|
+
response:
|
200
|
+
status:
|
201
|
+
code: 400
|
202
|
+
message: Bad Request
|
203
|
+
headers:
|
204
|
+
Content-Type:
|
205
|
+
- application/json; charset=utf-8
|
206
|
+
Content-Length:
|
207
|
+
- '91'
|
208
|
+
Connection:
|
209
|
+
- close
|
210
|
+
Date:
|
211
|
+
- Fri, 15 Dec 2023 18:36:42 GMT
|
212
|
+
X-Amzn-Requestid:
|
213
|
+
- 1df28c71-ffab-4545-9a44-43cd2bcc5452
|
214
|
+
X-Amz-Apigw-Id:
|
215
|
+
- P_1tOHf-oAMEpwg=
|
216
|
+
X-Amzn-Trace-Id:
|
217
|
+
- Root=1-657c9cba-1766ff8b07afe51751bab726
|
218
|
+
X-Cache:
|
219
|
+
- Error from cloudfront
|
220
|
+
Via:
|
221
|
+
- 1.1 73b60e9a9fd08eae9e034cedba707280.cloudfront.net (CloudFront)
|
222
|
+
X-Amz-Cf-Pop:
|
223
|
+
- SEA73-P2
|
224
|
+
X-Amz-Cf-Id:
|
225
|
+
- jD2RnXb7u6N4AqU3qibZw0Bkm0ZD1q1FgCMMmeoZiQiXNPJd5QLqQw==
|
226
|
+
body:
|
227
|
+
encoding: UTF-8
|
228
|
+
string: '{"status":400,"error":"Bad Request","detail":"to_zip 99999 is not used
|
229
|
+
within to_state NY"}'
|
230
|
+
http_version:
|
231
|
+
recorded_at: Fri, 15 Dec 2023 18:36:42 GMT
|
232
|
+
- request:
|
233
|
+
method: post
|
234
|
+
uri: https://api.taxjar.com/v2/transactions/orders
|
235
|
+
body:
|
236
|
+
encoding: ASCII-8BIT
|
237
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"99999","to_city":"Herndon","to_state":"NY","to_street":"10
|
238
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"product_identifier":"SKU-1","description":"Product
|
239
|
+
#1 - 1856 - Master","product_tax_code":"TaxCode - 410790","unit_price":"10.0","discount":0,"sales_tax":"0.0"}],"transaction_id":"R782923171","transaction_date":"2023-12-15T18:36:41Z","amount":"110.0","shipping":"100.0","sales_tax":"0.0"}'
|
240
|
+
headers:
|
241
|
+
User-Agent:
|
242
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
243
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
244
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
245
|
+
Authorization:
|
246
|
+
- Bearer <BEARER_TOKEN>
|
247
|
+
X-Api-Version:
|
248
|
+
- '2020-08-07'
|
249
|
+
Plugin:
|
250
|
+
- supergoodsolidustaxjar
|
251
|
+
Connection:
|
252
|
+
- close
|
253
|
+
Content-Type:
|
254
|
+
- application/json; charset=UTF-8
|
255
|
+
Host:
|
256
|
+
- api.taxjar.com
|
257
|
+
response:
|
258
|
+
status:
|
259
|
+
code: 400
|
260
|
+
message: Bad Request
|
261
|
+
headers:
|
262
|
+
Content-Type:
|
263
|
+
- application/json; charset=utf-8
|
264
|
+
Content-Length:
|
265
|
+
- '91'
|
266
|
+
Connection:
|
267
|
+
- close
|
268
|
+
Date:
|
269
|
+
- Fri, 15 Dec 2023 18:36:42 GMT
|
270
|
+
X-Amzn-Requestid:
|
271
|
+
- 7cdb0ba1-53f2-4050-a097-3982c657d4e7
|
272
|
+
X-Amzn-Remapped-Content-Length:
|
273
|
+
- '91'
|
274
|
+
X-Amzn-Remapped-Connection:
|
275
|
+
- keep-alive
|
276
|
+
X-Request-Id:
|
277
|
+
- F6EVKbKgVGMNqo0B3iFj
|
278
|
+
X-Api-Version:
|
279
|
+
- '2020-08-07'
|
280
|
+
X-Amz-Apigw-Id:
|
281
|
+
- P_1tQENQoAMEREw=
|
282
|
+
Cache-Control:
|
283
|
+
- max-age=0, private, must-revalidate
|
284
|
+
X-Amzn-Remapped-Server:
|
285
|
+
- Cowboy
|
286
|
+
X-Amzn-Remapped-Date:
|
287
|
+
- Fri, 15 Dec 2023 18:36:42 GMT
|
288
|
+
X-Cache:
|
289
|
+
- Error from cloudfront
|
290
|
+
Via:
|
291
|
+
- 1.1 79880188a81becf1687ba18c0e064230.cloudfront.net (CloudFront)
|
292
|
+
X-Amz-Cf-Pop:
|
293
|
+
- SEA73-P2
|
294
|
+
X-Amz-Cf-Id:
|
295
|
+
- k8eO9ZyStm5gncq3gjERM1qzlckRrDm99zTRjDUwvm-GaxoN0bnP6A==
|
296
|
+
body:
|
297
|
+
encoding: UTF-8
|
298
|
+
string: '{"status":400,"error":"Bad Request","detail":"to_zip 99999 is not used
|
299
|
+
within to_state NY"}'
|
300
|
+
http_version:
|
301
|
+
recorded_at: Fri, 15 Dec 2023 18:36:42 GMT
|
302
|
+
- request:
|
303
|
+
method: post
|
304
|
+
uri: https://api.taxjar.com/v2/taxes
|
305
|
+
body:
|
306
|
+
encoding: ASCII-8BIT
|
307
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
308
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
309
|
+
- 410790"}],"shipping":"100.0"}'
|
310
|
+
headers:
|
311
|
+
User-Agent:
|
312
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
313
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
314
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
315
|
+
Authorization:
|
316
|
+
- Bearer <BEARER_TOKEN>
|
317
|
+
X-Api-Version:
|
318
|
+
- '2020-08-07'
|
319
|
+
Plugin:
|
320
|
+
- supergoodsolidustaxjar
|
321
|
+
Connection:
|
322
|
+
- close
|
323
|
+
Content-Type:
|
324
|
+
- application/json; charset=UTF-8
|
325
|
+
Host:
|
326
|
+
- api.taxjar.com
|
327
|
+
response:
|
328
|
+
status:
|
329
|
+
code: 200
|
330
|
+
message: OK
|
331
|
+
headers:
|
332
|
+
Content-Type:
|
333
|
+
- application/json; charset=utf-8
|
334
|
+
Content-Length:
|
335
|
+
- '1487'
|
336
|
+
Connection:
|
337
|
+
- close
|
338
|
+
Date:
|
339
|
+
- Fri, 15 Dec 2023 18:36:43 GMT
|
340
|
+
X-Amzn-Requestid:
|
341
|
+
- 8914a8fb-08b1-4c39-9260-30714c2e9fcc
|
342
|
+
Access-Control-Allow-Origin:
|
343
|
+
- https://developers.taxjar.com
|
344
|
+
X-Amz-Apigw-Id:
|
345
|
+
- P_1tYE10IAMEECw=
|
346
|
+
X-Amzn-Trace-Id:
|
347
|
+
- Root=1-657c9cbb-772a21fe0452f08d204d5478
|
348
|
+
X-Cache:
|
349
|
+
- Miss from cloudfront
|
350
|
+
Via:
|
351
|
+
- 1.1 d2575afea3774df33dcf5e5ff475025e.cloudfront.net (CloudFront)
|
352
|
+
X-Amz-Cf-Pop:
|
353
|
+
- SEA73-P2
|
354
|
+
X-Amz-Cf-Id:
|
355
|
+
- Y3YGzvpPMKFKnB3qmBWpJhPcGFAPZYKNij5FCW8-dOjrT-XNxqcLYA==
|
356
|
+
body:
|
357
|
+
encoding: UTF-8
|
358
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
359
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
360
|
+
http_version:
|
361
|
+
recorded_at: Fri, 15 Dec 2023 18:36:43 GMT
|
362
|
+
- request:
|
363
|
+
method: post
|
364
|
+
uri: https://api.taxjar.com/v2/taxes
|
365
|
+
body:
|
366
|
+
encoding: ASCII-8BIT
|
367
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
368
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
369
|
+
- 410790"}],"shipping":"100.0"}'
|
370
|
+
headers:
|
371
|
+
User-Agent:
|
372
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
373
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
374
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
375
|
+
Authorization:
|
376
|
+
- Bearer <BEARER_TOKEN>
|
377
|
+
X-Api-Version:
|
378
|
+
- '2020-08-07'
|
379
|
+
Plugin:
|
380
|
+
- supergoodsolidustaxjar
|
381
|
+
Connection:
|
382
|
+
- close
|
383
|
+
Content-Type:
|
384
|
+
- application/json; charset=UTF-8
|
385
|
+
Host:
|
386
|
+
- api.taxjar.com
|
387
|
+
response:
|
388
|
+
status:
|
389
|
+
code: 200
|
390
|
+
message: OK
|
391
|
+
headers:
|
392
|
+
Content-Type:
|
393
|
+
- application/json; charset=utf-8
|
394
|
+
Content-Length:
|
395
|
+
- '1487'
|
396
|
+
Connection:
|
397
|
+
- close
|
398
|
+
Date:
|
399
|
+
- Fri, 15 Dec 2023 18:36:44 GMT
|
400
|
+
X-Amzn-Requestid:
|
401
|
+
- 73b025dd-907f-42a7-8679-72a516500ff4
|
402
|
+
Access-Control-Allow-Origin:
|
403
|
+
- https://developers.taxjar.com
|
404
|
+
X-Amz-Apigw-Id:
|
405
|
+
- P_1tfHrmoAMETyg=
|
406
|
+
X-Amzn-Trace-Id:
|
407
|
+
- Root=1-657c9cbc-081dd70f53e8174844a52672
|
408
|
+
X-Cache:
|
409
|
+
- Miss from cloudfront
|
410
|
+
Via:
|
411
|
+
- 1.1 2a44ef7b9d28e74c78ffadeedcbb887c.cloudfront.net (CloudFront)
|
412
|
+
X-Amz-Cf-Pop:
|
413
|
+
- SEA73-P2
|
414
|
+
X-Amz-Cf-Id:
|
415
|
+
- SwHa5BbEbuWIeI61hRgfaOKCNUMM8KZWJXQOAz8UGYSSqjduas5hxQ==
|
416
|
+
body:
|
417
|
+
encoding: UTF-8
|
418
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
419
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
420
|
+
http_version:
|
421
|
+
recorded_at: Fri, 15 Dec 2023 18:36:44 GMT
|
422
|
+
- request:
|
423
|
+
method: post
|
424
|
+
uri: https://api.taxjar.com/v2/taxes
|
425
|
+
body:
|
426
|
+
encoding: ASCII-8BIT
|
427
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
428
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
429
|
+
- 410790"}],"shipping":"100.0"}'
|
430
|
+
headers:
|
431
|
+
User-Agent:
|
432
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
433
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
434
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
435
|
+
Authorization:
|
436
|
+
- Bearer <BEARER_TOKEN>
|
437
|
+
X-Api-Version:
|
438
|
+
- '2020-08-07'
|
439
|
+
Plugin:
|
440
|
+
- supergoodsolidustaxjar
|
441
|
+
Connection:
|
442
|
+
- close
|
443
|
+
Content-Type:
|
444
|
+
- application/json; charset=UTF-8
|
445
|
+
Host:
|
446
|
+
- api.taxjar.com
|
447
|
+
response:
|
448
|
+
status:
|
449
|
+
code: 200
|
450
|
+
message: OK
|
451
|
+
headers:
|
452
|
+
Content-Type:
|
453
|
+
- application/json; charset=utf-8
|
454
|
+
Content-Length:
|
455
|
+
- '1487'
|
456
|
+
Connection:
|
457
|
+
- close
|
458
|
+
Date:
|
459
|
+
- Fri, 15 Dec 2023 18:36:44 GMT
|
460
|
+
X-Amzn-Requestid:
|
461
|
+
- 23c59d0c-51f3-4794-8057-83d172f9d807
|
462
|
+
Access-Control-Allow-Origin:
|
463
|
+
- https://developers.taxjar.com
|
464
|
+
X-Amz-Apigw-Id:
|
465
|
+
- P_1tiGBCIAMEHJg=
|
466
|
+
X-Amzn-Trace-Id:
|
467
|
+
- Root=1-657c9cbc-03aff3025808755342dd51b9
|
468
|
+
X-Cache:
|
469
|
+
- Miss from cloudfront
|
470
|
+
Via:
|
471
|
+
- 1.1 d2575afea3774df33dcf5e5ff475025e.cloudfront.net (CloudFront)
|
472
|
+
X-Amz-Cf-Pop:
|
473
|
+
- SEA73-P2
|
474
|
+
X-Amz-Cf-Id:
|
475
|
+
- x5YjSpOBykbkqOuTNHMoliOrrkqKE5fXOFDyCepDK211EhzYk1kYhg==
|
476
|
+
body:
|
477
|
+
encoding: UTF-8
|
478
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
479
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
480
|
+
http_version:
|
481
|
+
recorded_at: Fri, 15 Dec 2023 18:36:44 GMT
|
482
|
+
- request:
|
483
|
+
method: post
|
484
|
+
uri: https://api.taxjar.com/v2/taxes
|
485
|
+
body:
|
486
|
+
encoding: ASCII-8BIT
|
487
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
488
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
489
|
+
- 410790"}],"shipping":"100.0"}'
|
490
|
+
headers:
|
491
|
+
User-Agent:
|
492
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
493
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
494
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
495
|
+
Authorization:
|
496
|
+
- Bearer <BEARER_TOKEN>
|
497
|
+
X-Api-Version:
|
498
|
+
- '2020-08-07'
|
499
|
+
Plugin:
|
500
|
+
- supergoodsolidustaxjar
|
501
|
+
Connection:
|
502
|
+
- close
|
503
|
+
Content-Type:
|
504
|
+
- application/json; charset=UTF-8
|
505
|
+
Host:
|
506
|
+
- api.taxjar.com
|
507
|
+
response:
|
508
|
+
status:
|
509
|
+
code: 200
|
510
|
+
message: OK
|
511
|
+
headers:
|
512
|
+
Content-Type:
|
513
|
+
- application/json; charset=utf-8
|
514
|
+
Content-Length:
|
515
|
+
- '1487'
|
516
|
+
Connection:
|
517
|
+
- close
|
518
|
+
Date:
|
519
|
+
- Fri, 15 Dec 2023 18:36:45 GMT
|
520
|
+
X-Amzn-Requestid:
|
521
|
+
- 36af8d7d-cc56-4212-83b5-4b00632ab7d7
|
522
|
+
Access-Control-Allow-Origin:
|
523
|
+
- https://developers.taxjar.com
|
524
|
+
X-Amz-Apigw-Id:
|
525
|
+
- P_1tmHz_oAMEPrQ=
|
526
|
+
X-Amzn-Trace-Id:
|
527
|
+
- Root=1-657c9cbd-50463d2901ef0bce7970d7dc
|
528
|
+
X-Cache:
|
529
|
+
- Miss from cloudfront
|
530
|
+
Via:
|
531
|
+
- 1.1 73b60e9a9fd08eae9e034cedba707280.cloudfront.net (CloudFront)
|
532
|
+
X-Amz-Cf-Pop:
|
533
|
+
- SEA73-P2
|
534
|
+
X-Amz-Cf-Id:
|
535
|
+
- ufVPDs8pA-hs6urIr8IBxpJ8CEKdQNoZLBaXUYNRnznKw5tsyI7-BA==
|
536
|
+
body:
|
537
|
+
encoding: UTF-8
|
538
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
539
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
540
|
+
http_version:
|
541
|
+
recorded_at: Fri, 15 Dec 2023 18:36:45 GMT
|
542
|
+
- request:
|
543
|
+
method: post
|
544
|
+
uri: https://api.taxjar.com/v2/taxes
|
545
|
+
body:
|
546
|
+
encoding: ASCII-8BIT
|
547
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
548
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
549
|
+
- 410790"}],"shipping":"100.0"}'
|
550
|
+
headers:
|
551
|
+
User-Agent:
|
552
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
553
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
554
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
555
|
+
Authorization:
|
556
|
+
- Bearer <BEARER_TOKEN>
|
557
|
+
X-Api-Version:
|
558
|
+
- '2020-08-07'
|
559
|
+
Plugin:
|
560
|
+
- supergoodsolidustaxjar
|
561
|
+
Connection:
|
562
|
+
- close
|
563
|
+
Content-Type:
|
564
|
+
- application/json; charset=UTF-8
|
565
|
+
Host:
|
566
|
+
- api.taxjar.com
|
567
|
+
response:
|
568
|
+
status:
|
569
|
+
code: 200
|
570
|
+
message: OK
|
571
|
+
headers:
|
572
|
+
Content-Type:
|
573
|
+
- application/json; charset=utf-8
|
574
|
+
Content-Length:
|
575
|
+
- '1487'
|
576
|
+
Connection:
|
577
|
+
- close
|
578
|
+
Date:
|
579
|
+
- Fri, 15 Dec 2023 18:36:45 GMT
|
580
|
+
X-Amzn-Requestid:
|
581
|
+
- 9a3cc2b3-59ea-4be8-8550-a9f41c13451d
|
582
|
+
Access-Control-Allow-Origin:
|
583
|
+
- https://developers.taxjar.com
|
584
|
+
X-Amz-Apigw-Id:
|
585
|
+
- P_1trECgoAMEO9w=
|
586
|
+
X-Amzn-Trace-Id:
|
587
|
+
- Root=1-657c9cbd-749282cc3fbf209479aa608b
|
588
|
+
X-Cache:
|
589
|
+
- Miss from cloudfront
|
590
|
+
Via:
|
591
|
+
- 1.1 25b9a991f871f75614e7f92f97b136a4.cloudfront.net (CloudFront)
|
592
|
+
X-Amz-Cf-Pop:
|
593
|
+
- SEA73-P2
|
594
|
+
X-Amz-Cf-Id:
|
595
|
+
- jlSKf1mxqVkO_Ei42Bw0iiZgE--p1B0nwbFLniRT1pHaFmOBRLFtDg==
|
596
|
+
body:
|
597
|
+
encoding: UTF-8
|
598
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
599
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
600
|
+
http_version:
|
601
|
+
recorded_at: Fri, 15 Dec 2023 18:36:45 GMT
|
602
|
+
- request:
|
603
|
+
method: post
|
604
|
+
uri: https://api.taxjar.com/v2/taxes
|
605
|
+
body:
|
606
|
+
encoding: ASCII-8BIT
|
607
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
608
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
609
|
+
- 410790"}],"shipping":"100.0"}'
|
610
|
+
headers:
|
611
|
+
User-Agent:
|
612
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
613
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
614
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
615
|
+
Authorization:
|
616
|
+
- Bearer <BEARER_TOKEN>
|
617
|
+
X-Api-Version:
|
618
|
+
- '2020-08-07'
|
619
|
+
Plugin:
|
620
|
+
- supergoodsolidustaxjar
|
621
|
+
Connection:
|
622
|
+
- close
|
623
|
+
Content-Type:
|
624
|
+
- application/json; charset=UTF-8
|
625
|
+
Host:
|
626
|
+
- api.taxjar.com
|
627
|
+
response:
|
628
|
+
status:
|
629
|
+
code: 200
|
630
|
+
message: OK
|
631
|
+
headers:
|
632
|
+
Content-Type:
|
633
|
+
- application/json; charset=utf-8
|
634
|
+
Content-Length:
|
635
|
+
- '1487'
|
636
|
+
Connection:
|
637
|
+
- close
|
638
|
+
Date:
|
639
|
+
- Fri, 15 Dec 2023 18:36:46 GMT
|
640
|
+
X-Amzn-Requestid:
|
641
|
+
- 74cd08e9-cdc9-480d-874d-126e0b75f711
|
642
|
+
Access-Control-Allow-Origin:
|
643
|
+
- https://developers.taxjar.com
|
644
|
+
X-Amz-Apigw-Id:
|
645
|
+
- P_1tuHN0IAMEa7Q=
|
646
|
+
X-Amzn-Trace-Id:
|
647
|
+
- Root=1-657c9cbd-489bb91b21de6ade70ccf543
|
648
|
+
X-Cache:
|
649
|
+
- Miss from cloudfront
|
650
|
+
Via:
|
651
|
+
- 1.1 d8d9c12d1a621129f4bc739038e7c72e.cloudfront.net (CloudFront)
|
652
|
+
X-Amz-Cf-Pop:
|
653
|
+
- SEA73-P2
|
654
|
+
X-Amz-Cf-Id:
|
655
|
+
- 9FHb4OIGDHluRCV81zTisb9UGykCorMaUMCjWXEG7NLzOd6gmPtMjw==
|
656
|
+
body:
|
657
|
+
encoding: UTF-8
|
658
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
659
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
660
|
+
http_version:
|
661
|
+
recorded_at: Fri, 15 Dec 2023 18:36:45 GMT
|
662
|
+
- request:
|
663
|
+
method: post
|
664
|
+
uri: https://api.taxjar.com/v2/taxes
|
665
|
+
body:
|
666
|
+
encoding: ASCII-8BIT
|
667
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
668
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
|
669
|
+
- 410790"}],"shipping":"100.0"}'
|
670
|
+
headers:
|
671
|
+
User-Agent:
|
672
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
673
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
674
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
675
|
+
Authorization:
|
676
|
+
- Bearer <BEARER_TOKEN>
|
677
|
+
X-Api-Version:
|
678
|
+
- '2020-08-07'
|
679
|
+
Plugin:
|
680
|
+
- supergoodsolidustaxjar
|
681
|
+
Connection:
|
682
|
+
- close
|
683
|
+
Content-Type:
|
684
|
+
- application/json; charset=UTF-8
|
685
|
+
Host:
|
686
|
+
- api.taxjar.com
|
687
|
+
response:
|
688
|
+
status:
|
689
|
+
code: 200
|
690
|
+
message: OK
|
691
|
+
headers:
|
692
|
+
Content-Type:
|
693
|
+
- application/json; charset=utf-8
|
694
|
+
Content-Length:
|
695
|
+
- '1487'
|
696
|
+
Connection:
|
697
|
+
- close
|
698
|
+
Date:
|
699
|
+
- Fri, 15 Dec 2023 18:36:46 GMT
|
700
|
+
X-Amzn-Requestid:
|
701
|
+
- d09b080b-2733-4716-9f50-be010a5a6bf4
|
702
|
+
Access-Control-Allow-Origin:
|
703
|
+
- https://developers.taxjar.com
|
704
|
+
X-Amz-Apigw-Id:
|
705
|
+
- P_1tyGdZIAMEUnQ=
|
706
|
+
X-Amzn-Trace-Id:
|
707
|
+
- Root=1-657c9cbe-5ab8d1597f51b9352852bcfe
|
708
|
+
X-Cache:
|
709
|
+
- Miss from cloudfront
|
710
|
+
Via:
|
711
|
+
- 1.1 34c44cb7892e57a3b6c51812bcf68ee4.cloudfront.net (CloudFront)
|
712
|
+
X-Amz-Cf-Pop:
|
713
|
+
- SEA73-P2
|
714
|
+
X-Amz-Cf-Id:
|
715
|
+
- 05nu-_1vBDWTy54KmDRJpbGSkmLKvdsq9WZeEEaw9VJFEiwSiBopMA==
|
716
|
+
body:
|
717
|
+
encoding: UTF-8
|
718
|
+
string: '{"tax":{"amount_to_collect":9.76,"breakdown":{"city_tax_collectable":5.36,"city_tax_rate":0.04875,"city_taxable_amount":110.0,"combined_tax_rate":0.08875,"county_tax_collectable":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"line_items":[{"city_amount":0.49,"city_tax_rate":0.04875,"city_taxable_amount":10.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"1","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.4,"state_sales_tax_rate":0.04,"state_taxable_amount":10.0,"tax_collectable":0.89,"taxable_amount":10.0}],"shipping":{"city_amount":4.88,"city_tax_rate":0.04875,"city_taxable_amount":100.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"special_district_amount":0.0,"special_tax_rate":0.0,"special_taxable_amount":0.0,"state_amount":4.0,"state_sales_tax_rate":0.04,"state_taxable_amount":100.0,"tax_collectable":8.88,"taxable_amount":100.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":4.4,"state_tax_rate":0.04,"state_taxable_amount":110.0,"tax_collectable":9.76,"taxable_amount":110.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
|
719
|
+
YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":110.0,"rate":0.08875,"shipping":100.0,"tax_source":"destination","taxable_amount":110.0}}'
|
720
|
+
http_version:
|
721
|
+
recorded_at: Fri, 15 Dec 2023 18:36:46 GMT
|
722
|
+
- request:
|
723
|
+
method: post
|
724
|
+
uri: https://api.taxjar.com/v2/transactions/orders
|
725
|
+
body:
|
726
|
+
encoding: ASCII-8BIT
|
727
|
+
string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"10
|
728
|
+
Lovely Street","line_items":[{"id":1,"quantity":1,"product_identifier":"SKU-1","description":"Product
|
729
|
+
#1 - 1856 - Master","product_tax_code":"TaxCode - 410790","unit_price":"10.0","discount":0,"sales_tax":"0.89"}],"transaction_id":"R782923171","transaction_date":"2023-12-15T18:36:41Z","amount":"110.0","shipping":"100.0","sales_tax":"9.77"}'
|
730
|
+
headers:
|
731
|
+
User-Agent:
|
732
|
+
- 'TaxJar/Ruby (Darwin Noahs-MBP.lan 21.6.0 Darwin Kernel Version 21.6.0: Mon
|
733
|
+
Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
|
734
|
+
arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
|
735
|
+
Authorization:
|
736
|
+
- Bearer <BEARER_TOKEN>
|
737
|
+
X-Api-Version:
|
738
|
+
- '2020-08-07'
|
739
|
+
Plugin:
|
740
|
+
- supergoodsolidustaxjar
|
741
|
+
Connection:
|
742
|
+
- close
|
743
|
+
Content-Type:
|
744
|
+
- application/json; charset=UTF-8
|
745
|
+
Host:
|
746
|
+
- api.taxjar.com
|
747
|
+
response:
|
748
|
+
status:
|
749
|
+
code: 201
|
750
|
+
message: Created
|
751
|
+
headers:
|
752
|
+
Content-Type:
|
753
|
+
- application/json; charset=utf-8
|
754
|
+
Content-Length:
|
755
|
+
- '643'
|
756
|
+
Connection:
|
757
|
+
- close
|
758
|
+
Date:
|
759
|
+
- Fri, 15 Dec 2023 18:36:46 GMT
|
760
|
+
X-Amzn-Requestid:
|
761
|
+
- b427545b-a54d-4ad3-97af-92a188fb5450
|
762
|
+
X-Amzn-Remapped-Content-Length:
|
763
|
+
- '643'
|
764
|
+
X-Amzn-Remapped-Connection:
|
765
|
+
- keep-alive
|
766
|
+
X-Request-Id:
|
767
|
+
- F6EVKpe20isoeLwcBTXB
|
768
|
+
X-Api-Version:
|
769
|
+
- '2020-08-07'
|
770
|
+
X-Amz-Apigw-Id:
|
771
|
+
- P_1t2GdzIAMEr7Q=
|
772
|
+
Cache-Control:
|
773
|
+
- max-age=0, private, must-revalidate
|
774
|
+
X-Amzn-Remapped-Server:
|
775
|
+
- Cowboy
|
776
|
+
X-Amzn-Remapped-Date:
|
777
|
+
- Fri, 15 Dec 2023 18:36:46 GMT
|
778
|
+
X-Cache:
|
779
|
+
- Miss from cloudfront
|
780
|
+
Via:
|
781
|
+
- 1.1 d2575afea3774df33dcf5e5ff475025e.cloudfront.net (CloudFront)
|
782
|
+
X-Amz-Cf-Pop:
|
783
|
+
- SEA73-P2
|
784
|
+
X-Amz-Cf-Id:
|
785
|
+
- 0CPcVafXYMEziH9pkSMSm8kelXNmzCRxNc_Us2rZwSDJ2AFztTdZbA==
|
786
|
+
body:
|
787
|
+
encoding: UTF-8
|
788
|
+
string: '{"order":{"user_id":225397,"transaction_reference_id":null,"transaction_id":"R782923171","transaction_date":"2023-12-15T18:36:41.000Z","to_zip":"11430","to_street":"10
|
789
|
+
Lovely Street","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"100.0","sales_tax":"9.77","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
|
790
|
+
- 410790","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"Product
|
791
|
+
#1 - 1856 - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"110.0"}}'
|
792
|
+
http_version:
|
793
|
+
recorded_at: Fri, 15 Dec 2023 18:36:46 GMT
|
794
|
+
recorded_with: VCR 4.0.0
|