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

# partner.enrolled

export const WebhookResponseBodyParameters = ({type, children}) => <div>
    <h2>Response body parameters</h2>
    <p>
      All webhook payloads follow a consistent top-level structure with
      event-specific data nested within the <code>data</code> object.
    </p>
    <ParamField body="id" type="string">
      The event ID.
    </ParamField>
    <ParamField body="event" type="string">
      The event type that triggered the webhook (e.g., <code>{type}</code>).
    </ParamField>
    <ParamField body="createdAt" type="string">
      ISO 8601 timestamp when the webhook event was created.
    </ParamField>
    <ParamField body="data" type="object">
      Event-specific data containing detailed information about the event. The
      data object for the <code>{type}</code> event contains the following
      parameters:
      <Expandable defaultOpen title="object parameters">
        {children}
      </Expandable>
    </ParamField>
  </div>;

Event triggered when a [new partner is enrolled](/docs/api-reference/partners/create) in your partner program.

<WebhookResponseBodyParameters type="partner.enrolled">
  <ParamField body="id" type="string">
    Unique identifier for the partner.
  </ParamField>

  <ParamField body="name" type="string">
    Partner name.
  </ParamField>

  <ParamField body="email" type="string">
    Partner email address.
  </ParamField>

  <ParamField body="image" type="string | null">
    URL to the partner's profile image.
  </ParamField>

  <ParamField body="description" type="string | null">
    Partner bio or description.
  </ParamField>

  <ParamField body="country" type="string">
    Country code (e.g. <code>US</code>).
  </ParamField>

  <ParamField body="payoutsEnabledAt" type="string | null">
    ISO 8601 timestamp when payouts were enabled for this partner.
  </ParamField>

  <ParamField body="createdAt" type="string">
    ISO 8601 timestamp when the partner was enrolled.
  </ParamField>

  <ParamField body="status" type="string">
    Partner status (e.g. <code>approved</code>).
  </ParamField>

  <ParamField body="programId" type="string">
    ID of the partner program.
  </ParamField>

  <ParamField body="clicks" type="number">
    Total clicks across the partner's links.
  </ParamField>

  <ParamField body="leads" type="number">
    Total leads attributed to the partner.
  </ParamField>

  <ParamField body="sales" type="number">
    Total sales attributed to the partner.
  </ParamField>

  <ParamField body="saleAmount" type="number">
    Total sale amount in cents.
  </ParamField>

  <ParamField body="earnings" type="number">
    Total earnings in cents.
  </ParamField>

  <ParamField body="website" type="string | null">
    Partner website URL.
  </ParamField>

  <ParamField body="links" type="array">
    Array of the partner's referral links.

    <Expandable title="link object">
      <ParamField body="id" type="string">
        Link ID.
      </ParamField>

      <ParamField body="domain" type="string">
        Short link domain.
      </ParamField>

      <ParamField body="key" type="string">
        Short link path/slug.
      </ParamField>

      <ParamField body="shortLink" type="string">
        Full short link URL.
      </ParamField>

      <ParamField body="url" type="string">
        Destination URL.
      </ParamField>

      <ParamField body="clicks" type="number">
        Click count for this link.
      </ParamField>

      <ParamField body="leads" type="number">
        Lead count for this link.
      </ParamField>

      <ParamField body="sales" type="number">
        Sale count for this link.
      </ParamField>

      <ParamField body="saleAmount" type="number">
        Sale amount in cents for this link.
      </ParamField>
    </Expandable>
  </ParamField>
</WebhookResponseBodyParameters>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "evt_ovabfqva8oqZzmLPN1JnwIfdt",
    "event": "partner.enrolled",
    "createdAt": "2025-04-08T17:11:56.492Z",
    "data": {
      "id": "pn_1JRB6678XHGBZE95R5PH5QVGS",
      "name": "Asleep Pink Mammal",
      "email": "chosen.blush.barracuda@dub-internal-test.com",
      "image": "https://api.dub.co/og/avatar?seed=Asleep Pink Mammal",
      "description": null,
      "country": "US",
      "payoutsEnabledAt": null,
      "paypalEmail": null,
      "stripeConnectId": null,
      "createdAt": "2025-04-08T17:11:56.446Z",
      "status": "approved",
      "programId": "prog_CYCu7IMAapjkRpTnr8F1azjN",
      "tenantId": null,
      "clicks": 0,
      "leads": 0,
      "sales": 0,
      "saleAmount": 0,
      "earnings": 0,
      "applicationId": null,
      "website": "https://example.com",
      "youtube": null,
      "twitter": null,
      "linkedin": null,
      "instagram": null,
      "tiktok": null,
      "links": [
        {
          "id": "link_1JRB6677YXQB49RC1HKH7TPJE",
          "domain": "getacme.link",
          "key": "uvYO5pMIpctKdUVJlL3jIL4o",
          "shortLink": "https://getacme.link/uvYO5pMIpctKdUVJlL3jIL4o",
          "url": "https://acme.com",
          "clicks": 0,
          "leads": 0,
          "sales": 0,
          "saleAmount": 0
        }
      ]
    }
  }
  ```
</ResponseExample>
