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

# List paid one-time payments

`GET https://marketplace-api.sequifi.com/v1/one-time-payments`

Module: Payroll · operationId: `listOneTimePayments` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequifi.com/#/api/list-one-time-payments

Lists paid one-time payments, each with the same totals as its pay stub, so an accounting sync can post them the same way it posts GET /v1/payroll-history. One-time payments are not listed in GET /v1/payroll-history, so a sync that posts all pay reads both endpoints.

**What happens:**

- A payment appears here once it is paid. For some payroll providers it is listed as soon as it is sent, with `settlement_status: "pending"` until the provider confirms it. A failed payment is left out.
- A one-time payment that paid a whole open payroll from the Payroll screen is listed in GET /v1/payroll-history instead, with `is_onetime_payment: 1`. No payment is in both lists, so posting both lists never posts a payment twice.
- Figures match the pay stub the worker sees. `gross_pay` is the sum of `commission`, `override`, `reconciliation`, `custom_payment`, `hourly_salary`, `overtime`, `adjustment`, `reimbursement` and `deduction`.
- `net_pay` is your payroll provider's own figure when it sent one (`net_pay_source: "provider"`). Otherwise it is `amount` minus taxes (`"computed"`). A provider figure can differ from `gross_pay` minus `employee_tax`.

**Filtering and paging:**

- `quickbooks_synced=false` returns payments with no journal entry id and an amount above zero, oldest first. `quickbooks_synced=true` returns payments that have one.
- `worker_type` is an exact match (`1099` or `w2`).
- There is no date or user filter.
- `page` defaults to 1. `per_page` defaults to 10; values above 200 are treated as 200.
- Sorted by `one_time_payment_id`, newest first, except `quickbooks_synced=false`, which sorts oldest first. `last_page` is at least `1`.
- Saving journal ids while you page through `quickbooks_synced=false` shifts the pages. Start again from page 1 after each PATCH /v1/one-time-payments.

**Idempotency and retries:**

- Key your sync on `one_time_payment_id`. It is its own number series: one-time payment 14 and payroll 14 are different records.
- Before creating a journal entry, check that `quickbooks_journal_entry_id` is null and that you have not already posted that `one_time_payment_id`.

**Formats:**

- `pay_period_from`, `pay_period_to` and `pay_date` are dates (`YYYY-MM-DD`).
- Money fields are JSON numbers rounded to cents. Taxes and benefits are positive amounts. `deduction` is signed: negative lowers pay, as on payroll history.
- `from_payroll` is `true` when the payment paid lines from an open payroll, and `false` for a standalone payment such as an approved bonus or reimbursement. A standalone payment's own amount is counted in `adjustment`, or in `reimbursement` for a reimbursement.
- `request_number` is the request number shown in the app, such as `R000014`, or null.

**Errors:**

- `400 Invalid query parameter(s)` for an unknown query key.
- `400 quickbooks_synced must be 'true' or 'false'`.

**Related:**

- PATCH /v1/one-time-payments saves journal entry ids.
- GET /v1/one-time-payments/{id} and its line items read one payment.
- GET /v1/payroll-history lists paid pay runs.

## Query parameters

- `quickbooks_synced` (string): `false` returns payments with no journal entry id and an amount above zero, oldest first. `true` returns payments that have one. Omit for all. One of: `false`, `true`. Example: `false`.
- `worker_type` (string): Exact match on worker type: `1099` or `w2`. Other values return no rows. Example: `w2`.
- `page` (integer): Page number. Default: `1`. Minimum: 1. Example: `1`.
- `per_page` (integer): Rows per page. Values above 200 are treated as 200. Default: `10`. Minimum: 1. Maximum: 200. Example: `10`.

## Example request

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

## Responses

### 200: A page of paid one-time payments

- `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)
  - `requestedBy` (string): Label of the API credential that made the call.
  - `current_page` (integer): Page returned.
  - `per_page` (integer): Rows per page after the 200 cap.
  - `total` (integer): Rows across all pages.
  - `last_page` (integer): Last page number. At least `1`.
  - `filters` (object, nullable): The filters applied, or null when none were sent.
  - `one_time_payments` (array of object)
    - `one_time_payment_id` (integer): The payment's id. Its own number series, separate from `payroll_id`. Use it to save a journal entry id.
    - `is_onetime_payment` (integer): Always `1`, as on a payroll history record that came from a one-time payment. One of: `1`.
    - `user_id` (integer, nullable)
    - `first_name` (string, nullable)
    - `last_name` (string, nullable)
    - `employee_id` (string, nullable)
    - `worker_type` (string, nullable): `1099` or `w2`, as the payment was made.
    - `pay_frequency` (integer, nullable): 1 Weekly, 2 Monthly, 3 Biweekly, 4 Semimonthly, 5 Daily.
    - `pay_period_from` (string (date), nullable)
    - `pay_period_to` (string (date), nullable)
    - `pay_date` (string (date), nullable)
    - `request_number` (string, nullable): The request number shown in the app, such as `R000014`.
    - `description` (string, nullable)
    - `adjustment_type_id` (integer, nullable)
    - `adjustment_type` (string, nullable): Name of the request type, such as `Bonus` or `Reimbursement`.
    - `from_payroll` (boolean): `true` when the payment paid lines from an open payroll; `false` for a standalone payment.
    - `commission` (number): Commissions, less commission clawbacks.
    - `override` (number): Overrides, less override clawbacks.
    - `reconciliation` (number)
    - `custom_payment` (number): Custom payroll field amounts.
    - `hourly_salary` (number)
    - `overtime` (number)
    - `adjustment` (number): Adjustments, less fines. Includes a standalone payment's own amount unless it is a reimbursement.
    - `reimbursement` (number)
    - `deduction` (number): Deductions and accruals, signed. Negative lowers pay.
    - `gross_pay` (number): Sum of the nine earnings, adjustment, reimbursement and deduction fields above.
    - `employee_tax` (number): Employee taxes withheld.
    - `state_income_tax` (number)
    - `federal_income_tax` (number)
    - `employer_tax` (number): Employer taxes.
    - `employee_benefit_deduction` (number)
    - `employer_benefit_deduction` (number)
    - `net_pay` (number): Take-home pay. See `net_pay_source`.
    - `net_pay_source` (string): `provider` when the figure came from your payroll provider; `computed` when it is `amount` minus taxes. One of: `provider`, `computed`.
    - `amount` (number): The payment amount as entered.
    - `settlement_status` (string): `pending` while your payroll provider has not confirmed the payment. One of: `paid`, `pending`.
    - `is_deposit_returned` (boolean): `true` when the bank returned the deposit after payment.
    - `quickbooks_journal_entry_id` (string, nullable): Journal entry id saved with PATCH /v1/one-time-payments, or null.
    - `created_at` (string (date-time), nullable)
    - `updated_at` (string (date-time), nullable)

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "current_page": 1,
    "per_page": 10,
    "total": 1,
    "last_page": 1,
    "filters": {
      "quickbooks_synced": "false"
    },
    "one_time_payments": [
      {
        "one_time_payment_id": 14,
        "is_onetime_payment": 1,
        "user_id": 501,
        "first_name": "Jordan",
        "last_name": "Lee",
        "employee_id": "AC-0042",
        "worker_type": "w2",
        "pay_frequency": 1,
        "pay_period_from": "2026-10-26",
        "pay_period_to": "2026-11-01",
        "pay_date": "2026-10-30",
        "request_number": "R000014",
        "description": "Signing bonus",
        "adjustment_type_id": 1,
        "adjustment_type": "Bonus",
        "from_payroll": false,
        "commission": 0,
        "override": 0,
        "reconciliation": 0,
        "custom_payment": 0,
        "hourly_salary": 0,
        "overtime": 0,
        "adjustment": 1000,
        "reimbursement": 0,
        "deduction": 0,
        "gross_pay": 1000,
        "employee_tax": 218.8,
        "state_income_tax": 0,
        "federal_income_tax": 0,
        "employer_tax": 76.5,
        "employee_benefit_deduction": 0,
        "employer_benefit_deduction": 0,
        "net_pay": 781.2,
        "net_pay_source": "provider",
        "amount": 1000,
        "settlement_status": "paid",
        "is_deposit_returned": false,
        "quickbooks_journal_entry_id": null,
        "created_at": "2026-10-30T15:00:00.000Z",
        "updated_at": "2026-10-30T15:05:00.000Z"
      }
    ]
  }
}
```

### 400: Unknown query parameter or bad filter value

Example (invalid_params): Unknown query parameter

```json
{
  "status": 400,
  "message": "Invalid query parameter(s)",
  "data": {
    "invalid_params": [
      "is_mark_paid"
    ],
    "allowed_params": [
      "quickbooks_synced",
      "worker_type",
      "page",
      "per_page"
    ]
  }
}
```

### 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": {}
}
```
