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

# Get Payout Batch Detail

> Get detailed breakdown of a specific payout batch

<Note>
  **V2 Preview** — This endpoint is part of the V2 API preview. Breaking changes may occur.
</Note>

## Overview

Return the detailed breakdown of a specific payout batch, including individual line items, amounts, and status information. Each payout transaction can contain one or more batches.

### Use Cases

* **Payout detail page** — Show the full breakdown when a vendor clicks into a specific payout
* **Line item audit** — Review exactly which orders and amounts are included in a batch
* **Dispute investigation** — Verify payout calculations for a specific batch

## Headers

<ParamField header="x-access-token" type="string" required>
  A valid vendor JWT. Requires `payouts:read` scope.
</ParamField>

## Path Parameters

<ParamField path="batchId" type="string" required>
  The `_id` of the payout batch.
</ParamField>

## Query Parameters

<ParamField query="vendorId" type="string">
  Filter by vendor ID (24-character hex string). Defaults to the authenticated vendor.
</ParamField>

## Response

```json 200 theme={null}
{
  "success": true,
  "data": {
    "_id": "507f1f77bcf86cd799439055",
    "status": "paid",
    "processedAt": "2026-05-01T12:00:00Z",
    "amount": 5000.00,
    "currency": "USD",
    "transactionId": "txn_1PqR2sT3uV4wX5yZ",
    "paymentMethod": "stripe",
    "itemCount": 12,
    "lineItems": [
      {
        "orderId": "664a1b2c3d4e5f6a7b8c9d30",
        "orderName": "#1042",
        "productTitle": "Classic T-Shirt",
        "variantTitle": "Red / Medium",
        "sku": "TSH-RED-M",
        "quantity": 2,
        "sales": 49.98,
        "commission": 7.50,
        "payout": 42.48,
        "fulfilledAt": "2026-04-28T15:00:00Z"
      },
      {
        "orderId": "664a1b2c3d4e5f6a7b8c9d31",
        "orderName": "#1043",
        "productTitle": "Premium Hoodie",
        "variantTitle": "Navy / Large",
        "sku": "HOD-NAV-L",
        "quantity": 1,
        "sales": 89.99,
        "commission": 13.50,
        "payout": 76.49,
        "fulfilledAt": "2026-04-29T10:30:00Z"
      }
    ],
    "createdAt": "2026-04-30T18:00:00Z"
  }
}
```

### Error Responses

```json 401 theme={null}
{ "success": false, "error": { "message": "Invalid or expired token" } }
```

```json 404 theme={null}
{ "success": false, "error": { "message": "Batch not found", "code": "NOT_FOUND" } }
```

## Example

```bash theme={null}
curl -X GET "https://staging-api.puppetvendors.com/payouts/batches/507f1f77bcf86cd799439055" \
  -H "x-access-token: YOUR_VENDOR_JWT"
```
