Sha256: 9d7cfa0b5bb6f4664a222276bb6188831449cc3328f738331853d0c8bc23187e

Contents?: true

Size: 1.87 KB

Versions: 4

Compression:

Stored size: 1.87 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://sandbox.boletosimples.com.br/api/v1/customers
    body:
      encoding: UTF-8
      string: '{"customer":{"person_name":""}}'
    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:
      - '972'
      Cache-Control:
      - no-cache
      X-Request-Id:
      - b9e6e5c7-8f5b-41ee-94fa-6ec5bc1c15e5
      X-Runtime:
      - '0.026849'
      Date:
      - Tue, 13 Apr 2021 17:19:11 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":{"person_name":["não pode ficar em branco"],"cnpj_cpf":["não
        pode ficar em branco"],"zipcode":["não pode ficar em branco"],"address":["não
        pode ficar em branco"],"neighborhood":["não pode ficar em branco"],"city_name":["não
        pode ficar em branco"],"state":["não está incluído na lista"]}}'
  recorded_at: Tue, 13 Apr 2021 17:19:11 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/create/invalid_params.yml
boletosimples-1.0.3 spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml
boletosimples-1.0.2 spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml
boletosimples-1.0.1 spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml