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

# Retrieve Transaction

> This endpoint retrieves a transaction.

## Base URL `https://api.tolt.com`

<br />

### Query Parameters

<ParamField body="expand" type="array - optional">
  Specify which related objects to include in the response. Valid values are
  **'customer'**, **'program'**, and **'partner'**. Use **expand\[]=customer**,
  **expand\[]=program**, or **expand\[]=partner** to include the related objects.
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Whether the request was successful
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="id" type="string">
      Unique identifier for the transaction
    </ResponseField>

    <ResponseField name="amount" type="number">
      Transaction amount in cents
    </ResponseField>

    <ResponseField name="customer_id" type="string">
      ID of the associated customer
    </ResponseField>

    <ResponseField name="billing_type" type="string">
      The billing type
    </ResponseField>

    <ResponseField name="charge_id" type="string">
      Associated charge identifier
    </ResponseField>

    <ResponseField name="click_id" type="string">
      Associated click identifier
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 timestamp of creation
    </ResponseField>

    <ResponseField name="source" type="string">
      Source of the transaction
    </ResponseField>

    <ResponseField name="interval" type="string">
      Subscription interval
    </ResponseField>

    <ResponseField name="program_id" type="string">
      Program ID the transaction belongs to
    </ResponseField>

    <ResponseField name="partner_id" type="string">
      Unique identifier for the partner
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={"system"}
  curl -X GET 'https://api.tolt.com/v1/transactions/txn_eK9bzRGn46BhVgNFHD6fDgXW' \
  -H 'Authorization: Bearer <API_KEY>'
  ```

  ```bash With Expand theme={"system"}
  curl -X GET 'https://api.tolt.com/v1/transactions/txn_eK9bzRGn46BhVgNFHD6fDgXW?expand[]=customer&expand[]=program&expand[]=partner' \
  -H 'Authorization: Bearer <API_KEY>'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={"system"}
  {
    "success": true,
    "data": {
      "id": "txn_eK9bzRGn46BhVgNFHD6fDgXW",
      "amount": 9999,
      "customer_id": "cust_dK9bzRGn46BhVgNFHD6fDgXW",
      "billing_type": "subscription",
      "charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
      "click_id": "clk_7mbzRGn46BhVgNFHD6fDgXW",
      "source": "stripe",
      "interval": "month",
      "created_at": "2025-01-15T14:30:00.000Z",
      "updated_at": "2025-01-15T14:30:00.000Z",
      "program_id": "prg_YRsbPDAKhWfdqJbFACheh",
      "partner_id": "part_ER3mfYNL9ci7sFaJazAv2"
    }
  }
  ```

  ```json Expand Response theme={"system"}
  {
    "success": true,
    "data": {
      "id": "txn_eK9bzRGn46BhVgNFHD6fDgXW",
      "amount": 9999,
      "customer_id": "cust_dK9bzRGn46BhVgNFHD6fDgXW",
      "billing_type": "subscription",
      "charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
      "click_id": "clk_7mbzRGn46BhVgNFHD6fDgXW",
      "product_id": "prod_123",
      "product_name": "Premium Plan",
      "source": "stripe",
      "interval": "month",
      "created_at": "2025-01-15T14:30:00.000Z",
      "program_id": "prg_YRsbPDAKhWfdqJbFACheh",
      "organization_id": "org_JE3mfYNL9ci7sFaJazAv2",
      "customer": {
        "id": "cust_dK9bzRGn46BhVgNFHD6fDgXW",
        "email": "cust_123",
        "name": "Jim Halpert",
        "status": "active",
        "created_at": "2025-01-15T14:30:00.000Z"
      },
      "program": {
        "id": "prg_YRsbPDAKhWfdqJbFACheh",
        "status": "active",
        "name": "Tolt's Partnership Program",
        "product_name": "Tolt",
        "subdomain": "affiliates",
        "type": "public",
        "currency_code": "USD",
        "created_at": "2024-03-05T10:28:08.984+00:00"
      },
      "partner": {
        "id": "part_s7mbzRGn46BhVgNFHD6fDgXW",
        "first_name": "Michael",
        "last_name": "Scott",
        "email": "michael.scott@dundermifflin.com",
        "company_name": "Dunder Mifflin",
        "status": "active",
        "created_at": "2025-01-13T10:06:11.251Z"
      }
    }
  }
  ```
</ResponseExample>
