{
  "opencollection": "1.0.0",
  "info": {
    "name": "Puzzle Api Accounts Payroll API",
    "version": "0"
  },
  "items": [
    {
      "info": {
        "name": "Payroll",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Workers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/workers",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "subset",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieves a list of all of the company's workers, both employees and contractors.\n\nRequired scope: read:worker"
        },
        {
          "info": {
            "name": "Create Contractor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/contractors",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a contractor for the given company.\n\nRequires scope: write:worker"
        },
        {
          "info": {
            "name": "Create Employee",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/employees",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an employee for the given company.\n\nRequired scope: write:worker"
        },
        {
          "info": {
            "name": "Get Benefits",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/benefits",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ]
          },
          "docs": "Retrieves a list of all benefits for the given company. These benefits represent company-level benefits that can have both an employee contribution and a company contribution.\n\nPayrolls will reference these benefits and provide details on the employee and company contribution amounts.\n\nRequires scope: read:company"
        },
        {
          "info": {
            "name": "Create Benefit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/benefits",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a benefit for the given company.\n\nRequires scope: write:benefit"
        },
        {
          "info": {
            "name": "Create Payroll",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/payrolls",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a single payroll.\n\nPayrolls can only be added to accounts with the Payroll type.\nAll the amounts on the top-level payroll object are the totals for all the associated compensations\nPayrolls must have at least one employeeCompensation OR contractorCompensation\nThe transactionAmounts field should contain a list of all the amounts for all the non-reimbursement transactions that were used to fund this payroll.\nIf no transactionAmounts are provided, the companyDebit amount will be used instead"
        },
        {
          "info": {
            "name": "Get Payroll",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/payrolls/:payrollId",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "payrollId",
                "value": "",
                "type": "path",
                "description": "The payroll ID"
              }
            ]
          },
          "docs": "Get a single payroll by ID\n\nRequired scope: read:company"
        }
      ]
    }
  ],
  "bundled": true
}