{
  "opencollection": "1.0.0",
  "info": {
    "name": "Weave Contacts Payments API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.weaveconnect.com/oauth2/default/v1/authorize",
      "accessTokenUrl": "https://auth.weaveconnect.com/oauth2/default/v1/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Payments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List payment methods",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.weaveconnect.com/v1/payment-methods",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              }
            ]
          },
          "docs": "Lists stored payment methods (cards on file) for a location's patients."
        },
        {
          "info": {
            "name": "List finance-account payment methods",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.weaveconnect.com/v1/finance/account/payment_methods",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query",
                "description": "The Weave location (sub-account) the request is scoped to. Required on most endpoints; may alternatively be supplied via a location header."
              }
            ]
          },
          "docs": "Lists the payment methods attached to the location's Weave Payments finance account."
        }
      ]
    }
  ],
  "bundled": true
}