spec/vcr_cassettes/orders/housework_type_construction.yml
---
http_interactions:
- request:
method: post
uri: https://api.fortnox.se/3/orders/
body:
encoding: UTF-8
string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rot","OrderRows":[{"ArticleNumber":"101","HouseWork":true,"HouseWorkType":"CONSTRUCTION","OrderedQuantity":1.0}]}}'
headers:
Content-Type:
- application/json
Accept:
- application/json
Authorization:
- "<AUTHORIZATION>"
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
User-Agent:
- Ruby
response:
status:
code: 201
message: Created
headers:
Content-Type:
- application/json
Date:
- Mon, 30 Jan 2023 10:34:04 GMT
Location:
- orders
X-Build:
- 16d854443d
X-Frame-Options:
- sameorigin
X-Rack-Responsetime:
- '350'
X-Uid:
- 9a4863c4
Transfer-Encoding:
- chunked
Server:
- Fortnox
X-Content-Type-Options:
- nosniff
X-Xss-Protection:
- '0'
Referrer-Policy:
- strict-origin-when-cross-origin
Content-Security-Policy:
- 'upgrade-insecure-requests;frame-ancestors https://*.fortnox.se;report-uri
/api/cspreport;connect-src ''self'' https://a.storyblok.com wss://*.fortnox.se
*.fortnox.se *.findity.com mybusiness.pwc.se themes.googleusercontent.com
s3.amazonaws.com/helpjuice-static/ *.helpjuice.com *.vimeo.com fonts.googleapis.com
fonts.gstatic.com api.cling.se wss://api.cling.se ''unsafe-inline'' ''unsafe-eval''
blob: data:'
Strict-Transport-Security:
- max-age=31536000; includeSubdomains
body:
encoding: UTF-8
string: '{"Order":{"@url":"https:\/\/api.fortnox.se\/3\/orders\/24","@urlTaxReductionList":"https:\/\/api.fortnox.se\/3\/taxreductions?filter=orders&referencenumber=24","AdministrationFee":0,"AdministrationFeeVAT":0,"Address1":"","Address2":"","BasisTaxReduction":0,"Cancelled":false,"City":"New
York","Comments":"","ContributionPercent":0,"ContributionValue":0,"CopyRemarks":false,"Country":"","CostCenter":"","Currency":"SEK","CurrencyRate":1,"CurrencyUnit":1,"CustomerName":"Updated
name","CustomerNumber":"1","DeliveryState":"delivery","DeliveryAddress1":"","DeliveryAddress2":"","DeliveryCity":"","DeliveryCountry":"","DeliveryDate":null,"DeliveryName":"","DeliveryZipCode":"","DocumentNumber":"24","EmailInformation":{"EmailAddressFrom":null,"EmailAddressTo":"","EmailAddressCC":null,"EmailAddressBCC":null,"EmailSubject":"Order
{no} bifogas","EmailBody":" "},"ExternalInvoiceReference1":"","ExternalInvoiceReference2":"","Freight":0,"FreightVAT":0,"Gross":0,"HouseWork":false,"InvoiceReference":"0","Labels":[],"Language":"SV","Net":0,"NotCompleted":false,"OfferReference":"0","OrderDate":"2023-01-30","OrderRows":[{"AccountNumber":3001,"ArticleNumber":"101","ContributionPercent":"0","ContributionValue":"0","Cost":0,"CostCenter":"","DeliveredQuantity":"0","Description":"Hammer","Discount":0,"DiscountType":"PERCENT","HouseWork":true,"HouseWorkHoursToReport":null,"HouseWorkType":"CONSTRUCTION","OrderedQuantity":"1","Price":0,"Project":"","ReservedQuantity":"0","RowId":22,"StockPointCode":null,"StockPointId":null,"Total":0,"Unit":"","VAT":0}],"OrderType":"Order","OrganisationNumber":"","OurReference":"","Phone1":"","Phone2":"","PriceList":"A","PrintTemplate":"oc","Project":"","WarehouseReady":true,"OutboundDate":"2023-01-30","Remarks":"","RoundOff":0,"Sent":false,"TaxReduction":null,"TermsOfDelivery":"","TermsOfPayment":"30","TimeBasisReference":null,"Total":0,"TotalToPay":0,"TotalVAT":0,"VATIncluded":false,"WayOfDelivery":"","YourReference":"","YourOrderNumber":"","ZipCode":"10001","StockPointCode":null,"StockPointId":null,"TaxReductionType":"rot"}}'
recorded_at: Mon, 30 Jan 2023 10:34:04 GMT
recorded_with: VCR 6.1.0