{
  "opencollection": "1.0.0",
  "info": {
    "name": "Autopay Accounting Permit API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api-auth.autopay.io/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Permit",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve available permit allocations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.autopay.io/permit/v3/tenant_permit_allocations",
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-auth.autopay.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve available permit allocations"
        },
        {
          "info": {
            "name": "List tenant-issued permits",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.autopay.io/permit/v3/tenant_issued_permits",
            "params": [
              {
                "name": "permit_allocation_id",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-auth.autopay.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List tenant-issued permits"
        },
        {
          "info": {
            "name": "Create a new permit for an end user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.autopay.io/permit/v3/end_user_permit",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-auth.autopay.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new permit for an end user"
        },
        {
          "info": {
            "name": "Modify validity dates on an existing permit",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.autopay.io/permit/v3/end_user_permit/:permit_id",
            "params": [
              {
                "name": "permit_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-auth.autopay.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Modify validity dates on an existing permit"
        },
        {
          "info": {
            "name": "Revoke a permit",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.autopay.io/permit/v3/end_user_permit/:permit_id",
            "params": [
              {
                "name": "permit_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api-auth.autopay.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Revoke a permit"
        }
      ]
    }
  ],
  "bundled": true
}