<!-- Generated by scripts/build-docs.js. Edit docs/swagger.yaml or docs/guides/, then run `npm run docs:build`. -->

# List pay frequencies

`GET https://marketplace-api.sequifi.com/v1/pay-frequency`

Module: Pay Frequency · operationId: `listPayFrequencies` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequifi.com/#/api/list-pay-frequencies

Lists the pay frequencies your company has turned on, so you can map a pay frequency id to its name. Ids are fixed: `2` Weekly, `3` Bi-Weekly, `4` Semi-Monthly, `5` Monthly, `6` Daily (on demand). There is no id `1`.

**Filtering and paging:**

- Only active frequencies are returned, sorted by `id`.
- `page` defaults to 1. `per_page` defaults to 20 and is kept between 1 and 200: out-of-range values are adjusted, not rejected.
- Unknown query parameters are ignored.

**Formats:**

- `status` is always `"Active"`.
- `name` is the display name, for example `Bi-Weekly` or `Daily (on demand)`.

**Related:**

- GET /v1/payroll filters by pay frequency id.
- GET /v1/pay-frequency/{id} reads one frequency.

## Query parameters

- `page` (integer): Page number. A value below 1 or not a number is treated as 1. Default: `1`. Minimum: 1. Example: `1`.
- `per_page` (integer): Rows per page. Values above 200 are treated as 200. Default: `20`. Minimum: 1. Maximum: 200. Example: `20`.

## Example request

```bash
curl -X GET "https://marketplace-api.sequifi.com/v1/pay-frequency" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: Active pay frequencies

- `status` (integer): The HTTP status code, repeated. Example: `200`.
- `message` (string): Short text. Wording varies by endpoint; branch on the HTTP status, not on this text. Example: `success`.
- `data` (object)
  - `requested_by` (string): Label of the API credential that made the call.
  - `current_page` (integer): Page returned.
  - `per_page` (integer): Rows per page after adjustment.
  - `total` (integer): Active frequencies across all pages.
  - `last_page` (integer): Last page number. At least `1`.
  - `filters` (object, nullable): Always null.
  - `frequency_type` (array of object): The pay frequencies on this page.
    - `id` (integer): Pay frequency id. `2` Weekly, `3` Bi-Weekly, `4` Semi-Monthly, `5` Monthly, `6` Daily (on demand).
    - `name` (string): Display name.
    - `status` (string): Always `Active`.

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requested_by": "acme",
    "current_page": 1,
    "per_page": 20,
    "total": 5,
    "last_page": 1,
    "filters": null,
    "frequency_type": [
      {
        "id": 2,
        "name": "Weekly",
        "status": "Active"
      },
      {
        "id": 3,
        "name": "Bi-Weekly",
        "status": "Active"
      },
      {
        "id": 4,
        "name": "Semi-Monthly",
        "status": "Active"
      },
      {
        "id": 5,
        "name": "Monthly",
        "status": "Active"
      },
      {
        "id": 6,
        "name": "Daily (on demand)",
        "status": "Active"
      }
    ]
  }
}
```

### 401: Missing, invalid or expired token. The gateway rejects the call before it reaches Sequifi, so the body has only a `message`.

```json
{
  "message": "Unauthorized"
}
```

### 500: Internal server error

```json
{
  "status": 500,
  "message": "Internal Server Error",
  "data": {}
}
```
