> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uplink.build/llms.txt
> Use this file to discover all available pages before exploring further.

# uplink:Paystub

> A single pay statement — gross, net, YTD totals, and per-line earnings + deductions.

**`uplink:Paystub/v1`** — a single pay statement. Emitted by payroll connectors after normalizing each provider's per-period pay data.

Monetary amounts are **human-formatted strings** (e.g. `"$1,240.50"`) — payroll data typically flows into UIs verbatim, and preserving the provider's currency + precision avoids reformatting drift. Consumers doing math should parse.

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `id` | string | ✓ | Stable identifier from the source system. |
| `payDate` | date | | The check / direct-deposit date this statement covers. Absent when the provider hasn't settled a pay date yet. |
| `periodStart` | date | | Start of the pay period. |
| `periodEnd` | date | | End of the pay period. |
| `grossAmount` | string | | Gross earnings for the period, formatted with currency. |
| `netAmount` | string | | Take-home pay after deductions + taxes. |
| `ytdGrossAmount` | string | | Year-to-date gross as of this statement. |
| `ytdNetAmount` | string | | Year-to-date net as of this statement. |
| `hours` | string | | Hours worked in this period (typically hourly employees). |
| `paymentMethod` | enum: `check` \| `deposit` | | How the employer disbursed the pay. |
| `earnings` | array\<object> | | Per-line earnings (regular, overtime, bonus, PTO, sick, holiday). See below. |
| `deductions` | array\<object> | | Per-line deductions grouped by `category`. See below. |
| `file` | [`uplink:FileReference`](https://docs.uplink.build/vocabulary/FileReference) | | The statement as the provider renders it, typically a PDF. |

### `earnings[]` items

| Field | Type | Required | Description |
| - | - | - | - |
| `label` | string | ✓ | Provider-supplied earning label (`Regular`, `Overtime`, `PTO`, `Sick`). |
| `amount` | string | ✓ | Amount for this line, formatted with currency. |
| `ytdAmount` | string | | Year-to-date total for this category. |
| `hours` | string | | Hours associated (hourly earnings). |
| `rate` | string | | Pay rate (e.g. `$24.50/hr`). |

### `deductions[]` items

| Field | Type | Required | Description |
| - | - | - | - |
| `category` | enum: `taxes` \| `benefits` \| `retirement` \| `other` | | Deduction group. `taxes` = federal/state/FICA. `benefits` = health/dental/vision. `retirement` = 401(k)/Roth/HSA. `other` = garnishments, uniform, misc. |
| `label` | string | ✓ | Provider-supplied deduction label (`Federal Income Tax`, `401(k) Pre-Tax`). |
| `amount` | string | ✓ | Deduction amount, formatted with currency. |
| `ytdAmount` | string | | Year-to-date deduction total. |

## Example

```json theme={null}
{
  "id": "gusto-paystub-84f1c3",
  "payDate": "2026-06-30",
  "periodStart": "2026-06-16",
  "periodEnd": "2026-06-30",
  "grossAmount": "$5,576.92",
  "netAmount": "$3,942.14",
  "ytdGrossAmount": "$66,923.04",
  "ytdNetAmount": "$47,305.68",
  "paymentMethod": "deposit",
  "earnings": [
    { "label": "Regular", "amount": "$5,576.92", "ytdAmount": "$66,923.04", "hours": "80.00", "rate": "$69.71/hr" }
  ],
  "deductions": [
    { "category": "taxes",      "label": "Federal Income Tax",    "amount": "$836.53", "ytdAmount": "$10,038.36" },
    { "category": "taxes",      "label": "Social Security",       "amount": "$345.77", "ytdAmount": "$4,149.24" },
    { "category": "taxes",      "label": "Medicare",              "amount": "$80.86",  "ytdAmount": "$970.32" },
    { "category": "benefits",   "label": "Medical - Blue Cross",  "amount": "$185.20", "ytdAmount": "$2,222.40" },
    { "category": "retirement", "label": "401(k) Pre-Tax",        "amount": "$186.42", "ytdAmount": "$2,237.04" }
  ]
}
```

## Emitted by

* `@atomic/gusto` — `paystubs` on `fetchAll`

## Related

* [`uplink:Employment`](https://docs.uplink.build/vocabulary/Employment) — the employment relationship these paystubs belong to


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.