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

# Get a paid one-time payment

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

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

Returns one paid one-time payment by `one_time_payment_id`, in the same shape as GET /v1/one-time-payments. The response is a one-item page so your code can read both the same way.

**What happens:**

- Applies the same rules as the list: a payment that is not paid yet, or that failed, returns `404`.
- A one-time payment that paid a whole open payroll returns `404` with `data.payroll_id`. Read it from GET /v1/payroll-history/{id} with that id.

**Errors:**

- `400 Invalid one-time payment id` when the id is not a positive integer.
- `400 Cannot use query parameters when fetching a single one-time payment by id`.
- `404 One-time payment not found`.

**Related:**

- GET /v1/one-time-payments/{id}/line-items itemizes the payment.

## Path parameters

- `id` (integer, **required**): The payment's `one_time_payment_id`. Minimum: 1. Example: `14`.

## Example request

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

## Responses

### 200: The payment, as a one-item page

- `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)
  - `per_page` (integer)
  - `total` (integer)
  - `last_page` (integer)
  - `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)

### 400: Invalid id, or query parameters sent

```json
{
  "status": 400,
  "message": "Invalid one-time payment id",
  "data": {}
}
```

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

### 404: No paid one-time payment with this id

Example (not_found): Unknown, unpaid or failed payment

```json
{
  "status": 404,
  "message": "One-time payment not found",
  "data": {}
}
```

### 500: Internal server error

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