fortnox-api 0.7.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -0
- data/.env.template +7 -0
- data/.env.test +11 -3
- data/.gitignore +7 -1
- data/.rubocop.yml +18 -2
- data/.tool-versions +1 -0
- data/.travis.yml +15 -19
- data/CHANGELOG.md +66 -1
- data/CONTRIBUTE.md +21 -9
- data/DEVELOPER_README.md +72 -0
- data/Guardfile +13 -4
- data/README.md +226 -61
- data/Rakefile +133 -0
- data/bin/get_tokens +79 -0
- data/bin/renew_tokens +28 -0
- data/fortnox-api.gemspec +31 -25
- data/lib/fortnox/api/mappers/article.rb +1 -1
- data/lib/fortnox/api/mappers/base/from_json.rb +7 -6
- data/lib/fortnox/api/mappers/base/to_json.rb +4 -5
- data/lib/fortnox/api/mappers/base.rb +3 -3
- data/lib/fortnox/api/mappers/customer.rb +1 -1
- data/lib/fortnox/api/mappers/default_delivery_types.rb +1 -1
- data/lib/fortnox/api/mappers/default_templates.rb +1 -1
- data/lib/fortnox/api/mappers/edi_information.rb +1 -1
- data/lib/fortnox/api/mappers/email_information.rb +1 -1
- data/lib/fortnox/api/mappers/invoice.rb +4 -4
- data/lib/fortnox/api/mappers/invoice_row.rb +1 -1
- data/lib/fortnox/api/mappers/order.rb +4 -4
- data/lib/fortnox/api/mappers/order_row.rb +1 -1
- data/lib/fortnox/api/mappers/project.rb +1 -1
- data/lib/fortnox/api/mappers/terms_of_payment.rb +1 -1
- data/lib/fortnox/api/mappers/unit.rb +1 -1
- data/lib/fortnox/api/mappers/value/country_string.rb +1 -1
- data/lib/fortnox/api/mappers.rb +18 -18
- data/lib/fortnox/api/models/article.rb +2 -2
- data/lib/fortnox/api/models/base.rb +23 -21
- data/lib/fortnox/api/models/customer.rb +57 -57
- data/lib/fortnox/api/models/document.rb +5 -2
- data/lib/fortnox/api/models/invoice.rb +2 -2
- data/lib/fortnox/api/models/label.rb +3 -3
- data/lib/fortnox/api/models/order.rb +2 -2
- data/lib/fortnox/api/models/project.rb +2 -2
- data/lib/fortnox/api/models/terms_of_payment.rb +2 -2
- data/lib/fortnox/api/models/unit.rb +2 -2
- data/lib/fortnox/api/models.rb +7 -7
- data/lib/fortnox/api/repositories/article.rb +3 -3
- data/lib/fortnox/api/repositories/authentication.rb +61 -0
- data/lib/fortnox/api/repositories/base/savers.rb +3 -1
- data/lib/fortnox/api/repositories/base.rb +25 -38
- data/lib/fortnox/api/repositories/customer.rb +3 -3
- data/lib/fortnox/api/repositories/invoice.rb +3 -3
- data/lib/fortnox/api/repositories/order.rb +3 -3
- data/lib/fortnox/api/repositories/project.rb +3 -3
- data/lib/fortnox/api/repositories/terms_of_payment.rb +3 -3
- data/lib/fortnox/api/repositories/unit.rb +3 -3
- data/lib/fortnox/api/repositories.rb +8 -7
- data/lib/fortnox/api/request_handling.rb +30 -18
- data/lib/fortnox/api/types/default_delivery_types.rb +0 -2
- data/lib/fortnox/api/types/default_templates.rb +0 -2
- data/lib/fortnox/api/types/document_row.rb +3 -3
- data/lib/fortnox/api/types/edi_information.rb +0 -2
- data/lib/fortnox/api/types/email_information.rb +0 -2
- data/lib/fortnox/api/types/enums.rb +54 -10
- data/lib/fortnox/api/types/invoice_row.rb +1 -1
- data/lib/fortnox/api/types/model.rb +5 -9
- data/lib/fortnox/api/types/nullable.rb +13 -9
- data/lib/fortnox/api/types/order_row.rb +1 -1
- data/lib/fortnox/api/types/required.rb +3 -3
- data/lib/fortnox/api/types/sized.rb +4 -4
- data/lib/fortnox/api/types.rb +37 -24
- data/lib/fortnox/api/version.rb +1 -1
- data/lib/fortnox/api.rb +21 -39
- data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +13 -11
- data/spec/fortnox/api/mappers/base/from_json_spec.rb +10 -12
- data/spec/fortnox/api/mappers/base/to_json_spec.rb +48 -57
- data/spec/fortnox/api/mappers/base_spec.rb +4 -7
- data/spec/fortnox/api/mappers/contexts/json_conversion.rb +38 -33
- data/spec/fortnox/api/mappers/default_delivery_types_spec.rb +1 -1
- data/spec/fortnox/api/mappers/examples/mapper.rb +1 -1
- data/spec/fortnox/api/mappers/unit_spec.rb +3 -4
- data/spec/fortnox/api/models/base_spec.rb +33 -22
- data/spec/fortnox/api/models/unit_spec.rb +5 -3
- data/spec/fortnox/api/repositories/article_spec.rb +14 -9
- data/spec/fortnox/api/repositories/authentication_spec.rb +103 -0
- data/spec/fortnox/api/repositories/base_spec.rb +105 -326
- data/spec/fortnox/api/repositories/customer_spec.rb +37 -7
- data/spec/fortnox/api/repositories/examples/all.rb +0 -1
- data/spec/fortnox/api/repositories/examples/find.rb +5 -8
- data/spec/fortnox/api/repositories/examples/only.rb +4 -13
- data/spec/fortnox/api/repositories/examples/save.rb +32 -18
- data/spec/fortnox/api/repositories/examples/save_with_nested_model.rb +0 -5
- data/spec/fortnox/api/repositories/examples/save_with_specially_named_attribute.rb +1 -4
- data/spec/fortnox/api/repositories/examples/search.rb +4 -7
- data/spec/fortnox/api/repositories/invoice_spec.rb +72 -29
- data/spec/fortnox/api/repositories/order_spec.rb +11 -9
- data/spec/fortnox/api/repositories/project_spec.rb +7 -6
- data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +9 -7
- data/spec/fortnox/api/repositories/unit_spec.rb +13 -11
- data/spec/fortnox/api/types/country_spec.rb +1 -1
- data/spec/fortnox/api/types/email_spec.rb +2 -2
- data/spec/fortnox/api/types/enums_spec.rb +1 -0
- data/spec/fortnox/api/types/examples/document_row.rb +3 -3
- data/spec/fortnox/api/types/examples/enum.rb +4 -4
- data/spec/fortnox/api/types/examples/types.rb +1 -3
- data/spec/fortnox/api/types/housework_types_spec.rb +124 -43
- data/spec/fortnox/api/types/model_spec.rb +13 -23
- data/spec/fortnox/api/types/nullable_spec.rb +30 -10
- data/spec/fortnox/api/types/order_row_spec.rb +2 -2
- data/spec/fortnox/api/types/required_spec.rb +7 -15
- data/spec/fortnox/api/types/sales_account_spec.rb +57 -0
- data/spec/fortnox/api_spec.rb +19 -124
- data/spec/spec_helper.rb +0 -14
- data/spec/support/helpers/configuration_helper.rb +30 -3
- data/spec/support/helpers.rb +1 -1
- data/spec/support/matchers/type/attribute_matcher.rb +2 -2
- data/spec/support/matchers/type/enum_matcher.rb +1 -1
- data/spec/support/matchers/type/have_account_number_matcher.rb +1 -1
- data/spec/support/matchers/type/have_email_matcher.rb +1 -1
- data/spec/support/matchers/type/have_nullable_date_matcher.rb +7 -5
- data/spec/support/matchers/type/have_nullable_matcher.rb +1 -1
- data/spec/support/matchers/type/have_nullable_string_matcher.rb +5 -5
- data/spec/support/matchers/type/require_attribute_matcher.rb +5 -5
- data/spec/support/matchers/type/type_matcher.rb +1 -1
- data/spec/support/vcr_setup.rb +16 -0
- data/spec/vcr_cassettes/articles/all.yml +41 -42
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/articles/find_failure.yml +36 -19
- data/spec/vcr_cassettes/articles/find_id_1.yml +38 -20
- data/spec/vcr_cassettes/articles/find_new.yml +39 -22
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/articles/save_new.yml +37 -19
- data/spec/vcr_cassettes/articles/save_old.yml +39 -22
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +37 -19
- data/spec/vcr_cassettes/articles/search_by_name.yml +41 -21
- data/spec/vcr_cassettes/articles/search_miss.yml +36 -19
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +38 -32
- data/spec/vcr_cassettes/authentication/expired_token.yml +54 -0
- data/spec/vcr_cassettes/authentication/invalid_authorization.yml +57 -0
- data/spec/vcr_cassettes/authentication/invalid_refresh_token.yml +58 -0
- data/spec/vcr_cassettes/authentication/valid_request.yml +63 -0
- data/spec/vcr_cassettes/customers/all.yml +44 -132
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/customers/find_failure.yml +36 -19
- data/spec/vcr_cassettes/customers/find_id_1.yml +39 -21
- data/spec/vcr_cassettes/customers/find_new.yml +38 -21
- data/spec/vcr_cassettes/customers/find_with_sales_account.yml +63 -0
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/customers/save_new.yml +36 -18
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +32 -24
- data/spec/vcr_cassettes/customers/save_new_with_sales_account.yml +63 -0
- data/spec/vcr_cassettes/customers/save_old.yml +38 -21
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +36 -18
- data/spec/vcr_cassettes/customers/search_by_name.yml +38 -48
- data/spec/vcr_cassettes/customers/search_miss.yml +36 -19
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +39 -22
- data/spec/vcr_cassettes/invoices/all.yml +71 -114
- data/spec/vcr_cassettes/invoices/filter_hit.yml +39 -24
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +35 -17
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/invoices/find_failure.yml +36 -19
- data/spec/vcr_cassettes/invoices/find_id_1.yml +40 -22
- data/spec/vcr_cassettes/invoices/find_new.yml +41 -24
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/invoices/row_description_limit.yml +65 -0
- data/spec/vcr_cassettes/invoices/save_new.yml +39 -21
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +39 -21
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +36 -27
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +36 -27
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +36 -27
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +35 -26
- data/spec/vcr_cassettes/invoices/save_new_with_unsaved_parent.yml +65 -0
- data/spec/vcr_cassettes/invoices/save_old.yml +41 -24
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +41 -24
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +37 -29
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +41 -24
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +37 -29
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +40 -21
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +39 -20
- data/spec/vcr_cassettes/invoices/search_by_name.yml +38 -27
- data/spec/vcr_cassettes/invoices/search_miss.yml +36 -19
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +39 -22
- data/spec/vcr_cassettes/orders/all.yml +44 -119
- data/spec/vcr_cassettes/orders/filter_hit.yml +39 -26
- data/spec/vcr_cassettes/orders/filter_invalid.yml +35 -17
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/orders/find_failure.yml +36 -19
- data/spec/vcr_cassettes/orders/find_id_1.yml +42 -23
- data/spec/vcr_cassettes/orders/find_new.yml +41 -24
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +61 -0
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +61 -0
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +36 -18
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +65 -0
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +65 -0
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +65 -0
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +40 -21
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +36 -18
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/orders/save_new.yml +40 -22
- data/spec/vcr_cassettes/orders/save_old.yml +41 -24
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +40 -21
- data/spec/vcr_cassettes/orders/search_by_name.yml +38 -23
- data/spec/vcr_cassettes/orders/search_miss.yml +36 -19
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +36 -19
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +39 -22
- data/spec/vcr_cassettes/projects/all.yml +39 -37
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +36 -19
- data/spec/vcr_cassettes/projects/find_failure.yml +36 -19
- data/spec/vcr_cassettes/projects/find_id_1.yml +38 -21
- data/spec/vcr_cassettes/projects/find_new.yml +39 -22
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +40 -22
- data/spec/vcr_cassettes/projects/save_new.yml +37 -19
- data/spec/vcr_cassettes/projects/save_old.yml +39 -22
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +38 -21
- data/spec/vcr_cassettes/termsofpayments/all.yml +43 -29
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +36 -19
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +38 -22
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +38 -21
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +37 -19
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +38 -21
- data/spec/vcr_cassettes/units/all.yml +38 -26
- data/spec/vcr_cassettes/units/find_failure.yml +36 -19
- data/spec/vcr_cassettes/units/find_id_1.yml +38 -21
- data/spec/vcr_cassettes/units/find_new.yml +38 -21
- data/spec/vcr_cassettes/units/save_new.yml +37 -19
- data/spec/vcr_cassettes/units/save_old.yml +38 -21
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +37 -19
- metadata +133 -252
- data/lib/fortnox/api/circular_queue.rb +0 -39
- data/spec/fortnox/api/circular_queue_spec.rb +0 -52
- data/spec/support/helpers/dummy_class_helper.rb +0 -38
- data/spec/support/helpers/when_performing_helper.rb +0 -7
- data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +0 -57
- data/temp.txt +0 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.fortnox.se/3/articles/?articlenumber=
|
5
|
+
uri: https://api.fortnox.se/3/articles/?articlenumber=101
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,46 +11,52 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:46 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '400'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:35:05 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '79'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- b1802d9e
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"MetaInformation":{"@TotalResources":
|
43
|
-
|
44
|
-
|
45
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/13","ArticleNumber":"13","Description":"Test
|
46
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/14","ArticleNumber":"14","Description":"A
|
47
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/15","ArticleNumber":"15","Description":"A
|
48
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/16","ArticleNumber":"16","Description":"Test
|
49
|
-
article","DisposableQuantity":"0","EAN":"5901234123457","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/17","ArticleNumber":"17","Description":"A
|
50
|
-
value","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":"","VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/18","ArticleNumber":"18","Description":"Updated
|
51
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/19","ArticleNumber":"19","Description":"Updated
|
52
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false},{"@url":"https:\/\/api.fortnox.se\/3\/articles\/21","ArticleNumber":"21","Description":"Updated
|
53
|
-
description","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":null,"StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false}]}'
|
54
|
-
http_version:
|
55
|
-
recorded_at: Wed, 29 May 2019 07:52:46 GMT
|
56
|
-
recorded_with: VCR 4.0.0
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"MetaInformation":{"@TotalResources":1,"@TotalPages":1,"@CurrentPage":1},"Articles":[{"@url":"https:\/\/api.fortnox.se\/3\/articles\/101","ArticleNumber":"101","Description":"Hammer","DisposableQuantity":"0","EAN":"","Housework":false,"PurchasePrice":"0","SalesPrice":null,"QuantityInStock":"0","ReservedQuantity":"0","StockPlace":"","StockValue":"0","Unit":null,"VAT":null,"WebshopArticle":false}]}'
|
61
|
+
recorded_at: Mon, 30 Jan 2023 10:35:05 GMT
|
62
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.fortnox.se/3/customers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 401
|
23
|
+
message: Unauthorized
|
24
|
+
headers:
|
25
|
+
Content-Length:
|
26
|
+
- '26'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 01 Feb 2023 09:45:05 GMT
|
31
|
+
Server:
|
32
|
+
- Fortnox
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Xss-Protection:
|
36
|
+
- '0'
|
37
|
+
Referrer-Policy:
|
38
|
+
- strict-origin-when-cross-origin
|
39
|
+
Content-Security-Policy:
|
40
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
41
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
42
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
43
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
44
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
45
|
+
blob: data:'
|
46
|
+
X-Frame-Options:
|
47
|
+
- sameorigin
|
48
|
+
Strict-Transport-Security:
|
49
|
+
- max-age=31536000; includeSubdomains
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"message":"unauthorized"}'
|
53
|
+
recorded_at: Wed, 01 Feb 2023 09:45:05 GMT
|
54
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://apps.fortnox.se/oauth-v1/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Authorization:
|
13
|
+
- "<AUTHORIZATION>"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 401
|
23
|
+
message: Unauthorized
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=UTF-8
|
27
|
+
Date:
|
28
|
+
- Wed, 01 Feb 2023 09:25:13 GMT
|
29
|
+
X-Uid:
|
30
|
+
- d8176676
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Server:
|
34
|
+
- Fortnox
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Xss-Protection:
|
38
|
+
- '0'
|
39
|
+
Referrer-Policy:
|
40
|
+
- strict-origin-when-cross-origin
|
41
|
+
Content-Security-Policy:
|
42
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
43
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
44
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
45
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
46
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
47
|
+
blob: data:'
|
48
|
+
X-Frame-Options:
|
49
|
+
- sameorigin
|
50
|
+
Strict-Transport-Security:
|
51
|
+
- max-age=31536000; includeSubdomains
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '{"error":"invalid_client","error_description":"The client credentials
|
55
|
+
are invalid"}'
|
56
|
+
recorded_at: Wed, 01 Feb 2023 09:25:13 GMT
|
57
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://apps.fortnox.se/oauth-v1/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Authorization:
|
13
|
+
- "<AUTHORIZATION>"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 400
|
23
|
+
message: Bad Request
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Content-Type:
|
28
|
+
- text/html; charset=UTF-8
|
29
|
+
Date:
|
30
|
+
- Wed, 01 Feb 2023 09:24:05 GMT
|
31
|
+
X-Uid:
|
32
|
+
- b4d63a37
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Server:
|
36
|
+
- Fortnox
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
X-Xss-Protection:
|
40
|
+
- '0'
|
41
|
+
Referrer-Policy:
|
42
|
+
- strict-origin-when-cross-origin
|
43
|
+
Content-Security-Policy:
|
44
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
45
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
46
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
47
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
48
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
49
|
+
blob: data:'
|
50
|
+
X-Frame-Options:
|
51
|
+
- sameorigin
|
52
|
+
Strict-Transport-Security:
|
53
|
+
- max-age=31536000; includeSubdomains
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"error":"invalid_grant","error_description":"Invalid refresh token"}'
|
57
|
+
recorded_at: Wed, 01 Feb 2023 09:24:05 GMT
|
58
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://apps.fortnox.se/oauth-v1/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/x-www-form-urlencoded
|
12
|
+
Authorization:
|
13
|
+
- "<AUTHORIZATION>"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- no-store
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Date:
|
30
|
+
- Wed, 01 Feb 2023 09:31:52 GMT
|
31
|
+
Pragma:
|
32
|
+
- no-cache
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
X-Uid:
|
36
|
+
- ad7d3f90
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Server:
|
40
|
+
- Fortnox
|
41
|
+
X-Content-Type-Options:
|
42
|
+
- nosniff
|
43
|
+
X-Xss-Protection:
|
44
|
+
- '0'
|
45
|
+
Referrer-Policy:
|
46
|
+
- strict-origin-when-cross-origin
|
47
|
+
Content-Security-Policy:
|
48
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
49
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
50
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
51
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
52
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
53
|
+
blob: data:'
|
54
|
+
X-Frame-Options:
|
55
|
+
- sameorigin
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"access_token":"<ACCESS_TOKEN>","expires_in":3600,"token_type":"bearer","scope":"article
|
61
|
+
invoice settings customer order project","refresh_token":"<REFRESH_TOKEN>"}'
|
62
|
+
recorded_at: Wed, 01 Feb 2023 09:31:52 GMT
|
63
|
+
recorded_with: VCR 6.1.0
|
@@ -11,147 +11,59 @@ http_interactions:
|
|
11
11
|
- application/json
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
14
|
+
Authorization:
|
15
|
+
- "<AUTHORIZATION>"
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
Date:
|
26
|
-
- Wed, 29 May 2019 07:52:38 GMT
|
25
|
+
Content-Length:
|
26
|
+
- '1497'
|
27
27
|
Content-Type:
|
28
28
|
- application/json
|
29
|
-
|
30
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 30 Jan 2023 10:36:42 GMT
|
31
31
|
Vary:
|
32
32
|
- Accept-Encoding
|
33
|
-
-
|
33
|
+
X-Build:
|
34
|
+
- 16d854443d
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
34
37
|
X-Rack-Responsetime:
|
35
|
-
- '
|
38
|
+
- '67'
|
36
39
|
X-Uid:
|
37
|
-
-
|
38
|
-
|
39
|
-
-
|
40
|
+
- bbb0d6b2
|
41
|
+
Server:
|
42
|
+
- Fortnox
|
43
|
+
X-Content-Type-Options:
|
44
|
+
- nosniff
|
45
|
+
X-Xss-Protection:
|
46
|
+
- '0'
|
47
|
+
Referrer-Policy:
|
48
|
+
- strict-origin-when-cross-origin
|
49
|
+
Content-Security-Policy:
|
50
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
51
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
52
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
53
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
54
|
+
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
|
55
|
+
blob: data:'
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains
|
40
58
|
body:
|
41
|
-
encoding:
|
42
|
-
string: '{"MetaInformation":{"@TotalResources":
|
43
|
-
name","OrganisationNumber":"
|
44
|
-
York","CustomerNumber":"2","Email":"","Name":"
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/11","Address1":"","Address2":"","City":"","CustomerNumber":"11","Email":"","Name":"Arthur
|
53
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/12","Address1":"","Address2":"","City":"","CustomerNumber":"12","Email":"","Name":"Arthur
|
54
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/13","Address1":"","Address2":"","City":"","CustomerNumber":"13","Email":"","Name":"Arthur
|
55
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/14","Address1":"","Address2":"","City":"","CustomerNumber":"14","Email":"","Name":"Arthur
|
56
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/15","Address1":"","Address2":"","City":"","CustomerNumber":"15","Email":"","Name":"Arthur
|
57
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/16","Address1":"","Address2":"","City":"","CustomerNumber":"16","Email":"","Name":"Arthur
|
58
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/17","Address1":"","Address2":"","City":"","CustomerNumber":"17","Email":"","Name":"Arthur
|
59
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/18","Address1":"","Address2":"","City":"","CustomerNumber":"18","Email":"","Name":"Arthur
|
60
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/19","Address1":"","Address2":"","City":"","CustomerNumber":"19","Email":"","Name":"Arthur
|
61
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/20","Address1":"","Address2":"","City":"","CustomerNumber":"20","Email":"","Name":"Arthur
|
62
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/21","Address1":"","Address2":"","City":"","CustomerNumber":"21","Email":"","Name":"Arthur
|
63
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/22","Address1":"","Address2":"","City":"","CustomerNumber":"22","Email":"","Name":"Arthur
|
64
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/23","Address1":"","Address2":"","City":"","CustomerNumber":"23","Email":"","Name":"Arthur
|
65
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/24","Address1":"","Address2":"","City":"","CustomerNumber":"24","Email":"","Name":"An
|
66
|
-
entity","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/25","Address1":"","Address2":"","City":"","CustomerNumber":"25","Email":"","Name":"An
|
67
|
-
entity","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/26","Address1":"","Address2":"","City":"","CustomerNumber":"26","Email":"","Name":"A
|
68
|
-
customer","OrganisationNumber":"560101-3286","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/27","Address1":"","Address2":"","City":"","CustomerNumber":"27","Email":"","Name":"A
|
69
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/28","Address1":"","Address2":"","City":"","CustomerNumber":"28","Email":"","Name":"A
|
70
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/29","Address1":"","Address2":"","City":"","CustomerNumber":"29","Email":"","Name":"A
|
71
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/30","Address1":"","Address2":"","City":"","CustomerNumber":"30","Email":"","Name":"A
|
72
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/31","Address1":"","Address2":"","City":"","CustomerNumber":"31","Email":"","Name":"A
|
73
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/32","Address1":"","Address2":"","City":"","CustomerNumber":"32","Email":"","Name":"A
|
74
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/33","Address1":"","Address2":"","City":"","CustomerNumber":"33","Email":"","Name":"A
|
75
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/34","Address1":"","Address2":"","City":"","CustomerNumber":"34","Email":"","Name":"A
|
76
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/35","Address1":"","Address2":"","City":"","CustomerNumber":"35","Email":"","Name":"A
|
77
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/36","Address1":"","Address2":"","City":"","CustomerNumber":"36","Email":"","Name":"A
|
78
|
-
value","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/37","Address1":"","Address2":"","City":"","CustomerNumber":"37","Email":"","Name":"Updated
|
79
|
-
name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/38","Address1":"","Address2":"","City":"","CustomerNumber":"38","Email":"","Name":"Updated
|
80
|
-
name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/39","Address1":"","Address2":"","City":"","CustomerNumber":"39","Email":"","Name":"Updated
|
81
|
-
name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/40","Address1":"","Address2":"","City":"","CustomerNumber":"40","Email":"","Name":"Arthur
|
82
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/41","Address1":"","Address2":"","City":"","CustomerNumber":"41","Email":"","Name":"Arthur
|
83
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/42","Address1":"","Address2":"","City":"","CustomerNumber":"42","Email":"","Name":"Some
|
84
|
-
company","OrganisationNumber":"400102-4621","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/43","Address1":"","Address2":"","City":"","CustomerNumber":"43","Email":"","Name":"Arthur
|
85
|
-
Dent","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/44","Address1":"","Address2":"","City":"","CustomerNumber":"44","Email":"","Name":"A
|
86
|
-
company","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/45","Address1":"Some
|
87
|
-
long and complicated address","Address2":"","City":"Paris","CustomerNumber":"45","Email":"an_email-address@email.com","Name":"A
|
88
|
-
company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
|
89
|
-
code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/46","Address1":"Some
|
90
|
-
long and complicated address","Address2":"","City":"Paris","CustomerNumber":"46","Email":"an_email-address@email.com","Name":"A
|
91
|
-
company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
|
92
|
-
code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/47","Address1":"Some
|
93
|
-
long and complicated address","Address2":"","City":"Paris","CustomerNumber":"47","Email":"an_email-address@email.com","Name":"A
|
94
|
-
company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
|
95
|
-
code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/48","Address1":"","Address2":"","City":"","CustomerNumber":"48","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/49","Address1":"","Address2":"","City":"","CustomerNumber":"49","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/50","Address1":"","Address2":"","City":"","CustomerNumber":"50","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/51","Address1":"","Address2":"","City":"","CustomerNumber":"51","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/52","Address1":"","Address2":"","City":"","CustomerNumber":"52","Email":"","Name":"1","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/53","Address1":"","Address2":"","City":"","CustomerNumber":"53","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/54","Address1":"Some
|
96
|
-
long and complicated address","Address2":"","City":"Paris","CustomerNumber":"54","Email":"an_email-address@email.com","Name":"A
|
97
|
-
company","OrganisationNumber":"","Phone":"Phone number 123","ZipCode":"A zip
|
98
|
-
code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/55","Address1":"","Address2":"","City":"","CustomerNumber":"55","Email":"","Name":"j","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/56","Address1":"","Address2":"","City":"","CustomerNumber":"56","Email":"","Name":"j","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/57","Address1":"","Address2":"","City":"","CustomerNumber":"57","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/58","Address1":"","Address2":"","City":"","CustomerNumber":"58","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/59","Address1":"","Address2":"","City":"","CustomerNumber":"59","Email":"","Name":"k","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/60","Address1":"","Address2":"","City":"","CustomerNumber":"60","Email":"","Name":"2","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/61","Address1":"","Address2":"","City":"","CustomerNumber":"61","Email":"","Name":"Ericsson","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/62","Address1":"","Address2":"","City":"","CustomerNumber":"62","Email":"","Name":"Ericsson","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/63","Address1":"Postadress","Address2":"","City":"Stad","CustomerNumber":"63","Email":"utland@email.com","Name":"Utlandskund","OrganisationNumber":"","Phone":"001122","ZipCode":"Postnummer"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/64","Address1":"","Address2":"","City":"","CustomerNumber":"64","Email":"","Name":"Easy
|
99
|
-
Translate GmbH","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/65","Address1":"Boschstra\u00dfe","Address2":"","City":"Hamburg","CustomerNumber":"65","Email":"","Name":"A
|
100
|
-
foreign customer","OrganisationNumber":"","Phone":"","ZipCode":"22761"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/66","Address1":"Myrliden
|
101
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"66","Email":"","Name":"Hannes
|
102
|
-
Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/67","Address1":"BOX
|
103
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"67","Email":"","Name":"BolagsBemanning
|
104
|
-
i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/68","Address1":"Myrliden
|
105
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"68","Email":"","Name":"Hannes
|
106
|
-
Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/69","Address1":"Myrliden
|
107
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"69","Email":"","Name":"Hannes
|
108
|
-
Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/70","Address1":"Myrliden
|
109
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"70","Email":"","Name":"Hannes
|
110
|
-
Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/71","Address1":"Myrliden
|
111
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"71","Email":"","Name":"Hannes
|
112
|
-
Elvemyr","OrganisationNumber":"","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/72","Address1":"BOX
|
113
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"72","Email":"","Name":"BolagsBemanning
|
114
|
-
i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/73","Address1":"BOX
|
115
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"73","Email":"","Name":"BolagsBemanning
|
116
|
-
i Tingsryd AB","OrganisationNumber":"","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/74","Address1":"Some
|
117
|
-
long and complicated address","Address2":"","City":"Paris","CustomerNumber":"74","Email":"an_email-address@email.com","Name":"A
|
118
|
-
company","OrganisationNumber":"001122-1122","Phone":"Phone number 123","ZipCode":"A
|
119
|
-
zip code"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/75","Address1":"BOX
|
120
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"75","Email":"","Name":"BolagsBemanning
|
121
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/76","Address1":"Myrliden
|
122
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"76","Email":"","Name":"Hannes
|
123
|
-
Elvemyr","OrganisationNumber":"1990-01-01","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/77","Address1":"BOX
|
124
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"77","Email":"","Name":"BolagsBemanning
|
125
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/78","Address1":"Myrliden
|
126
|
-
10","Address2":"","City":"Mullsj\u00f6","CustomerNumber":"78","Email":"","Name":"Hannes
|
127
|
-
Elvemyr","OrganisationNumber":"1990-01-01","Phone":"","ZipCode":"565 32"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/79","Address1":"BOX
|
128
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"79","Email":"","Name":"BolagsBemanning
|
129
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/80","Address1":"BOX
|
130
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"80","Email":"","Name":"BolagsBemanning
|
131
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/81","Address1":"BOX
|
132
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"81","Email":"","Name":"BolagsBemanning
|
133
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/82","Address1":"Ynglingagatan
|
134
|
-
6","Address2":"","City":"Bor\u00e5s","CustomerNumber":"82","Email":"anna@bolagskraft.se","Name":"Anna
|
135
|
-
Norman","OrganisationNumber":"1990-01-01","Phone":"","ZipCode":"506 37"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/83","Address1":"PEJLINGSV\u00c4GEN
|
136
|
-
1 B","Address2":"","City":"FRUF\u00c4LLAN","CustomerNumber":"83","Email":"","Name":"Ertan
|
137
|
-
AB","OrganisationNumber":"556454-3048","Phone":"","ZipCode":"50670"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/84","Address1":"","Address2":"","City":"","CustomerNumber":"84","Email":"","Name":"Easy
|
138
|
-
Translate GmbH","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/85","Address1":"BOX
|
139
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"85","Email":"","Name":"BolagsBemanning
|
140
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/86","Address1":"BOX
|
141
|
-
44","Address2":"","City":"TINGSRYD","CustomerNumber":"86","Email":"","Name":"BolagsBemanning
|
142
|
-
i Tingsryd AB","OrganisationNumber":"556716-1855","Phone":"","ZipCode":"36221"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/87","Address1":"","Address2":"","City":"","CustomerNumber":"87","Email":"","Name":"132","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/88","Address1":"","Address2":"","City":"","CustomerNumber":"88","Email":"","Name":"gegegege","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/89","Address1":"","Address2":"","City":"","CustomerNumber":"89","Email":"","Name":"En
|
143
|
-
annan utlandskund","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/90","Address1":"testgatan
|
144
|
-
5","Address2":"","City":"teststan","CustomerNumber":"90","Email":"test@tester.com","Name":"En
|
145
|
-
tredje utlandskund","OrganisationNumber":"","Phone":"0707070707","ZipCode":"55464"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/91","Address1":"testgatan
|
146
|
-
6","Address2":"","City":"teststan","CustomerNumber":"91","Email":"test@email.com","Name":"tredje
|
147
|
-
utlandskund","OrganisationNumber":"","Phone":"070070707","ZipCode":"111 11"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/92","Address1":"postadress","Address2":"","City":"stad","CustomerNumber":"92","Email":"","Name":"Ny
|
148
|
-
utlandskund","OrganisationNumber":"","Phone":"","ZipCode":"postnummer"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/93","Address1":"testgatan
|
149
|
-
6","Address2":"","City":"teststan","CustomerNumber":"93","Email":"","Name":"tester","OrganisationNumber":"","Phone":"","ZipCode":"414141"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/94","Address1":"","Address2":"","City":"1414141","CustomerNumber":"94","Email":"","Name":"test12313","OrganisationNumber":"","Phone":"","ZipCode":"1414141"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/95","Address1":"test","Address2":"","City":"teststan","CustomerNumber":"95","Email":"","Name":"test
|
150
|
-
kund utland","OrganisationNumber":"","Phone":"","ZipCode":"12314"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/96","Address1":"","Address2":"","City":"","CustomerNumber":"96","Email":"test@email.com","Name":"test123133","OrganisationNumber":"","Phone":"13132141","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/97","Address1":"","Address2":"","City":"","CustomerNumber":"97","Email":"test@testarn.com","Name":"testata","OrganisationNumber":"","Phone":"0987654","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/98","Address1":"","Address2":"","City":"","CustomerNumber":"98","Email":"test@email.com","Name":"test1231331","OrganisationNumber":"","Phone":"+1313131","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/99","Address1":"testgatan
|
151
|
-
6","Address2":"","City":"tesst","CustomerNumber":"99","Email":"test@email.com","Name":"test
|
152
|
-
testsson","OrganisationNumber":"","Phone":"1241415151","ZipCode":"111 11"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/100","Address1":"testgatan
|
153
|
-
6","Address2":"","City":"teststan","CustomerNumber":"100","Email":"test@email.com","Name":"test12313","OrganisationNumber":"","Phone":"123141","ZipCode":"111
|
154
|
-
11"}]}'
|
155
|
-
http_version:
|
156
|
-
recorded_at: Wed, 29 May 2019 07:52:38 GMT
|
157
|
-
recorded_with: VCR 4.0.0
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '{"MetaInformation":{"@TotalResources":7,"@TotalPages":1,"@CurrentPage":1},"Customers":[{"@url":"https:\/\/api.fortnox.se\/3\/customers\/1","Address1":"","Address2":"","City":"New
|
61
|
+
York","CustomerNumber":"1","Email":"","Name":"Updated name","OrganisationNumber":"","Phone":"","ZipCode":"10001"},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/2","Address1":"","Address2":"","City":"New
|
62
|
+
York","CustomerNumber":"2","Email":"","Name":"Test customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/3","Address1":"","Address2":"","City":"","CustomerNumber":"3","Email":"","Name":"Customer
|
63
|
+
with Swedish country code","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/4","Address1":"","Address2":"","City":"","CustomerNumber":"4","Email":"","Name":"Customer
|
64
|
+
with Sales Account","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/5","Address1":"","Address2":"","City":"","CustomerNumber":"5","Email":"","Name":"A
|
65
|
+
customer","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/6","Address1":"","Address2":"","City":"","CustomerNumber":"6","Email":"","Name":"Updated
|
66
|
+
name","OrganisationNumber":"","Phone":"","ZipCode":""},{"@url":"https:\/\/api.fortnox.se\/3\/customers\/7","Address1":"","Address2":"","City":"","CustomerNumber":"7","Email":"","Name":"Test
|
67
|
+
customer","OrganisationNumber":"","Phone":"","ZipCode":""}]}'
|
68
|
+
recorded_at: Mon, 30 Jan 2023 10:36:42 GMT
|
69
|
+
recorded_with: VCR 6.1.0
|