id: api-loqate

info:
  name: Loqate API Test
  author: zzeitlin
  severity: info
  reference:
    - https://www.loqate.com/resources/support/apis/Capture/Interactive/Find/1.1/
  metadata:
    max-request: 1
  tags: token-spray,loqate

self-contained: true

http:
  - method: GET
    path:
      - "https://api.addressy.com/Capture/Interactive/Find/v1.00/json3.ws?Key={{token}}&Countries=US,CA&Language=en&Limit=5&Text=BHAR"

    matchers:
      - type: word
        part: body
        words:
          - '"Id":'
          - '"Type":'
          - '"Text":'
        condition: and
# digest: 4b0a004830460221009ce0c2c72074cc658bb96c67a07d6b0b9cd2ba2969b469de2025c467664b2610022100fe69145874182075cac16728f48503da4ff4500d1025afa032a44cfbc90bc5b5:922c64590222798bb761d5b6d8e72950