id: api-charity

info:
  name: Charity Search API Test
  author: daffainfo
  severity: info
  description: Non-profit charity data
  reference:
    - http://charityapi.orghunter.com/
    - https://github.com/daffainfo/all-about-apikey/tree/main/charity-search
  metadata:
    max-request: 1
  tags: token-spray,charity,search

self-contained: true

http:
  - method: GET
    path:
      - "http://data.orghunter.com/v1/charitybasic?user_key={{token}}&ein=590774235"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"ein":'
          - '"name":'
          - '"inCareOfName"'
        condition: and
# digest: 490a0046304402206054acb8ad7e65e7fa0647056cfc76ab511197864ca339e9aa5ecd5a794e5174022039ade51ecdbe9d1f16ee46d909e3c08c1f3ef6fbfe128384a95955466725852b:922c64590222798bb761d5b6d8e72950