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

# Get a payroll

> Retrieve the details of an existing payroll.

### Parameters

<ParamField type="string" path="id" initialValue="pr_abc123def456" required>
  The ID of a payroll object.
</ParamField>

<ParamField query="expand" type="string[]">
  Specifies which fields in the response should be expanded.
</ParamField>

### Returns

Returns a payroll if a valid identifier was provided, and returns an error otherwise.

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "pr_abc123def456",
    "type": "contractor",
    "status": "processed",
    "note": "January contractor payments",
    "period": {
      "starts": "2024-01-01",
      "ends": "2024-01-15"
    },
    "totals": {
      "amount": "25000.00",
      "currency": "USD"
    },
    "items": [
      {
        "worker": "wr_xyz789",
        "amount": "5000.00",
        "currency": "USD"
      },
      {
        "worker": "wr_abc123",
        "amount": "7500.00",
        "currency": "USD"
      },
      {
        "worker": "wr_def456",
        "amount": "12500.00",
        "currency": "USD"
      }
    ]
  }
  ```
</ResponseExample>
