{
  "opencollection": "1.0.0",
  "info": {
    "name": "OnPay Company API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Company",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "GET /company",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get company information\n"
        },
        {
          "info": {
            "name": "GET /company/pay-schedules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/pay-schedules",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "list pay schedules for company\n"
        },
        {
          "info": {
            "name": "GET /company/deductions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/deductions",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all deductions for company\n"
        },
        {
          "info": {
            "name": "POST /company/deductions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onpaydev.com/v2/company/deductions",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "create a new deduction\n"
        },
        {
          "info": {
            "name": "PATCH /company/deductions/{deduction_id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/deductions/:deduction_id",
            "params": [
              {
                "name": "deduction_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Patch deduction\n"
        },
        {
          "info": {
            "name": "DELETE /company/deductions/{deduction_id}",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://onpaydev.com/v2/company/deductions/:deduction_id",
            "params": [
              {
                "name": "deduction_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete deduction by Id.\n"
        },
        {
          "info": {
            "name": "GET /company/deduction-groupings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/deduction-groupings",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "POST /company/deduction-groupings",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onpaydev.com/v2/company/deduction-groupings",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "PATCH /company/deduction-groupings/{id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/deduction-groupings/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/worksites",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/worksites",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "POST /company/worksites",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onpaydev.com/v2/company/worksites",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/worksites/{id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/worksites/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "PATCH /company/worksites/{id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/worksites/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/locations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/locations",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "POST /company/locations",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onpaydev.com/v2/company/locations",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/locations/{id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/locations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "PATCH /company/locations/{id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/locations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/departments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/departments",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all departments for company"
        },
        {
          "info": {
            "name": "POST /company/departments",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onpaydev.com/v2/company/departments",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/departments/{id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/departments/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get department by ID"
        },
        {
          "info": {
            "name": "PATCH /company/departments/{id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/departments/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/positions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/positions",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List all positions for company"
        },
        {
          "info": {
            "name": "POST /company/positions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://onpaydev.com/v2/company/positions",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Add a PositionItem to company"
        },
        {
          "info": {
            "name": "GET /company/positions/{id}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/positions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get Position by ID"
        },
        {
          "info": {
            "name": "PATCH /company/positions/{id}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/positions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/state-tax-fields/{fips}",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/state-tax-fields/:fips",
            "params": [
              {
                "name": "fips",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get state tax fields by fips code"
        },
        {
          "info": {
            "name": "PATCH /company/state-tax-fields/{fips}",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://onpaydev.com/v2/company/state-tax-fields/:fips",
            "params": [
              {
                "name": "fips",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/unprocessed-hours",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/unprocessed-hours",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get unproccessed hours"
        },
        {
          "info": {
            "name": "PUT /company/unprocessed-hours",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://onpaydev.com/v2/company/unprocessed-hours",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          }
        },
        {
          "info": {
            "name": "GET /company/pay-schedule-dates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://onpaydev.com/v2/company/pay-schedule-dates",
            "params": [
              {
                "name": "pay_schedule_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "number_of_periods",
                "value": "",
                "type": "query"
              },
              {
                "name": "first_date",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.onpay.com/app/oauth/authorize",
              "accessTokenUrl": "https://app.onpay.com/app/oauth/authorize",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get important dates for a pay schedule\n"
        }
      ]
    }
  ],
  "bundled": true
}