id: api-square

info:
  name: Square API Test
  author: zzeitlin
  severity: info
  description: Easy way to take payments, manage refunds, and help customers checkout online
  reference:
    - https://developer.squareup.com/explorer/square/locations-api/list-locations
    - https://github.com/daffainfo/all-about-apikey/tree/main/square
  metadata:
    max-request: 2
  tags: token-spray,square

self-contained: true

http:
  - method: GET
    path:
      - "https://connect.squareup.com/v2/locations"
      - "https://connect.squareupsandbox.com/v2/locations"

    headers:
      Content-Type: application/json
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - 'errors'
        negative: true
# digest: 4a0a00473045022100de154d1678cc309435a62d999a1fc585371d2a8d76e5421c5975ab096bbea3ad0220664754e6ee1c7db29527060cdfbec79345ce2aaabae28a9fb9de8ba0abe851d6:922c64590222798bb761d5b6d8e72950