GET
/
employer
/
pay-statement-item
/
rule
import Finch from '@tryfinch/finch-api';

const client = new Finch({
  accessToken: 'My Access Token',
});

async function main() {
  // Automatically fetches more pages as needed.
  for await (const ruleListResponse of client.hris.company.payStatementItem.rules.list()) {
    console.log(ruleListResponse.id);
  }
}

main();
{
  "responses": [
    {
      "id": "<string>",
      "priority": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "effective_start_date": "<string>",
      "effective_end_date": "<string>",
      "conditions": [
        {
          "field": "<string>",
          "operator": "equals",
          "value": "<string>"
        }
      ],
      "attributes": {
        "metadata": {}
      },
      "entity_type": "pay_statement_item"
    }
  ]
}

Authorizations

Authorization
string
header
required

Please use your Access Token

Headers

Finch-API-Version
string
default:2020-09-17
required

Header used to specify the version for a given API request. Current version is 2020-09-17.

Response

200 - application/json
OK
responses
object[]
required