{
  "opencollection": "1.0.0",
  "info": {
    "name": "Paychex Payroll Companies API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.paychex.com/auth/oauth/v2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Companies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Companies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.paychex.com/companies",
            "params": [
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Zero-based offset used for pagination."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return per page (default 25, max 100)."
              }
            ]
          },
          "docs": "Return the collection of companies that the registered application has been granted access to. Used as the discovery endpoint for downstream Workers and Time calls."
        },
        {
          "info": {
            "name": "Get Company by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.paychex.com/companies/:companyId",
            "params": [
              {
                "name": "companyId",
                "value": "",
                "type": "path",
                "description": "Paychex Flex company identifier."
              }
            ]
          },
          "docs": "Retrieve a single Paychex Flex company by its identifier."
        }
      ]
    }
  ],
  "bundled": true
}