fortnox-api 0.8.0 → 0.8.1
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/.rubocop.yml +1 -1
- data/.tool-versions +1 -0
- data/.travis.yml +5 -3
- data/CHANGELOG.md +37 -3
- data/fortnox-api.gemspec +22 -17
- data/lib/fortnox/api/mappers/article.rb +1 -1
- data/lib/fortnox/api/mappers/base/from_json.rb +1 -1
- data/lib/fortnox/api/mappers/base/to_json.rb +2 -2
- 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 +14 -14
- data/lib/fortnox/api/models/customer.rb +2 -2
- data/lib/fortnox/api/models/document.rb +2 -2
- data/lib/fortnox/api/models/invoice.rb +2 -2
- data/lib/fortnox/api/models/label.rb +1 -1
- 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/base.rb +4 -3
- 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 +7 -7
- 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/edi_information.rb +0 -2
- data/lib/fortnox/api/types/email_information.rb +0 -2
- data/lib/fortnox/api/types/invoice_row.rb +1 -1
- data/lib/fortnox/api/types/model.rb +4 -6
- 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 +2 -2
- data/lib/fortnox/api/types.rb +17 -22
- data/lib/fortnox/api/version.rb +1 -1
- data/lib/fortnox/api.rb +18 -16
- data/spec/fortnox/api/mappers/base/canonical_name_sym_spec.rb +9 -7
- 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/models/base_spec.rb +8 -8
- data/spec/fortnox/api/repositories/article_spec.rb +2 -2
- data/spec/fortnox/api/repositories/base_spec.rb +4 -12
- data/spec/fortnox/api/repositories/customer_spec.rb +1 -1
- data/spec/fortnox/api/repositories/invoice_spec.rb +0 -6
- data/spec/fortnox/api/repositories/project_spec.rb +1 -1
- data/spec/fortnox/api/repositories/terms_of_payment_spec.rb +2 -2
- data/spec/fortnox/api/repositories/unit_spec.rb +3 -3
- data/spec/fortnox/api/types/housework_types_spec.rb +0 -29
- data/spec/fortnox/api/types/model_spec.rb +11 -17
- data/spec/fortnox/api/types/nullable_spec.rb +30 -10
- data/spec/fortnox/api/types/required_spec.rb +1 -4
- 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 +5 -5
- data/spec/support/matchers/type/have_nullable_string_matcher.rb +3 -3
- data/spec/vcr_cassettes/articles/all.yml +30 -20
- data/spec/vcr_cassettes/articles/find_by_hash_failure.yml +25 -19
- data/spec/vcr_cassettes/articles/find_failure.yml +25 -19
- data/spec/vcr_cassettes/articles/find_id_1.yml +26 -20
- data/spec/vcr_cassettes/articles/find_new.yml +28 -22
- data/spec/vcr_cassettes/articles/multi_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/articles/save_new.yml +27 -21
- data/spec/vcr_cassettes/articles/save_old.yml +28 -22
- data/spec/vcr_cassettes/articles/save_with_specially_named_attribute.yml +27 -21
- data/spec/vcr_cassettes/articles/search_by_name.yml +25 -19
- data/spec/vcr_cassettes/articles/search_miss.yml +25 -19
- data/spec/vcr_cassettes/articles/search_with_special_char.yml +25 -19
- data/spec/vcr_cassettes/articles/single_param_find_by_hash.yml +28 -21
- data/spec/vcr_cassettes/customers/all.yml +26 -20
- data/spec/vcr_cassettes/customers/find_by_hash_failure.yml +25 -19
- data/spec/vcr_cassettes/customers/find_failure.yml +25 -19
- data/spec/vcr_cassettes/customers/find_id_1.yml +25 -19
- data/spec/vcr_cassettes/customers/find_new.yml +27 -21
- data/spec/vcr_cassettes/customers/multi_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/customers/save_new.yml +26 -20
- data/spec/vcr_cassettes/customers/save_new_with_country_code_SE.yml +26 -20
- data/spec/vcr_cassettes/customers/save_old.yml +27 -21
- data/spec/vcr_cassettes/customers/save_with_specially_named_attribute.yml +26 -20
- data/spec/vcr_cassettes/customers/search_by_name.yml +28 -20
- data/spec/vcr_cassettes/customers/search_miss.yml +25 -19
- data/spec/vcr_cassettes/customers/search_with_special_char.yml +25 -19
- data/spec/vcr_cassettes/customers/single_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/invoices/all.yml +26 -20
- data/spec/vcr_cassettes/invoices/filter_hit.yml +25 -19
- data/spec/vcr_cassettes/invoices/filter_invalid.yml +25 -19
- data/spec/vcr_cassettes/invoices/find_by_hash_failure.yml +25 -19
- data/spec/vcr_cassettes/invoices/find_failure.yml +25 -19
- data/spec/vcr_cassettes/invoices/find_id_1.yml +26 -20
- data/spec/vcr_cassettes/invoices/find_new.yml +30 -24
- data/spec/vcr_cassettes/invoices/multi_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/invoices/save_new.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_new_with_comments.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_GB.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norge.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_Norway.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_Sverige.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_VA.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country_VI.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_new_with_country_empty_string.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_new_with_country_nil.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_old.yml +30 -24
- data/spec/vcr_cassettes/invoices/save_old_with_empty_comments.yml +30 -24
- data/spec/vcr_cassettes/invoices/save_old_with_empty_country.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_old_with_nil_comments.yml +30 -24
- data/spec/vcr_cassettes/invoices/save_old_with_nil_country.yml +29 -23
- data/spec/vcr_cassettes/invoices/save_with_nested_model.yml +28 -22
- data/spec/vcr_cassettes/invoices/save_with_specially_named_attribute.yml +28 -22
- data/spec/vcr_cassettes/invoices/search_by_name.yml +25 -19
- data/spec/vcr_cassettes/invoices/search_miss.yml +25 -19
- data/spec/vcr_cassettes/invoices/search_with_special_char.yml +25 -19
- data/spec/vcr_cassettes/invoices/single_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/orders/all.yml +26 -20
- data/spec/vcr_cassettes/orders/filter_hit.yml +25 -19
- data/spec/vcr_cassettes/orders/filter_invalid.yml +25 -19
- data/spec/vcr_cassettes/orders/find_by_hash_failure.yml +25 -19
- data/spec/vcr_cassettes/orders/find_failure.yml +25 -19
- data/spec/vcr_cassettes/orders/find_id_1.yml +25 -19
- data/spec/vcr_cassettes/orders/find_new.yml +29 -23
- data/spec/vcr_cassettes/orders/housework_invalid_tax_reduction_type.yml +25 -19
- data/spec/vcr_cassettes/orders/housework_othercoses_invalid.yml +25 -19
- data/spec/vcr_cassettes/orders/housework_type_babysitting.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_cleaning.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_construction.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_cooking.yml +25 -19
- data/spec/vcr_cassettes/orders/housework_type_electricity.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_gardening.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_glassmetalwork.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_grounddrainagework.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_hvac.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_itservices.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_majorappliancerepair.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_masonry.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_movingservices.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_othercare.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_othercosts.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_paintingwallpapering.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_snowplowing.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_textileclothing.yml +28 -22
- data/spec/vcr_cassettes/orders/housework_type_tutoring.yml +25 -19
- data/spec/vcr_cassettes/orders/multi_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/orders/save_new.yml +28 -22
- data/spec/vcr_cassettes/orders/save_old.yml +29 -23
- data/spec/vcr_cassettes/orders/save_with_nested_model.yml +28 -22
- data/spec/vcr_cassettes/orders/search_by_name.yml +25 -19
- data/spec/vcr_cassettes/orders/search_miss.yml +25 -19
- data/spec/vcr_cassettes/orders/search_with_special_char.yml +25 -19
- data/spec/vcr_cassettes/orders/single_param_find_by_hash.yml +25 -19
- data/spec/vcr_cassettes/projects/all.yml +31 -21
- data/spec/vcr_cassettes/projects/find_by_hash_failure.yml +25 -19
- data/spec/vcr_cassettes/projects/find_failure.yml +25 -19
- data/spec/vcr_cassettes/projects/find_id_1.yml +25 -19
- data/spec/vcr_cassettes/projects/find_new.yml +28 -22
- data/spec/vcr_cassettes/projects/multi_param_find_by_hash.yml +26 -20
- data/spec/vcr_cassettes/projects/save_new.yml +27 -21
- data/spec/vcr_cassettes/projects/save_old.yml +28 -22
- data/spec/vcr_cassettes/projects/single_param_find_by_hash.yml +26 -20
- data/spec/vcr_cassettes/termsofpayments/all.yml +34 -27
- data/spec/vcr_cassettes/termsofpayments/find_failure.yml +25 -19
- data/spec/vcr_cassettes/termsofpayments/find_id_1.yml +25 -19
- data/spec/vcr_cassettes/termsofpayments/find_new.yml +27 -21
- data/spec/vcr_cassettes/termsofpayments/save_new.yml +27 -21
- data/spec/vcr_cassettes/termsofpayments/save_old.yml +27 -21
- data/spec/vcr_cassettes/units/all.yml +36 -28
- data/spec/vcr_cassettes/units/find_failure.yml +25 -19
- data/spec/vcr_cassettes/units/find_id_1.yml +26 -20
- data/spec/vcr_cassettes/units/find_new.yml +27 -21
- data/spec/vcr_cassettes/units/save_new.yml +27 -21
- data/spec/vcr_cassettes/units/save_old.yml +27 -21
- data/spec/vcr_cassettes/units/save_with_specially_named_attribute.yml +27 -21
- metadata +107 -47
- data/spec/support/helpers/dummy_class_helper.rb +0 -38
- data/spec/vcr_cassettes/invoices/save_new_with_country_KR.yml +0 -61
- data/spec/vcr_cassettes/orders/housework_without_tax_reduction_type.yml +0 -57
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.fortnox.se/3/invoices/
|
5
|
+
uri: https://api.fortnox.se/3/invoices/200
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"Invoice":{"Comments":""}}'
|
@@ -24,38 +24,44 @@ http_interactions:
|
|
24
24
|
code: 200
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
|
-
|
28
|
-
-
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:50 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '2203'
|
31
29
|
Content-Type:
|
32
30
|
- application/json
|
33
|
-
|
34
|
-
-
|
31
|
+
Date:
|
32
|
+
- Mon, 22 Jan 2024 14:54:35 GMT
|
35
33
|
Vary:
|
36
34
|
- Accept-Encoding
|
35
|
+
X-Build:
|
36
|
+
- 9dd4e26746
|
37
|
+
X-Frame-Options:
|
38
|
+
- sameorigin
|
37
39
|
X-Rack-Responsetime:
|
38
|
-
- '
|
40
|
+
- '110'
|
39
41
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
Strict-Transport-Security:
|
44
|
-
- max-age=31536000; includeSubdomains
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
42
|
+
- e13902e5
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: ASCII-8BIT
|
55
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
56
|
-
comment to be reset","ContractReference":0,"ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
57
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
58
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
59
|
-
|
60
|
-
|
61
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/200","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=200","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"A
|
63
|
+
comment to be reset","ContractReference":"0","ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
64
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"200","DueDate":"2024-01-22","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
65
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2024-01-22","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"20057","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
66
|
+
recorded_at: Mon, 22 Jan 2024 14:54:35 GMT
|
67
|
+
recorded_with: VCR 6.2.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.fortnox.se/3/invoices/
|
5
|
+
uri: https://api.fortnox.se/3/invoices/201
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"Invoice":{"Country":""}}'
|
@@ -24,37 +24,43 @@ http_interactions:
|
|
24
24
|
code: 200
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
|
-
|
28
|
-
-
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:50 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '2189'
|
31
29
|
Content-Type:
|
32
30
|
- application/json
|
33
|
-
|
34
|
-
-
|
31
|
+
Date:
|
32
|
+
- Mon, 22 Jan 2024 14:54:36 GMT
|
35
33
|
Vary:
|
36
34
|
- Accept-Encoding
|
35
|
+
X-Build:
|
36
|
+
- 9dd4e26746
|
37
|
+
X-Frame-Options:
|
38
|
+
- sameorigin
|
37
39
|
X-Rack-Responsetime:
|
38
|
-
- '
|
40
|
+
- '135'
|
39
41
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
Strict-Transport-Security:
|
44
|
-
- max-age=31536000; includeSubdomains
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
42
|
+
- 678cb598
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: ASCII-8BIT
|
55
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
56
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
57
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
58
|
-
|
59
|
-
|
60
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/201","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=201","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"","ContractReference":"0","ContributionPercent":0,"ContributionValue":0,"Country":"Sverige","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"201","DueDate":"2024-01-22","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
64
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2024-01-22","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"20156","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 14:54:35 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.fortnox.se/3/invoices/
|
5
|
+
uri: https://api.fortnox.se/3/invoices/200
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"Invoice":{"Comments":"A comment to be reset"}}'
|
@@ -24,38 +24,44 @@ http_interactions:
|
|
24
24
|
code: 200
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
|
-
|
28
|
-
-
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:50 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '2203'
|
31
29
|
Content-Type:
|
32
30
|
- application/json
|
33
|
-
|
34
|
-
-
|
31
|
+
Date:
|
32
|
+
- Mon, 22 Jan 2024 14:54:35 GMT
|
35
33
|
Vary:
|
36
34
|
- Accept-Encoding
|
35
|
+
X-Build:
|
36
|
+
- 9dd4e26746
|
37
|
+
X-Frame-Options:
|
38
|
+
- sameorigin
|
37
39
|
X-Rack-Responsetime:
|
38
|
-
- '
|
40
|
+
- '171'
|
39
41
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
Strict-Transport-Security:
|
44
|
-
- max-age=31536000; includeSubdomains
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
42
|
+
- c555c729
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: ASCII-8BIT
|
55
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
56
|
-
comment to be reset","ContractReference":0,"ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
57
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
58
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
59
|
-
|
60
|
-
|
61
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/200","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=200","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"A
|
63
|
+
comment to be reset","ContractReference":"0","ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
64
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"200","DueDate":"2024-01-22","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
65
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2024-01-22","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"20057","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
66
|
+
recorded_at: Mon, 22 Jan 2024 14:54:35 GMT
|
67
|
+
recorded_with: VCR 6.2.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://api.fortnox.se/3/invoices/
|
5
|
+
uri: https://api.fortnox.se/3/invoices/201
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"Invoice":{"Country":"Sverige"}}'
|
@@ -24,37 +24,43 @@ http_interactions:
|
|
24
24
|
code: 200
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
|
-
|
28
|
-
-
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:50 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '2189'
|
31
29
|
Content-Type:
|
32
30
|
- application/json
|
33
|
-
|
34
|
-
-
|
31
|
+
Date:
|
32
|
+
- Mon, 22 Jan 2024 14:54:35 GMT
|
35
33
|
Vary:
|
36
34
|
- Accept-Encoding
|
35
|
+
X-Build:
|
36
|
+
- 9dd4e26746
|
37
|
+
X-Frame-Options:
|
38
|
+
- sameorigin
|
37
39
|
X-Rack-Responsetime:
|
38
|
-
- '
|
40
|
+
- '119'
|
39
41
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
Strict-Transport-Security:
|
44
|
-
- max-age=31536000; includeSubdomains
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
42
|
+
- 0714ec30
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: ASCII-8BIT
|
55
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
56
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
57
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
58
|
-
|
59
|
-
|
60
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/201","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=201","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"","ContractReference":"0","ContributionPercent":0,"ContributionValue":0,"Country":"Sverige","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"201","DueDate":"2024-01-22","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
64
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2024-01-22","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"20156","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 14:54:35 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -24,37 +24,43 @@ http_interactions:
|
|
24
24
|
code: 201
|
25
25
|
message: Created
|
26
26
|
headers:
|
27
|
-
Server:
|
28
|
-
- nginx
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:45 GMT
|
31
27
|
Content-Type:
|
32
28
|
- application/json
|
33
|
-
|
34
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 15:15:45 GMT
|
35
31
|
Location:
|
36
32
|
- invoices
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
37
37
|
X-Rack-Responsetime:
|
38
|
-
- '
|
38
|
+
- '341'
|
39
39
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
40
|
+
- 140919a8
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: UTF-8
|
55
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
56
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
57
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
58
|
-
|
59
|
-
|
60
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/202","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=202","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"","ContractReference":"0","ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"202","DueDate":"2024-01-22","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
64
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2024-01-22","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[{"AccountNumber":1250,"ArticleNumber":"0000","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Testartikel","Discount":0,"DiscountType":"PERCENT","HouseWork":false,"HouseWorkHoursToReport":null,"HouseWorkType":null,"Price":10,"PriceExcludingVAT":10,"Project":"","RowId":619,"StockPointCode":null,"Total":0,"TotalExcludingVAT":0,"Unit":"","VAT":0}],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"20255","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 15:15:45 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -24,37 +24,43 @@ http_interactions:
|
|
24
24
|
code: 201
|
25
25
|
message: Created
|
26
26
|
headers:
|
27
|
-
Server:
|
28
|
-
- nginx
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:46 GMT
|
31
27
|
Content-Type:
|
32
28
|
- application/json
|
33
|
-
|
34
|
-
-
|
29
|
+
Date:
|
30
|
+
- Mon, 22 Jan 2024 14:52:52 GMT
|
35
31
|
Location:
|
36
32
|
- invoices
|
33
|
+
X-Build:
|
34
|
+
- 9dd4e26746
|
35
|
+
X-Frame-Options:
|
36
|
+
- sameorigin
|
37
37
|
X-Rack-Responsetime:
|
38
|
-
- '
|
38
|
+
- '123'
|
39
39
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
40
|
+
- d4fac12c
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: UTF-8
|
55
|
-
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/
|
56
|
-
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"
|
57
|
-
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"
|
58
|
-
|
59
|
-
|
60
|
-
recorded_with: VCR 4.0.0
|
62
|
+
string: '{"Invoice":{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/191","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=invoices&referencenumber=191","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","Balance":0,"BasisTaxReduction":0,"Booked":false,"Cancelled":false,"City":"","Comments":"","ContractReference":"0","ContributionPercent":0,"ContributionValue":0,"Country":"","CostCenter":"","Credit":"false","CreditInvoiceReference":"0","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Old
|
63
|
+
name","CustomerNumber":"1","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"191","DueDate":"2024-01-22","EDIInformation":{"EDIGlobalLocationNumber":null,"EDIGlobalLocationNumberDelivery":null,"EDIInvoiceExtra1":null,"EDIInvoiceExtra2":null,"EDIOurElectronicReference":null,"EDIYourElectronicReference":null,"EDIStatus":""},"EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Faktura
|
64
|
+
{no} bifogas","EmailBody":" "},"EUQuarterlyReport":false,"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceDate":"2024-01-22","InvoicePeriodStart":"","InvoicePeriodEnd":"","InvoiceReference":"0","InvoiceRows":[],"InvoiceType":"INVOICE","Labels":[],"Language":"SV","LastRemindDate":null,"Net":0,"NotCompleted":false,"NoxFinans":false,"OCR":"426523791","OfferReference":"0","OrderReference":"0","OrganisationNumber":"860101-8735","OurReference":"","PaymentWay":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"st","Project":"","WarehouseReady":true,"OutboundDate":"2024-01-22","Remarks":"","Reminders":0,"RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"0","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","YourOrderNumber":"","YourReference":"","ZipCode":"","AccountingMethod":"ACCRUAL","FinalPayDate":null,"TaxReductionType":"none"}}'
|
65
|
+
recorded_at: Mon, 22 Jan 2024 14:52:52 GMT
|
66
|
+
recorded_with: VCR 6.2.0
|
@@ -24,32 +24,39 @@ http_interactions:
|
|
24
24
|
code: 200
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
|
-
|
28
|
-
-
|
29
|
-
Date:
|
30
|
-
- Mon, 21 Dec 2020 20:41:47 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '4077'
|
31
29
|
Content-Type:
|
32
30
|
- application/json
|
33
|
-
|
34
|
-
-
|
31
|
+
Date:
|
32
|
+
- Mon, 22 Jan 2024 14:54:32 GMT
|
35
33
|
Vary:
|
36
34
|
- Accept-Encoding
|
35
|
+
X-Build:
|
36
|
+
- 9dd4e26746
|
37
|
+
X-Frame-Options:
|
38
|
+
- sameorigin
|
37
39
|
X-Rack-Responsetime:
|
38
|
-
- '
|
40
|
+
- '77'
|
39
41
|
X-Uid:
|
40
|
-
-
|
41
|
-
|
42
|
-
-
|
43
|
-
Strict-Transport-Security:
|
44
|
-
- max-age=31536000; includeSubdomains
|
45
|
-
X-Xss-Protection:
|
46
|
-
- 1; mode=block
|
42
|
+
- a1813228
|
43
|
+
Server:
|
44
|
+
- Fortnox
|
47
45
|
X-Content-Type-Options:
|
48
46
|
- nosniff
|
49
|
-
X-
|
50
|
-
-
|
47
|
+
X-Xss-Protection:
|
48
|
+
- '0'
|
51
49
|
Referrer-Policy:
|
52
50
|
- strict-origin-when-cross-origin
|
51
|
+
Content-Security-Policy:
|
52
|
+
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
|
53
|
+
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
|
54
|
+
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
|
55
|
+
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
|
56
|
+
fonts.gstatic.com fortnox.piwik.pro api.cling.se wss://api.cling.se ''unsafe-inline''
|
57
|
+
''unsafe-eval'' blob: data:'
|
58
|
+
Strict-Transport-Security:
|
59
|
+
- max-age=31536000; includeSubdomains
|
53
60
|
body:
|
54
61
|
encoding: ASCII-8BIT
|
55
62
|
string: '{"MetaInformation":{"@TotalResources":7,"@TotalPages":1,"@CurrentPage":1},"Invoices":[{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/1","Balance":0,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Test","CustomerNumber":"1","DocumentNumber":"1","DueDate":"2016-02-04","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2016-02-04","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"133","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"","Sent":true,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/15","Balance":0,"Booked":true,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Test
|
@@ -60,6 +67,5 @@ http_interactions:
|
|
60
67
|
customer","CustomerNumber":"3","DocumentNumber":"72","DueDate":"2017-08-25","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2017-08-25","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"7245","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"1","Sent":false,"Total":395,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/75","Balance":0,"Booked":false,"Cancelled":true,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Test
|
61
68
|
customer","CustomerNumber":"3","DocumentNumber":"75","DueDate":"2017-10-19","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2017-10-19","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"7542","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"5576","Sent":false,"Total":0,"FinalPayDate":null},{"@url":"https:\/\/api.fortnox.se\/3\/invoices\/76","Balance":50000,"Booked":false,"Cancelled":false,"CostCenter":"","Currency":"SEK","CurrencyRate":"1","CurrencyUnit":1,"CustomerName":"Test
|
62
69
|
customer","CustomerNumber":"3","DocumentNumber":"76","DueDate":"2017-10-19","ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","InvoiceDate":"2017-10-19","InvoiceType":"INVOICE","NoxFinans":false,"OCR":"7641","VoucherNumber":null,"VoucherSeries":null,"VoucherYear":null,"WayOfDelivery":"","TermsOfPayment":"0","Project":"5576","Sent":false,"Total":50000,"FinalPayDate":null}]}'
|
63
|
-
|
64
|
-
|
65
|
-
recorded_with: VCR 4.0.0
|
70
|
+
recorded_at: Mon, 22 Jan 2024 14:54:32 GMT
|
71
|
+
recorded_with: VCR 6.2.0
|