{
  "opencollection": "1.0.0",
  "info": {
    "name": "ZenHR Approvals Loans API",
    "version": "v3"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://api.zenhr.com/en/oauth/authorize",
      "accessTokenUrl": "https://api.zenhr.com/en/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Loans",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Loans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "employee_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List Loans"
        },
        {
          "info": {
            "name": "Create Loan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "employee_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create Loan"
        },
        {
          "info": {
            "name": "Get Loan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans/:loan_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "employee_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "loan_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Loan"
        },
        {
          "info": {
            "name": "Edit Loan",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans/:loan_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "employee_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "loan_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Edit Loan"
        },
        {
          "info": {
            "name": "Destroy Loan",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loans/:loan_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "employee_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "loan_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Destroy Loan"
        },
        {
          "info": {
            "name": "Create Loan Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/employees/:employee_id/loan_requests",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "employee_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create Loan Request"
        },
        {
          "info": {
            "name": "List Loans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/loans",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List Loans"
        },
        {
          "info": {
            "name": "Create Loan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/loans",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create Loan"
        },
        {
          "info": {
            "name": "Get Loan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/loans/:loan_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "loan_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Loan"
        },
        {
          "info": {
            "name": "Edit Loan",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/loans/:loan_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "loan_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Edit Loan"
        },
        {
          "info": {
            "name": "Destroy Loan",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/loans/:loan_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "loan_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Destroy Loan"
        },
        {
          "info": {
            "name": "Get Loan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/loan/:global_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "global_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Loan"
        },
        {
          "info": {
            "name": "Edit Loan",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://app.zenhr.com/api/v3/branches/:branch_id/integration_maps/loan/:global_id",
            "params": [
              {
                "name": "branch_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "global_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Edit Loan"
        }
      ]
    }
  ],
  "bundled": true
}