id: api-abstract-vat-validation-rates

info:
  name: Abstract Api VAT Validation Rates Test
  author: daffainfo
  severity: info
  description: Stay compliant with our simple, reliable, and powerful API for all your domestic and cross-border sales.
  reference:
    - https://www.abstractapi.com/api/vat-validation-rates-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-vat-validation-rates
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - method: GET
    path:
      - "https://vat.abstractapi.com/v1/?api_key={{token}}&vat_number=SE556656688001"

    matchers:
      - type: word
        part: body
        words:
          - '"vat_number":'
          - '"is_vat_valid":'
          - '"company_name":'
        condition: and
# digest: 4a0a00473045022100ce8768b7d92e81f5f3a49075c5cd3387753914e79fa806d8444ea2145499029002204d13432b0af9fede8bd8459084ccf8adaeb3d3c60e0ab935a351ffab0b4a9d48:922c64590222798bb761d5b6d8e72950