Sha256: f026f8c0054014c921d4d3d86276f6511f9fae7fd933df2ca088d51ba71da74e

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.fortnox.se/3/orders/
    body:
      encoding: UTF-8
      string: '{"Order":{"CustomerNumber":"1","TaxReductionType":"rot","OrderRows":[{"ArticleNumber":"0000","HouseWork":true,"HouseWorkType":"OTHERCOSTS","OrderedQuantity":1.0}]}}'
    headers:
      Content-Type:
      - application/json
      Accept:
      - application/json
      Client-Secret:
      - 9aBA8ZgsvR
      Access-Token:
      - ccaef817-d5d8-4b1c-a316-54f3e55c5c54
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 400
      message: Bad Request
    headers:
      Server:
      - nginx
      Date:
      - Tue, 22 Dec 2020 09:32:36 GMT
      Content-Type:
      - application/json
      Connection:
      - close
      X-Rack-Responsetime:
      - '797'
      X-Uid:
      - 2f2310b7
      X-Build:
      - d59e2acefa
      Strict-Transport-Security:
      - max-age=31536000; includeSubdomains
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - sameorigin
      Referrer-Policy:
      - strict-origin-when-cross-origin
    body:
      encoding: UTF-8
      string: '{"ErrorInformation":{"error":1,"message":"Kan inte s\u00e4tta typen
        \u00f6vrig kostnad p\u00e5 en rad markerad som husarbete.","code":2002980}}'
    http_version: 
  recorded_at: Tue, 22 Dec 2020 09:32:36 GMT
recorded_with: VCR 4.0.0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fortnox-api-0.8.0 spec/vcr_cassettes/orders/housework_othercoses_invalid.yml