Sha256: 20656e26490ec75d7f5db42eea137682d81dcb13c4c5a10cf5d925167d2c35a5

Contents?: true

Size: 2 KB

Versions: 4

Compression:

Stored size: 2 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://sandbox.boletosimples.com.br/api/v1/customer_subscriptions
    body:
      encoding: UTF-8
      string: '{"customer_subscription":{"customer_id":""}}'
    headers:
      User-Agent:
      - email@minhaempresa.com.br
      Authorization:
      - Bearer BOLETOSIMPLES_API_TOKEN
      Content-Type:
      - application/json
      Accept:
      - application/json
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
  response:
    status:
      code: 422
      message: Unprocessable Entity
    headers:
      Server:
      - Cowboy
      Connection:
      - keep-alive
      X-Frame-Options:
      - DENY
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Download-Options:
      - noopen
      X-Permitted-Cross-Domain-Policies:
      - none
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Content-Type:
      - application/json; charset=utf-8
      X-Ratelimit-Limit:
      - '1000'
      X-Ratelimit-Remaining:
      - '975'
      Cache-Control:
      - no-cache
      X-Request-Id:
      - e14820e1-3bc0-4c50-a6f0-78f6805d8235
      X-Runtime:
      - '0.077670'
      Date:
      - Tue, 13 Apr 2021 17:19:00 GMT
      X-Rack-Cache:
      - invalidate, pass
      Strict-Transport-Security:
      - max-age=2629746
      Vary:
      - Origin,Accept-Encoding
      Transfer-Encoding:
      - chunked
      Via:
      - 1.1 vegur
    body:
      encoding: UTF-8
      string: '{"errors":{"customer_person_name":["não pode ficar em branco"],"customer_cnpj_cpf":["não
        pode ficar em branco"],"customer_zipcode":["não pode ficar em branco"],"amount":["não
        pode ficar em branco"],"customer_address":["não pode ficar em branco"],"customer_neighborhood":["não
        pode ficar em branco"],"customer_city_name":["não pode ficar em branco"],"customer_state":["não
        está incluído na lista"]}}'
  recorded_at: Tue, 13 Apr 2021 17:19:00 GMT
recorded_with: VCR 6.0.0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
boletosimples-1.0.4 spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml
boletosimples-1.0.3 spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml
boletosimples-1.0.2 spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml
boletosimples-1.0.1 spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml