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: 4a0a00473045022100b32672c96f7200acddaa42ae1293e4bb9f4f5c96db8357f6932c0252c956e85402204a48c96e2373b991811bf422e4b907faa8c3517b55c03a5ebfa2eb53b7860651:922c64590222798bb761d5b6d8e72950
