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.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +48 -6
  3. data/CHANGELOG.md +103 -1
  4. data/Gemfile +26 -10
  5. data/PULL_REQUEST_TEMPLATE.md +0 -1
  6. data/README.md +299 -39
  7. data/Rakefile +3 -0
  8. data/app/controllers/spree/admin/taxjar_settings_controller.rb +86 -1
  9. data/app/controllers/spree/admin/taxjar_transactions_controller.rb +37 -0
  10. data/app/controllers/spree/admin/transaction_sync_batches_controller.rb +18 -0
  11. data/app/jobs/super_good/solidus_taxjar/backfill_transaction_sync_batch_job.rb +23 -0
  12. data/app/jobs/super_good/solidus_taxjar/replace_transaction_job.rb +26 -0
  13. data/app/jobs/super_good/solidus_taxjar/report_transaction_job.rb +22 -0
  14. data/app/models/super_good/solidus_taxjar/configuration.rb +27 -0
  15. data/app/models/super_good/solidus_taxjar/order_transaction.rb +16 -0
  16. data/app/models/super_good/solidus_taxjar/refund_transaction.rb +13 -0
  17. data/app/models/super_good/solidus_taxjar/transaction_sync_batch.rb +11 -0
  18. data/app/models/super_good/solidus_taxjar/transaction_sync_log.rb +8 -0
  19. data/app/overrides/spree/admin/orders_controller_override.rb +12 -0
  20. data/app/overrides/spree/admin/shared/_order_submenu/add_taxjar_sync_history_tab.html.erb.deface +6 -0
  21. data/app/overrides/spree/admin/shared/_order_summary/add_taxjar_reported_at.html.erb.deface +30 -0
  22. data/app/overrides/spree/admin/shared/_taxes_tabs/add_configuration_menu_items.html.erb.deface +5 -0
  23. data/app/overrides/super_good/solidus_taxjar/spree/order_override.rb +21 -0
  24. data/app/views/spree/admin/orders/taxjar_transactions.html.erb +4 -0
  25. data/app/views/spree/admin/shared/_transaction_sync_log_table.html.erb +35 -0
  26. data/app/views/spree/admin/taxjar_settings/_nexus_regions.html.erb +23 -0
  27. data/app/views/spree/admin/taxjar_settings/_tax_categories.html.erb +41 -0
  28. data/app/views/spree/admin/taxjar_settings/edit.html.erb +17 -0
  29. data/app/views/spree/admin/taxjar_settings/edit_no_api_key.html.erb +21 -0
  30. data/app/views/spree/admin/transaction_sync_batches/index.html.erb +50 -0
  31. data/app/views/spree/admin/transaction_sync_batches/show.html.erb +7 -0
  32. data/bin/console +2 -0
  33. data/bin/rails-engine +1 -1
  34. data/bin/sandbox +43 -36
  35. data/bin/setup +3 -3
  36. data/config/routes.rb +13 -1
  37. data/db/migrate/20210908205201_create_taxjar_order_transactions.rb +16 -0
  38. data/db/migrate/20211008175113_create_taxjar_refund_transaction.rb +15 -0
  39. data/db/migrate/20211008183858_add_transaction_date_to_order_transaction.rb +5 -0
  40. data/db/migrate/20211119143354_create_configuration.rb +8 -0
  41. data/db/migrate/20220405213958_create_transaction_sync_batches.rb +7 -0
  42. data/db/migrate/20220405215225_create_transaction_sync_logs.rb +14 -0
  43. data/db/migrate/20220908181655_add_dates_to_transaction_sync_batch.rb +6 -0
  44. data/db/migrate/20220912182210_allow_null_transaction_sync_batches_on_logs.rb +5 -0
  45. data/db/migrate/20230320211309_add_refund_transaction_to_sync_logs.rb +5 -0
  46. data/lib/generators/super_good/solidus_taxjar/install/install_generator.rb +68 -0
  47. data/lib/super_good/solidus_taxjar/api.rb +41 -9
  48. data/lib/super_good/solidus_taxjar/api_params.rb +92 -25
  49. data/lib/super_good/solidus_taxjar/backfill_transactions.rb +11 -0
  50. data/lib/super_good/solidus_taxjar/cached_api.rb +23 -0
  51. data/lib/super_good/solidus_taxjar/calculator_helper.rb +33 -4
  52. data/lib/super_good/solidus_taxjar/discount_calculator.rb +1 -1
  53. data/lib/super_good/solidus_taxjar/overrides/request_override.rb +15 -0
  54. data/lib/super_good/solidus_taxjar/reportable.rb +91 -0
  55. data/lib/super_good/solidus_taxjar/reporting.rb +44 -0
  56. data/lib/super_good/solidus_taxjar/spree/legacy_reporting_subscriber.rb +41 -0
  57. data/lib/super_good/solidus_taxjar/spree/reporting_subscriber.rb +40 -0
  58. data/lib/super_good/solidus_taxjar/tax_calculator.rb +7 -1
  59. data/lib/super_good/solidus_taxjar/testing_support/factories/address_factory.rb +11 -0
  60. data/lib/super_good/solidus_taxjar/testing_support/factories/configuration_factory.rb +11 -0
  61. data/lib/super_good/solidus_taxjar/testing_support/factories/order_transaction_factory.rb +22 -0
  62. data/lib/super_good/solidus_taxjar/testing_support/factories/refund_transaction_factory.rb +7 -0
  63. data/lib/super_good/solidus_taxjar/testing_support/factories/transaction_sync_batch_factory.rb +9 -0
  64. data/lib/super_good/solidus_taxjar/testing_support/factories/transaction_sync_log_factory.rb +18 -0
  65. data/lib/super_good/solidus_taxjar/transaction_id_generator.rb +45 -0
  66. data/lib/super_good/solidus_taxjar/version.rb +1 -1
  67. data/lib/super_good/solidus_taxjar.rb +29 -2
  68. data/spec/features/spree/admin/backfill_transactions_spec.rb +138 -0
  69. data/spec/features/spree/admin/refund_spec.rb +167 -0
  70. data/spec/features/spree/admin/reporting_to_taxjar_spec.rb +156 -0
  71. data/spec/features/spree/admin/taxjar_settings_spec.rb +58 -16
  72. data/spec/features/spree/checkout_spec.rb +58 -0
  73. 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
  74. 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
  75. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_is_set/shows_the_settings_page.yml +2437 -0
  76. 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
  77. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_API_token_isn_t_set/shows_a_descriptive_error_message.yml +57 -0
  78. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/Taxjar_reporting_is_enabled/shows_that_reporting_is_enabled.yml +2382 -0
  79. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/order_is_shipped/the_user_backfills_their_transactions.yml +2511 -0
  80. data/spec/fixtures/cassettes/Admin_TaxJar_Settings/Taxjar_settings_tab/the_user_navigates_to_the_TaxJar_Settings.yml +2382 -0
  81. data/spec/fixtures/cassettes/Admin_Transaction_Sync_Batches/user_has_a_shipped_order/starts_a_transaction_backfill.yml +370 -0
  82. data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/shipping_a_complete_and_paid_order.yml +310 -0
  83. 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
  84. data/spec/fixtures/cassettes/Reporting_orders_to_TaxJar/with_an_order_with_invalid_zipcode/retry_of_a_previously_failed_transaction_sync.yml +418 -0
  85. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/creates_a_batch.yml +250 -0
  86. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/creates_a_log_in_the_batch_with_an_order.yml +250 -0
  87. data/spec/fixtures/cassettes/Spree_Admin_TransactionSyncBatchesController/_create/user_supplies_a_start_date/creates_a_batch.yml +250 -0
  88. 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
  89. 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
  90. 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
  91. 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
  92. data/spec/fixtures/cassettes/SuperGood_SolidusTaxjar_Reporting/_refund_and_create_transaction/when_Taxjar_cannot_create_a_refund_transaction/raises_an_error.yml +393 -0
  93. data/spec/fixtures/cassettes/Taxjar_API_Request/logging_is_disabled/doesn_t_call_the_logger.yml +158 -0
  94. data/spec/fixtures/cassettes/Taxjar_API_Request/logging_is_enabled/calls_the_logger.yml +158 -0
  95. data/spec/fixtures/cassettes/features/spree/admin/checkout.yml +238 -0
  96. data/spec/fixtures/cassettes/features/spree/admin/refund.yml +1162 -0
  97. data/spec/jobs/super_good/solidus_taxjar/backfill_transaction_sync_batch_job_spec.rb +117 -0
  98. data/spec/jobs/super_good/solidus_taxjar/replace_transaction_job_spec.rb +95 -0
  99. data/spec/jobs/super_good/solidus_taxjar/report_transaction_job_spec.rb +76 -0
  100. data/spec/models/super_good/solidus_taxjar/configuration_spec.rb +79 -0
  101. data/spec/models/super_good/solidus_taxjar/order_transaction_spec.rb +36 -0
  102. data/spec/models/super_good/solidus_taxjar/transaction_sync_batch_spec.rb +48 -0
  103. data/spec/requests/spree/admin/order_request_spec.rb +121 -0
  104. data/spec/requests/spree/admin/taxjar_settings_request_spec.rb +198 -0
  105. data/spec/requests/spree/admin/taxjar_transactions_request_spec.rb +62 -0
  106. data/spec/requests/spree/admin/transaction_sync_batches_request_spec.rb +82 -0
  107. data/spec/spec_helper.rb +46 -3
  108. data/spec/subscribers/super_good/solidus_taxjar/spree/reporting_subscriber_spec.rb +278 -0
  109. data/spec/super_good/solidus_taxjar/addresses_spec.rb +0 -14
  110. data/spec/super_good/solidus_taxjar/api_params_spec.rb +261 -89
  111. data/spec/super_good/solidus_taxjar/api_spec.rb +152 -29
  112. data/spec/super_good/solidus_taxjar/backfill_transactions_spec.rb +24 -0
  113. data/spec/super_good/solidus_taxjar/cached_api_spec.rb +58 -0
  114. data/spec/super_good/solidus_taxjar/calculator_helper_spec.rb +131 -0
  115. data/spec/super_good/solidus_taxjar/discount_calculator_spec.rb +19 -2
  116. data/spec/super_good/solidus_taxjar/reportable_spec.rb +194 -0
  117. data/spec/super_good/solidus_taxjar/reporting_spec.rb +243 -0
  118. data/spec/super_good/solidus_taxjar/tax_calculator_spec.rb +19 -19
  119. data/spec/super_good/solidus_taxjar/tax_rate_calculator_spec.rb +8 -3
  120. data/spec/super_good/solidus_taxjar/transaction_id_generator_spec.rb +77 -0
  121. data/spec/super_good/solidus_taxjar_spec.rb +84 -0
  122. data/spec/support/checkoutable_store_shared_context.rb +19 -0
  123. data/spec/support/solidus_events_helper.rb +26 -0
  124. data/spec/taxjar/api/request_spec.rb +52 -0
  125. data/super_good-solidus_taxjar.gemspec +3 -2
  126. metadata +169 -17
  127. data/app/decorators/super_good/solidus_taxjar/spree/order_updater/fire_recalculated_event.rb +0 -18
  128. data/app/overrides/spree/admin/shared/_configuration_menu.rb +0 -11
  129. data/app/views/spree/admin/taxjar_settings/show.html.erb +0 -13
  130. data/spec/models/spree/order_updater_spec.rb +0 -12
@@ -0,0 +1,1162 @@
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-MacBook-Pro.local 21.6.0 Darwin Kernel Version
12
+ 21.6.0: Mon 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
+ - '189'
33
+ Connection:
34
+ - close
35
+ Date:
36
+ - Fri, 26 Jan 2024 21:12:59 GMT
37
+ X-Amzn-Requestid:
38
+ - 8f336468-63a0-490d-bc15-5c5c958f1ac1
39
+ X-Amz-Apigw-Id:
40
+ - SKn-WH0sIAMEqYA=
41
+ X-Amzn-Trace-Id:
42
+ - Root=1-65b4205b-528606af3a01aa1b52d08571
43
+ X-Cache:
44
+ - Miss from cloudfront
45
+ Via:
46
+ - 1.1 70fd8dd903406754b301439f9111e256.cloudfront.net (CloudFront)
47
+ X-Amz-Cf-Pop:
48
+ - YTO50-P2
49
+ X-Amz-Cf-Id:
50
+ - gv8ot9nviMlv36Z5uHBDcahmNoV3HsDmcNTyVYUVdqRZ2fa16FbIpg==
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"regions":[{"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, 26 Jan 2024 21:12:59 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":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
64
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
65
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
66
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
67
+ - 34067"}],"shipping":"0.0"}'
68
+ headers:
69
+ User-Agent:
70
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
71
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
72
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
73
+ Authorization:
74
+ - Bearer <BEARER_TOKEN>
75
+ X-Api-Version:
76
+ - '2020-08-07'
77
+ Plugin:
78
+ - supergoodsolidustaxjar
79
+ Connection:
80
+ - close
81
+ Content-Type:
82
+ - application/json; charset=UTF-8
83
+ Host:
84
+ - api.taxjar.com
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ Content-Type:
91
+ - application/json; charset=utf-8
92
+ Content-Length:
93
+ - '2252'
94
+ Connection:
95
+ - close
96
+ Date:
97
+ - Fri, 26 Jan 2024 21:12:59 GMT
98
+ X-Amzn-Requestid:
99
+ - 021b3528-fcaa-4275-8c4e-73b389a2ef10
100
+ Access-Control-Allow-Origin:
101
+ - https://developers.taxjar.com
102
+ X-Amz-Apigw-Id:
103
+ - SKn-ZEuwoAMEvyQ=
104
+ X-Amzn-Trace-Id:
105
+ - Root=1-65b4205b-03c46d563e9b862635d28bf4
106
+ X-Cache:
107
+ - Miss from cloudfront
108
+ Via:
109
+ - 1.1 fdbf0bf4022c61868d8dad6b7d72a71a.cloudfront.net (CloudFront)
110
+ X-Amz-Cf-Pop:
111
+ - YTO50-P2
112
+ X-Amz-Cf-Id:
113
+ - Qputxp_7_JNVqg11FSNaEH1InwWhB2gZbVjw5tziqtDn40FXDWr9ug==
114
+ body:
115
+ encoding: UTF-8
116
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
117
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
118
+ http_version:
119
+ recorded_at: Fri, 26 Jan 2024 21:12:59 GMT
120
+ - request:
121
+ method: post
122
+ uri: https://api.taxjar.com/v2/taxes
123
+ body:
124
+ encoding: ASCII-8BIT
125
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
126
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
127
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
128
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
129
+ - 34067"}],"shipping":"0.0"}'
130
+ headers:
131
+ User-Agent:
132
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
133
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
134
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
135
+ Authorization:
136
+ - Bearer <BEARER_TOKEN>
137
+ X-Api-Version:
138
+ - '2020-08-07'
139
+ Plugin:
140
+ - supergoodsolidustaxjar
141
+ Connection:
142
+ - close
143
+ Content-Type:
144
+ - application/json; charset=UTF-8
145
+ Host:
146
+ - api.taxjar.com
147
+ response:
148
+ status:
149
+ code: 200
150
+ message: OK
151
+ headers:
152
+ Content-Type:
153
+ - application/json; charset=utf-8
154
+ Content-Length:
155
+ - '2252'
156
+ Connection:
157
+ - close
158
+ Date:
159
+ - Fri, 26 Jan 2024 21:13:00 GMT
160
+ X-Amzn-Requestid:
161
+ - 6bdbc2ac-2da8-4573-82a9-1593c9cd18a5
162
+ Access-Control-Allow-Origin:
163
+ - https://developers.taxjar.com
164
+ X-Amz-Apigw-Id:
165
+ - SKn-cHJmoAMEIpQ=
166
+ X-Amzn-Trace-Id:
167
+ - Root=1-65b4205c-51628d7b61e1df961bda5091
168
+ X-Cache:
169
+ - Miss from cloudfront
170
+ Via:
171
+ - 1.1 71eaa9eb77c2eecb57c03cdcdad1cf76.cloudfront.net (CloudFront)
172
+ X-Amz-Cf-Pop:
173
+ - YTO50-P2
174
+ X-Amz-Cf-Id:
175
+ - dHiF99FIWduRwwl7nQ0GoszBHIQsR5Q9g7wex6H_XlyU_RmED0Yk9A==
176
+ body:
177
+ encoding: UTF-8
178
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
179
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
180
+ http_version:
181
+ recorded_at: Fri, 26 Jan 2024 21:13:00 GMT
182
+ - request:
183
+ method: post
184
+ uri: https://api.taxjar.com/v2/taxes
185
+ body:
186
+ encoding: ASCII-8BIT
187
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
188
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
189
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
190
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
191
+ - 34067"}],"shipping":"0.0"}'
192
+ headers:
193
+ User-Agent:
194
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
195
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
196
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
197
+ Authorization:
198
+ - Bearer <BEARER_TOKEN>
199
+ X-Api-Version:
200
+ - '2020-08-07'
201
+ Plugin:
202
+ - supergoodsolidustaxjar
203
+ Connection:
204
+ - close
205
+ Content-Type:
206
+ - application/json; charset=UTF-8
207
+ Host:
208
+ - api.taxjar.com
209
+ response:
210
+ status:
211
+ code: 200
212
+ message: OK
213
+ headers:
214
+ Content-Type:
215
+ - application/json; charset=utf-8
216
+ Content-Length:
217
+ - '2252'
218
+ Connection:
219
+ - close
220
+ Date:
221
+ - Fri, 26 Jan 2024 21:13:00 GMT
222
+ X-Amzn-Requestid:
223
+ - 8b942569-ec53-4dbd-b750-36a65e47a6e4
224
+ Access-Control-Allow-Origin:
225
+ - https://developers.taxjar.com
226
+ X-Amz-Apigw-Id:
227
+ - SKn-fHXCoAMEFkQ=
228
+ X-Amzn-Trace-Id:
229
+ - Root=1-65b4205c-5aca30583033a9cc133eb082
230
+ X-Cache:
231
+ - Miss from cloudfront
232
+ Via:
233
+ - 1.1 0e761f7a5b2481acd893422a702c9fa8.cloudfront.net (CloudFront)
234
+ X-Amz-Cf-Pop:
235
+ - YTO50-P2
236
+ X-Amz-Cf-Id:
237
+ - MDePLO-Dv7bsxQEPYGYdos6Sr4g7_MFwtzCde4K07eTEzzNmx4M3gw==
238
+ body:
239
+ encoding: UTF-8
240
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
241
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
242
+ http_version:
243
+ recorded_at: Fri, 26 Jan 2024 21:13:00 GMT
244
+ - request:
245
+ method: post
246
+ uri: https://api.taxjar.com/v2/transactions/orders
247
+ body:
248
+ encoding: ASCII-8BIT
249
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
250
+ Different Road","line_items":[{"id":1,"quantity":1,"product_identifier":"SKU-1","description":"First
251
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"0.89"},{"id":2,"quantity":1,"product_identifier":"SKU-2","description":"Second
252
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"0.89"},{"id":3,"quantity":2,"product_identifier":"SKU-3","description":"Third
253
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"1.78"}],"transaction_id":"R925733488","transaction_date":"2024-01-26T21:12:59Z","amount":"40.0","shipping":"0.0","sales_tax":"3.56"}'
254
+ headers:
255
+ User-Agent:
256
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
257
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
258
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
259
+ Authorization:
260
+ - Bearer <BEARER_TOKEN>
261
+ X-Api-Version:
262
+ - '2020-08-07'
263
+ Plugin:
264
+ - supergoodsolidustaxjar
265
+ Connection:
266
+ - close
267
+ Content-Type:
268
+ - application/json; charset=UTF-8
269
+ Host:
270
+ - api.taxjar.com
271
+ response:
272
+ status:
273
+ code: 201
274
+ message: Created
275
+ headers:
276
+ Content-Type:
277
+ - application/json; charset=utf-8
278
+ Content-Length:
279
+ - '1002'
280
+ Connection:
281
+ - close
282
+ Date:
283
+ - Fri, 26 Jan 2024 21:13:00 GMT
284
+ X-Amzn-Requestid:
285
+ - 88a6e44b-3f76-4c51-abeb-e2a0b57b8075
286
+ X-Amzn-Remapped-Content-Length:
287
+ - '1002'
288
+ X-Amzn-Remapped-Connection:
289
+ - keep-alive
290
+ X-Request-Id:
291
+ - F64CEP47noV1ss0Jr-9C
292
+ X-Api-Version:
293
+ - '2020-08-07'
294
+ X-Amz-Apigw-Id:
295
+ - SKn-jGy9IAMES4w=
296
+ Cache-Control:
297
+ - max-age=0, private, must-revalidate
298
+ X-Amzn-Remapped-Server:
299
+ - Cowboy
300
+ X-Amzn-Remapped-Date:
301
+ - Fri, 26 Jan 2024 21:13:00 GMT
302
+ X-Cache:
303
+ - Miss from cloudfront
304
+ Via:
305
+ - 1.1 21c66eb5f493a6e3ddbaa803cebfe014.cloudfront.net (CloudFront)
306
+ X-Amz-Cf-Pop:
307
+ - YTO50-P2
308
+ X-Amz-Cf-Id:
309
+ - NaLSZWCV7TZhc7kD0nB1qnxXOIEair0I0QhzRLGcVXtfb01GgzoxLQ==
310
+ body:
311
+ encoding: UTF-8
312
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
313
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
314
+ - 34067","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"First
315
+ Product - Master"},{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
316
+ - 34067","product_identifier":"SKU-2","id":1,"discount":"0.0","description":"Second
317
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":2,"product_tax_code":"TaxCode
318
+ - 34067","product_identifier":"SKU-3","id":2,"discount":"0.0","description":"Third
319
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"40.0"}}'
320
+ http_version:
321
+ recorded_at: Fri, 26 Jan 2024 21:13:00 GMT
322
+ - request:
323
+ method: post
324
+ uri: https://api.taxjar.com/v2/taxes
325
+ body:
326
+ encoding: ASCII-8BIT
327
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
328
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
329
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
330
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
331
+ - 34067"}],"shipping":"0.0"}'
332
+ headers:
333
+ User-Agent:
334
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
335
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
336
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
337
+ Authorization:
338
+ - Bearer <BEARER_TOKEN>
339
+ X-Api-Version:
340
+ - '2020-08-07'
341
+ Plugin:
342
+ - supergoodsolidustaxjar
343
+ Connection:
344
+ - close
345
+ Content-Type:
346
+ - application/json; charset=UTF-8
347
+ Host:
348
+ - api.taxjar.com
349
+ response:
350
+ status:
351
+ code: 200
352
+ message: OK
353
+ headers:
354
+ Content-Type:
355
+ - application/json; charset=utf-8
356
+ Content-Length:
357
+ - '2252'
358
+ Connection:
359
+ - close
360
+ Date:
361
+ - Fri, 26 Jan 2024 21:13:02 GMT
362
+ X-Amzn-Requestid:
363
+ - 2bfc715b-65cb-4eff-87b5-43229d95d86d
364
+ Access-Control-Allow-Origin:
365
+ - https://developers.taxjar.com
366
+ X-Amz-Apigw-Id:
367
+ - SKn-yF-IIAMEueg=
368
+ X-Amzn-Trace-Id:
369
+ - Root=1-65b4205e-59beb2a916833fa71bad48df
370
+ X-Cache:
371
+ - Miss from cloudfront
372
+ Via:
373
+ - 1.1 019b4503d2ffede0ae900992ff140770.cloudfront.net (CloudFront)
374
+ X-Amz-Cf-Pop:
375
+ - YTO50-P2
376
+ X-Amz-Cf-Id:
377
+ - Vpi92riSN2RP-zLxed8syzKdtPYVzd7xK6GnbCLmBCvXTuWIn7h-0w==
378
+ body:
379
+ encoding: UTF-8
380
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
381
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
382
+ http_version:
383
+ recorded_at: Fri, 26 Jan 2024 21:13:02 GMT
384
+ - request:
385
+ method: post
386
+ uri: https://api.taxjar.com/v2/taxes
387
+ body:
388
+ encoding: ASCII-8BIT
389
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
390
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
391
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
392
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
393
+ - 34067"}],"shipping":"0.0"}'
394
+ headers:
395
+ User-Agent:
396
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
397
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
398
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
399
+ Authorization:
400
+ - Bearer <BEARER_TOKEN>
401
+ X-Api-Version:
402
+ - '2020-08-07'
403
+ Plugin:
404
+ - supergoodsolidustaxjar
405
+ Connection:
406
+ - close
407
+ Content-Type:
408
+ - application/json; charset=UTF-8
409
+ Host:
410
+ - api.taxjar.com
411
+ response:
412
+ status:
413
+ code: 200
414
+ message: OK
415
+ headers:
416
+ Content-Type:
417
+ - application/json; charset=utf-8
418
+ Content-Length:
419
+ - '2252'
420
+ Connection:
421
+ - close
422
+ Date:
423
+ - Fri, 26 Jan 2024 21:13:02 GMT
424
+ X-Amzn-Requestid:
425
+ - efa7750a-cc0c-44a5-b174-28e9fd5624df
426
+ Access-Control-Allow-Origin:
427
+ - https://developers.taxjar.com
428
+ X-Amz-Apigw-Id:
429
+ - SKn-4GjYIAMEKEQ=
430
+ X-Amzn-Trace-Id:
431
+ - Root=1-65b4205e-12bb9a6716a49b7e4f9e81ae
432
+ X-Cache:
433
+ - Miss from cloudfront
434
+ Via:
435
+ - 1.1 4ec5f8da969dc981ba2067c9dad5dad8.cloudfront.net (CloudFront)
436
+ X-Amz-Cf-Pop:
437
+ - YTO50-P2
438
+ X-Amz-Cf-Id:
439
+ - BB_R0-Jb89SCyRzYe3amKGojR4kbb_tOWdkzpr48fAyQE2AsnbIwmA==
440
+ body:
441
+ encoding: UTF-8
442
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
443
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
444
+ http_version:
445
+ recorded_at: Fri, 26 Jan 2024 21:13:02 GMT
446
+ - request:
447
+ method: get
448
+ uri: https://api.taxjar.com/v2/transactions/orders/R925733488
449
+ body:
450
+ encoding: ASCII-8BIT
451
+ string: ''
452
+ headers:
453
+ User-Agent:
454
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
455
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
456
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
457
+ Authorization:
458
+ - Bearer <BEARER_TOKEN>
459
+ X-Api-Version:
460
+ - '2020-08-07'
461
+ Plugin:
462
+ - supergoodsolidustaxjar
463
+ Connection:
464
+ - close
465
+ Host:
466
+ - api.taxjar.com
467
+ response:
468
+ status:
469
+ code: 200
470
+ message: OK
471
+ headers:
472
+ Content-Type:
473
+ - application/json; charset=utf-8
474
+ Content-Length:
475
+ - '1002'
476
+ Connection:
477
+ - close
478
+ Date:
479
+ - Fri, 26 Jan 2024 21:13:03 GMT
480
+ X-Amzn-Requestid:
481
+ - e5866fe7-611a-410c-ad63-cb20e20b5aeb
482
+ X-Amzn-Remapped-Content-Length:
483
+ - '1002'
484
+ X-Amzn-Remapped-Connection:
485
+ - keep-alive
486
+ X-Request-Id:
487
+ - F64CEY2lHIapol4GmwgD
488
+ X-Api-Version:
489
+ - '2020-08-07'
490
+ X-Amz-Apigw-Id:
491
+ - SKn-7GDAIAMEeYQ=
492
+ Cache-Control:
493
+ - max-age=0, private, must-revalidate
494
+ X-Amzn-Remapped-Server:
495
+ - Cowboy
496
+ X-Amzn-Remapped-Date:
497
+ - Fri, 26 Jan 2024 21:13:03 GMT
498
+ X-Cache:
499
+ - Miss from cloudfront
500
+ Via:
501
+ - 1.1 53d47b61433f6e1682b806fc166731be.cloudfront.net (CloudFront)
502
+ X-Amz-Cf-Pop:
503
+ - YTO50-P2
504
+ X-Amz-Cf-Id:
505
+ - 3Zad1Ulgbcwyi29z2g80A-qt_5hcTuwbs2b8Ach9eLPEEhBhtq0Q3Q==
506
+ body:
507
+ encoding: UTF-8
508
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
509
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
510
+ - 34067","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"First
511
+ Product - Master"},{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
512
+ - 34067","product_identifier":"SKU-2","id":1,"discount":"0.0","description":"Second
513
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":2,"product_tax_code":"TaxCode
514
+ - 34067","product_identifier":"SKU-3","id":2,"discount":"0.0","description":"Third
515
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"40.0"}}'
516
+ http_version:
517
+ recorded_at: Fri, 26 Jan 2024 21:13:03 GMT
518
+ - request:
519
+ method: get
520
+ uri: https://api.taxjar.com/v2/transactions/orders/R925733488
521
+ body:
522
+ encoding: ASCII-8BIT
523
+ string: ''
524
+ headers:
525
+ User-Agent:
526
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
527
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
528
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
529
+ Authorization:
530
+ - Bearer <BEARER_TOKEN>
531
+ X-Api-Version:
532
+ - '2020-08-07'
533
+ Plugin:
534
+ - supergoodsolidustaxjar
535
+ Connection:
536
+ - close
537
+ Host:
538
+ - api.taxjar.com
539
+ response:
540
+ status:
541
+ code: 200
542
+ message: OK
543
+ headers:
544
+ Content-Type:
545
+ - application/json; charset=utf-8
546
+ Content-Length:
547
+ - '1002'
548
+ Connection:
549
+ - close
550
+ Date:
551
+ - Fri, 26 Jan 2024 21:13:03 GMT
552
+ X-Amzn-Requestid:
553
+ - d582b8a5-6287-4567-bcea-df48bddf2f92
554
+ X-Amzn-Remapped-Content-Length:
555
+ - '1002'
556
+ X-Amzn-Remapped-Connection:
557
+ - keep-alive
558
+ X-Request-Id:
559
+ - F64CEZvC6W2ZjtYMjJaB
560
+ X-Api-Version:
561
+ - '2020-08-07'
562
+ X-Amz-Apigw-Id:
563
+ - SKn-9GIQoAMEN1Q=
564
+ Cache-Control:
565
+ - max-age=0, private, must-revalidate
566
+ X-Amzn-Remapped-Server:
567
+ - Cowboy
568
+ X-Amzn-Remapped-Date:
569
+ - Fri, 26 Jan 2024 21:13:03 GMT
570
+ X-Cache:
571
+ - Miss from cloudfront
572
+ Via:
573
+ - 1.1 cfcfb1d8fbf5ce2b107182799687a614.cloudfront.net (CloudFront)
574
+ X-Amz-Cf-Pop:
575
+ - YTO50-P2
576
+ X-Amz-Cf-Id:
577
+ - rB9mm0gB-bTEHMSYvIMASjfF-rPQJMDXYAyAj--L6C-Or1tSOvVrZw==
578
+ body:
579
+ encoding: UTF-8
580
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
581
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
582
+ - 34067","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"First
583
+ Product - Master"},{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
584
+ - 34067","product_identifier":"SKU-2","id":1,"discount":"0.0","description":"Second
585
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":2,"product_tax_code":"TaxCode
586
+ - 34067","product_identifier":"SKU-3","id":2,"discount":"0.0","description":"Third
587
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"40.0"}}'
588
+ http_version:
589
+ recorded_at: Fri, 26 Jan 2024 21:13:03 GMT
590
+ - request:
591
+ method: post
592
+ uri: https://api.taxjar.com/v2/transactions/refunds
593
+ body:
594
+ encoding: ASCII-8BIT
595
+ string: '{"to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
596
+ Different Road","transaction_id":"R925733488-REFUND","transaction_reference_id":"R925733488","transaction_date":"2024-01-26T21:12:59Z","amount":-40.0,"sales_tax":-3.56,"shipping":-0.0,"line_items":[{"unit_price":-10.0,"sales_tax":-0.89,"quantity":1,"product_tax_code":"TaxCode
597
+ - 34067","product_identifier":"SKU-1","id":0,"discount":-0.0,"description":"First
598
+ Product - Master"},{"unit_price":-10.0,"sales_tax":-0.89,"quantity":1,"product_tax_code":"TaxCode
599
+ - 34067","product_identifier":"SKU-2","id":1,"discount":-0.0,"description":"Second
600
+ Product - Master"},{"unit_price":-10.0,"sales_tax":-1.78,"quantity":2,"product_tax_code":"TaxCode
601
+ - 34067","product_identifier":"SKU-3","id":2,"discount":-0.0,"description":"Third
602
+ Product - Master"}]}'
603
+ headers:
604
+ User-Agent:
605
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
606
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
607
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
608
+ Authorization:
609
+ - Bearer <BEARER_TOKEN>
610
+ X-Api-Version:
611
+ - '2020-08-07'
612
+ Plugin:
613
+ - supergoodsolidustaxjar
614
+ Connection:
615
+ - close
616
+ Content-Type:
617
+ - application/json; charset=UTF-8
618
+ Host:
619
+ - api.taxjar.com
620
+ response:
621
+ status:
622
+ code: 201
623
+ message: Created
624
+ headers:
625
+ Content-Type:
626
+ - application/json; charset=utf-8
627
+ Content-Length:
628
+ - '1028'
629
+ Connection:
630
+ - close
631
+ Date:
632
+ - Fri, 26 Jan 2024 21:13:03 GMT
633
+ X-Amzn-Requestid:
634
+ - 536f24f6-94bf-4612-be5a-12bd2929f091
635
+ X-Amzn-Remapped-Content-Length:
636
+ - '1028'
637
+ X-Amzn-Remapped-Connection:
638
+ - keep-alive
639
+ X-Request-Id:
640
+ - F64CEazOk20Gk4oMjJkB
641
+ X-Api-Version:
642
+ - '2020-08-07'
643
+ X-Amz-Apigw-Id:
644
+ - SKn_AEhooAMEQHA=
645
+ Cache-Control:
646
+ - max-age=0, private, must-revalidate
647
+ X-Amzn-Remapped-Server:
648
+ - Cowboy
649
+ X-Amzn-Remapped-Date:
650
+ - Fri, 26 Jan 2024 21:13:03 GMT
651
+ X-Cache:
652
+ - Miss from cloudfront
653
+ Via:
654
+ - 1.1 5a2f8eb373b5a17b769c0fee9b0725a6.cloudfront.net (CloudFront)
655
+ X-Amz-Cf-Pop:
656
+ - YTO50-P2
657
+ X-Amz-Cf-Id:
658
+ - dSq-Gu-wHMIx7HQCutoHf7uSeMsXkFDtLlSpAPP0ivimpBcx7OvOAQ==
659
+ body:
660
+ encoding: UTF-8
661
+ string: '{"refund":{"user_id":345723,"transaction_reference_id":"R925733488","transaction_id":"R925733488-REFUND","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
662
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"-0.0","sales_tax":"-3.56","provider":"api","line_items":[{"unit_price":"-10.0","sales_tax":"-0.89","quantity":1,"product_tax_code":"TaxCode
663
+ - 34067","product_identifier":"SKU-1","id":0,"discount":"0.0","description":"First
664
+ Product - Master"},{"unit_price":"-10.0","sales_tax":"-0.89","quantity":1,"product_tax_code":"TaxCode
665
+ - 34067","product_identifier":"SKU-2","id":1,"discount":"0.0","description":"Second
666
+ Product - Master"},{"unit_price":"-10.0","sales_tax":"-1.78","quantity":2,"product_tax_code":"TaxCode
667
+ - 34067","product_identifier":"SKU-3","id":2,"discount":"0.0","description":"Third
668
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":null,"amount":"-40.0"}}'
669
+ http_version:
670
+ recorded_at: Fri, 26 Jan 2024 21:13:03 GMT
671
+ - request:
672
+ method: post
673
+ uri: https://api.taxjar.com/v2/transactions/orders
674
+ body:
675
+ encoding: ASCII-8BIT
676
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
677
+ Different Road","line_items":[{"id":2,"quantity":1,"product_identifier":"SKU-2","description":"Second
678
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"0.89"},{"id":3,"quantity":2,"product_identifier":"SKU-3","description":"Third
679
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"1.78"}],"transaction_id":"R925733488-1","transaction_date":"2024-01-26T21:12:59Z","amount":"30.0","shipping":"0.0","sales_tax":"3.56"}'
680
+ headers:
681
+ User-Agent:
682
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
683
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
684
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
685
+ Authorization:
686
+ - Bearer <BEARER_TOKEN>
687
+ X-Api-Version:
688
+ - '2020-08-07'
689
+ Plugin:
690
+ - supergoodsolidustaxjar
691
+ Connection:
692
+ - close
693
+ Content-Type:
694
+ - application/json; charset=UTF-8
695
+ Host:
696
+ - api.taxjar.com
697
+ response:
698
+ status:
699
+ code: 201
700
+ message: Created
701
+ headers:
702
+ Content-Type:
703
+ - application/json; charset=utf-8
704
+ Content-Length:
705
+ - '821'
706
+ Connection:
707
+ - close
708
+ Date:
709
+ - Fri, 26 Jan 2024 21:13:04 GMT
710
+ X-Amzn-Requestid:
711
+ - b2f59741-8fb0-4692-ac5e-0df4a6701f16
712
+ X-Amzn-Remapped-Content-Length:
713
+ - '821'
714
+ X-Amzn-Remapped-Connection:
715
+ - keep-alive
716
+ X-Request-Id:
717
+ - F64CEcDmL-xUvCIJtaoC
718
+ X-Api-Version:
719
+ - '2020-08-07'
720
+ X-Amz-Apigw-Id:
721
+ - SKn_DFc_IAMENqA=
722
+ Cache-Control:
723
+ - max-age=0, private, must-revalidate
724
+ X-Amzn-Remapped-Server:
725
+ - Cowboy
726
+ X-Amzn-Remapped-Date:
727
+ - Fri, 26 Jan 2024 21:13:04 GMT
728
+ X-Cache:
729
+ - Miss from cloudfront
730
+ Via:
731
+ - 1.1 8e6145785e47042f882be946f6c05880.cloudfront.net (CloudFront)
732
+ X-Amz-Cf-Pop:
733
+ - YTO50-P2
734
+ X-Amz-Cf-Id:
735
+ - T7uFYJsyeittCmiGdnudnTsLMccaecQ7ppRsweQN5z2EuLjzpkr-QA==
736
+ body:
737
+ encoding: UTF-8
738
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488-1","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
739
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
740
+ - 34067","product_identifier":"SKU-2","id":0,"discount":"0.0","description":"Second
741
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":2,"product_tax_code":"TaxCode
742
+ - 34067","product_identifier":"SKU-3","id":1,"discount":"0.0","description":"Third
743
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"30.0"}}'
744
+ http_version:
745
+ recorded_at: Fri, 26 Jan 2024 21:13:04 GMT
746
+ - request:
747
+ method: post
748
+ uri: https://api.taxjar.com/v2/taxes
749
+ body:
750
+ encoding: ASCII-8BIT
751
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
752
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
753
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
754
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
755
+ - 34067"}],"shipping":"0.0"}'
756
+ headers:
757
+ User-Agent:
758
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
759
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
760
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
761
+ Authorization:
762
+ - Bearer <BEARER_TOKEN>
763
+ X-Api-Version:
764
+ - '2020-08-07'
765
+ Plugin:
766
+ - supergoodsolidustaxjar
767
+ Connection:
768
+ - close
769
+ Content-Type:
770
+ - application/json; charset=UTF-8
771
+ Host:
772
+ - api.taxjar.com
773
+ response:
774
+ status:
775
+ code: 200
776
+ message: OK
777
+ headers:
778
+ Content-Type:
779
+ - application/json; charset=utf-8
780
+ Content-Length:
781
+ - '2252'
782
+ Connection:
783
+ - close
784
+ Date:
785
+ - Fri, 26 Jan 2024 21:13:05 GMT
786
+ X-Amzn-Requestid:
787
+ - ec6c0dad-b8a1-441a-895d-39f12796b522
788
+ Access-Control-Allow-Origin:
789
+ - https://developers.taxjar.com
790
+ X-Amz-Apigw-Id:
791
+ - SKn_RGE1oAMEHbw=
792
+ X-Amzn-Trace-Id:
793
+ - Root=1-65b42061-6715064d13ed9519445c792e
794
+ X-Cache:
795
+ - Miss from cloudfront
796
+ Via:
797
+ - 1.1 6589108eb8812ce79de8a8eef3f72bee.cloudfront.net (CloudFront)
798
+ X-Amz-Cf-Pop:
799
+ - YTO50-P2
800
+ X-Amz-Cf-Id:
801
+ - REIkLVNyB2n8Cl0yaLIlFiXPZKrlckCN4dhaBRFJPXXMkzXxp3LX2w==
802
+ body:
803
+ encoding: UTF-8
804
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
805
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
806
+ http_version:
807
+ recorded_at: Fri, 26 Jan 2024 21:13:05 GMT
808
+ - request:
809
+ method: post
810
+ uri: https://api.taxjar.com/v2/taxes
811
+ body:
812
+ encoding: ASCII-8BIT
813
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
814
+ Different Road","line_items":[{"id":1,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
815
+ - 34067"},{"id":2,"quantity":1,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
816
+ - 34067"},{"id":3,"quantity":2,"unit_price":"10.0","discount":0,"product_tax_code":"TaxCode
817
+ - 34067"}],"shipping":"0.0"}'
818
+ headers:
819
+ User-Agent:
820
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
821
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
822
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
823
+ Authorization:
824
+ - Bearer <BEARER_TOKEN>
825
+ X-Api-Version:
826
+ - '2020-08-07'
827
+ Plugin:
828
+ - supergoodsolidustaxjar
829
+ Connection:
830
+ - close
831
+ Content-Type:
832
+ - application/json; charset=UTF-8
833
+ Host:
834
+ - api.taxjar.com
835
+ response:
836
+ status:
837
+ code: 200
838
+ message: OK
839
+ headers:
840
+ Content-Type:
841
+ - application/json; charset=utf-8
842
+ Content-Length:
843
+ - '2252'
844
+ Connection:
845
+ - close
846
+ Date:
847
+ - Fri, 26 Jan 2024 21:13:06 GMT
848
+ X-Amzn-Requestid:
849
+ - 9918ef36-ad2f-412a-be37-a413f76f64a7
850
+ Access-Control-Allow-Origin:
851
+ - https://developers.taxjar.com
852
+ X-Amz-Apigw-Id:
853
+ - SKn_XHrLIAMEUbA=
854
+ X-Amzn-Trace-Id:
855
+ - Root=1-65b42062-486ab2480e14caf26ffbb966
856
+ X-Cache:
857
+ - Miss from cloudfront
858
+ Via:
859
+ - 1.1 dcd16c430149132ea12a5783d54ff114.cloudfront.net (CloudFront)
860
+ X-Amz-Cf-Pop:
861
+ - YTO50-P2
862
+ X-Amz-Cf-Id:
863
+ - H8rzutGPWZDrIFIoEunhfjWs4vtnYntyY1X-Fc-QegWBsvcGE4dRlw==
864
+ body:
865
+ encoding: UTF-8
866
+ string: '{"tax":{"amount_to_collect":3.55,"breakdown":{"city_tax_collectable":1.95,"city_tax_rate":0.04875,"city_taxable_amount":40.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},{"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":"2","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},{"city_amount":0.98,"city_tax_rate":0.04875,"city_taxable_amount":20.0,"combined_tax_rate":0.08875,"county_amount":0.0,"county_tax_rate":0.0,"county_taxable_amount":0.0,"id":"3","special_district_amount":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_amount":0.8,"state_sales_tax_rate":0.04,"state_taxable_amount":20.0,"tax_collectable":1.78,"taxable_amount":20.0}],"shipping":{"city_amount":0.0,"city_tax_rate":0.04875,"city_taxable_amount":0.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":0.0,"state_sales_tax_rate":0.04,"state_taxable_amount":0.0,"tax_collectable":0.0,"taxable_amount":0.0},"special_district_tax_collectable":0.0,"special_district_taxable_amount":0.0,"special_tax_rate":0.0,"state_tax_collectable":1.6,"state_tax_rate":0.04,"state_taxable_amount":40.0,"tax_collectable":3.55,"taxable_amount":40.0},"freight_taxable":true,"has_nexus":true,"jurisdictions":{"city":"NEW
867
+ YORK CITY","country":"US","county":"QUEENS","state":"NY"},"order_total_amount":40.0,"rate":0.08875,"shipping":0.0,"tax_source":"destination","taxable_amount":40.0}}'
868
+ http_version:
869
+ recorded_at: Fri, 26 Jan 2024 21:13:06 GMT
870
+ - request:
871
+ method: get
872
+ uri: https://api.taxjar.com/v2/transactions/orders/R925733488-1
873
+ body:
874
+ encoding: ASCII-8BIT
875
+ string: ''
876
+ headers:
877
+ User-Agent:
878
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
879
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
880
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
881
+ Authorization:
882
+ - Bearer <BEARER_TOKEN>
883
+ X-Api-Version:
884
+ - '2020-08-07'
885
+ Plugin:
886
+ - supergoodsolidustaxjar
887
+ Connection:
888
+ - close
889
+ Host:
890
+ - api.taxjar.com
891
+ response:
892
+ status:
893
+ code: 200
894
+ message: OK
895
+ headers:
896
+ Content-Type:
897
+ - application/json; charset=utf-8
898
+ Content-Length:
899
+ - '821'
900
+ Connection:
901
+ - close
902
+ Date:
903
+ - Fri, 26 Jan 2024 21:13:06 GMT
904
+ X-Amzn-Requestid:
905
+ - 036ae0ba-2f05-47c2-a6c7-c8c3ee79678d
906
+ X-Amzn-Remapped-Content-Length:
907
+ - '821'
908
+ X-Amzn-Remapped-Connection:
909
+ - keep-alive
910
+ X-Request-Id:
911
+ - F64CEkU_iC4JtN0JeJcC
912
+ X-Api-Version:
913
+ - '2020-08-07'
914
+ X-Amz-Apigw-Id:
915
+ - SKn_aF9koAMEQeQ=
916
+ Cache-Control:
917
+ - max-age=0, private, must-revalidate
918
+ X-Amzn-Remapped-Server:
919
+ - Cowboy
920
+ X-Amzn-Remapped-Date:
921
+ - Fri, 26 Jan 2024 21:13:06 GMT
922
+ X-Cache:
923
+ - Miss from cloudfront
924
+ Via:
925
+ - 1.1 67dd4d73b80aece69a8e725c6d612b6e.cloudfront.net (CloudFront)
926
+ X-Amz-Cf-Pop:
927
+ - YTO50-P2
928
+ X-Amz-Cf-Id:
929
+ - ahRCSaqxaCk5NIlTzyxtWGP3OHD14kjRHo2KyeTP3M9I7em1D__dKg==
930
+ body:
931
+ encoding: UTF-8
932
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488-1","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
933
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
934
+ - 34067","product_identifier":"SKU-2","id":0,"discount":"0.0","description":"Second
935
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":2,"product_tax_code":"TaxCode
936
+ - 34067","product_identifier":"SKU-3","id":1,"discount":"0.0","description":"Third
937
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"30.0"}}'
938
+ http_version:
939
+ recorded_at: Fri, 26 Jan 2024 21:13:06 GMT
940
+ - request:
941
+ method: get
942
+ uri: https://api.taxjar.com/v2/transactions/orders/R925733488-1
943
+ body:
944
+ encoding: ASCII-8BIT
945
+ string: ''
946
+ headers:
947
+ User-Agent:
948
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
949
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
950
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
951
+ Authorization:
952
+ - Bearer <BEARER_TOKEN>
953
+ X-Api-Version:
954
+ - '2020-08-07'
955
+ Plugin:
956
+ - supergoodsolidustaxjar
957
+ Connection:
958
+ - close
959
+ Host:
960
+ - api.taxjar.com
961
+ response:
962
+ status:
963
+ code: 200
964
+ message: OK
965
+ headers:
966
+ Content-Type:
967
+ - application/json; charset=utf-8
968
+ Content-Length:
969
+ - '821'
970
+ Connection:
971
+ - close
972
+ Date:
973
+ - Fri, 26 Jan 2024 21:13:06 GMT
974
+ X-Amzn-Requestid:
975
+ - 57efab79-9f9c-4d6f-aa43-f4f9de26d2bd
976
+ X-Amzn-Remapped-Content-Length:
977
+ - '821'
978
+ X-Amzn-Remapped-Connection:
979
+ - keep-alive
980
+ X-Request-Id:
981
+ - F64CElSQXR07fM4F2YBB
982
+ X-Api-Version:
983
+ - '2020-08-07'
984
+ X-Amz-Apigw-Id:
985
+ - SKn_cGukoAMEIxQ=
986
+ Cache-Control:
987
+ - max-age=0, private, must-revalidate
988
+ X-Amzn-Remapped-Server:
989
+ - Cowboy
990
+ X-Amzn-Remapped-Date:
991
+ - Fri, 26 Jan 2024 21:13:06 GMT
992
+ X-Cache:
993
+ - Miss from cloudfront
994
+ Via:
995
+ - 1.1 cfcfb1d8fbf5ce2b107182799687a614.cloudfront.net (CloudFront)
996
+ X-Amz-Cf-Pop:
997
+ - YTO50-P2
998
+ X-Amz-Cf-Id:
999
+ - KcA20II6Sbl4cFYDTf7zimmB7a2HM8sblSCbiTPPqAc_F_M9OCG2og==
1000
+ body:
1001
+ encoding: UTF-8
1002
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488-1","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
1003
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
1004
+ - 34067","product_identifier":"SKU-2","id":0,"discount":"0.0","description":"Second
1005
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":2,"product_tax_code":"TaxCode
1006
+ - 34067","product_identifier":"SKU-3","id":1,"discount":"0.0","description":"Third
1007
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"30.0"}}'
1008
+ http_version:
1009
+ recorded_at: Fri, 26 Jan 2024 21:13:06 GMT
1010
+ - request:
1011
+ method: post
1012
+ uri: https://api.taxjar.com/v2/transactions/refunds
1013
+ body:
1014
+ encoding: ASCII-8BIT
1015
+ string: '{"to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
1016
+ Different Road","transaction_id":"R925733488-1-REFUND","transaction_reference_id":"R925733488-1","transaction_date":"2024-01-26T21:12:59Z","amount":-30.0,"sales_tax":-3.56,"shipping":-0.0,"line_items":[{"unit_price":-10.0,"sales_tax":-0.89,"quantity":1,"product_tax_code":"TaxCode
1017
+ - 34067","product_identifier":"SKU-2","id":0,"discount":-0.0,"description":"Second
1018
+ Product - Master"},{"unit_price":-10.0,"sales_tax":-1.78,"quantity":2,"product_tax_code":"TaxCode
1019
+ - 34067","product_identifier":"SKU-3","id":1,"discount":-0.0,"description":"Third
1020
+ Product - Master"}]}'
1021
+ headers:
1022
+ User-Agent:
1023
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
1024
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
1025
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
1026
+ Authorization:
1027
+ - Bearer <BEARER_TOKEN>
1028
+ X-Api-Version:
1029
+ - '2020-08-07'
1030
+ Plugin:
1031
+ - supergoodsolidustaxjar
1032
+ Connection:
1033
+ - close
1034
+ Content-Type:
1035
+ - application/json; charset=UTF-8
1036
+ Host:
1037
+ - api.taxjar.com
1038
+ response:
1039
+ status:
1040
+ code: 201
1041
+ message: Created
1042
+ headers:
1043
+ Content-Type:
1044
+ - application/json; charset=utf-8
1045
+ Content-Length:
1046
+ - '847'
1047
+ Connection:
1048
+ - close
1049
+ Date:
1050
+ - Fri, 26 Jan 2024 21:13:06 GMT
1051
+ X-Amzn-Requestid:
1052
+ - cfa9976f-29e1-4a70-ad33-bd5f54283e3c
1053
+ X-Amzn-Remapped-Content-Length:
1054
+ - '847'
1055
+ X-Amzn-Remapped-Connection:
1056
+ - keep-alive
1057
+ X-Request-Id:
1058
+ - F64CEmSB-c-g4PIEf68C
1059
+ X-Api-Version:
1060
+ - '2020-08-07'
1061
+ X-Amz-Apigw-Id:
1062
+ - SKn_fGEjoAMEhDw=
1063
+ Cache-Control:
1064
+ - max-age=0, private, must-revalidate
1065
+ X-Amzn-Remapped-Server:
1066
+ - Cowboy
1067
+ X-Amzn-Remapped-Date:
1068
+ - Fri, 26 Jan 2024 21:13:06 GMT
1069
+ X-Cache:
1070
+ - Miss from cloudfront
1071
+ Via:
1072
+ - 1.1 12aa3fefbdb5e80269e58f34f94a99e8.cloudfront.net (CloudFront)
1073
+ X-Amz-Cf-Pop:
1074
+ - YTO50-P2
1075
+ X-Amz-Cf-Id:
1076
+ - 4iSY_0OCvu20hHCxfgEkj3RYdfnQi1uS6FCxz2lsEc1gkdcaWW0C5Q==
1077
+ body:
1078
+ encoding: UTF-8
1079
+ string: '{"refund":{"user_id":345723,"transaction_reference_id":"R925733488-1","transaction_id":"R925733488-1-REFUND","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
1080
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"-0.0","sales_tax":"-3.56","provider":"api","line_items":[{"unit_price":"-10.0","sales_tax":"-0.89","quantity":1,"product_tax_code":"TaxCode
1081
+ - 34067","product_identifier":"SKU-2","id":0,"discount":"0.0","description":"Second
1082
+ Product - Master"},{"unit_price":"-10.0","sales_tax":"-1.78","quantity":2,"product_tax_code":"TaxCode
1083
+ - 34067","product_identifier":"SKU-3","id":1,"discount":"0.0","description":"Third
1084
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":null,"amount":"-30.0"}}'
1085
+ http_version:
1086
+ recorded_at: Fri, 26 Jan 2024 21:13:06 GMT
1087
+ - request:
1088
+ method: post
1089
+ uri: https://api.taxjar.com/v2/transactions/orders
1090
+ body:
1091
+ encoding: ASCII-8BIT
1092
+ string: '{"customer_id":"1","to_country":"US","to_zip":"11430","to_city":"Herndon","to_state":"NY","to_street":"A
1093
+ Different Road","line_items":[{"id":2,"quantity":1,"product_identifier":"SKU-2","description":"Second
1094
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"0.89"},{"id":3,"quantity":1,"product_identifier":"SKU-3","description":"Third
1095
+ Product - Master","product_tax_code":"TaxCode - 34067","unit_price":"10.0","discount":0,"sales_tax":"1.78"}],"transaction_id":"R925733488-2","transaction_date":"2024-01-26T21:12:59Z","amount":"20.0","shipping":"0.0","sales_tax":"3.56"}'
1096
+ headers:
1097
+ User-Agent:
1098
+ - 'TaxJar/Ruby (Darwin Noahs-MacBook-Pro.local 21.6.0 Darwin Kernel Version
1099
+ 21.6.0: Mon Apr 24 21:11:17 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T6000
1100
+ arm64; ruby 3.2.2-p53; OpenSSL 3.1.2 1 Aug 2023) taxjar-ruby/3.0.4'
1101
+ Authorization:
1102
+ - Bearer <BEARER_TOKEN>
1103
+ X-Api-Version:
1104
+ - '2020-08-07'
1105
+ Plugin:
1106
+ - supergoodsolidustaxjar
1107
+ Connection:
1108
+ - close
1109
+ Content-Type:
1110
+ - application/json; charset=UTF-8
1111
+ Host:
1112
+ - api.taxjar.com
1113
+ response:
1114
+ status:
1115
+ code: 201
1116
+ message: Created
1117
+ headers:
1118
+ Content-Type:
1119
+ - application/json; charset=utf-8
1120
+ Content-Length:
1121
+ - '821'
1122
+ Connection:
1123
+ - close
1124
+ Date:
1125
+ - Fri, 26 Jan 2024 21:13:07 GMT
1126
+ X-Amzn-Requestid:
1127
+ - aa723125-135e-41a0-9e72-c7c04e83c60b
1128
+ X-Amzn-Remapped-Content-Length:
1129
+ - '821'
1130
+ X-Amzn-Remapped-Connection:
1131
+ - keep-alive
1132
+ X-Request-Id:
1133
+ - F64CEnllaanYBwkJsCRC
1134
+ X-Api-Version:
1135
+ - '2020-08-07'
1136
+ X-Amz-Apigw-Id:
1137
+ - SKn_iHHMIAMEAxQ=
1138
+ Cache-Control:
1139
+ - max-age=0, private, must-revalidate
1140
+ X-Amzn-Remapped-Server:
1141
+ - Cowboy
1142
+ X-Amzn-Remapped-Date:
1143
+ - Fri, 26 Jan 2024 21:13:07 GMT
1144
+ X-Cache:
1145
+ - Miss from cloudfront
1146
+ Via:
1147
+ - 1.1 7293b56f3a0eb541aadcbcaa0146d528.cloudfront.net (CloudFront)
1148
+ X-Amz-Cf-Pop:
1149
+ - YTO50-P2
1150
+ X-Amz-Cf-Id:
1151
+ - 7wAQ8hn5VG32oZWTwFuwXi6pz8H4JaI_Rp7R1XZn8NR7k9Tzd3maDg==
1152
+ body:
1153
+ encoding: UTF-8
1154
+ string: '{"order":{"user_id":345723,"transaction_reference_id":null,"transaction_id":"R925733488-2","transaction_date":"2024-01-26T21:12:59.000Z","to_zip":"11430","to_street":"A
1155
+ Different Road","to_state":"NY","to_country":"US","to_city":"HERNDON","shipping":"0.0","sales_tax":"3.56","provider":"api","line_items":[{"unit_price":"10.0","sales_tax":"0.89","quantity":1,"product_tax_code":"TaxCode
1156
+ - 34067","product_identifier":"SKU-2","id":0,"discount":"0.0","description":"Second
1157
+ Product - Master"},{"unit_price":"10.0","sales_tax":"1.78","quantity":1,"product_tax_code":"TaxCode
1158
+ - 34067","product_identifier":"SKU-3","id":1,"discount":"0.0","description":"Third
1159
+ Product - Master"}],"from_zip":null,"from_street":null,"from_state":null,"from_country":"US","from_city":null,"exemption_type":null,"customer_id":"1","amount":"20.0"}}'
1160
+ http_version:
1161
+ recorded_at: Fri, 26 Jan 2024 21:13:07 GMT
1162
+ recorded_with: VCR 4.0.0