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

# Retrieve Affiliate Details

> This endpoint fetches detailed information about a specific affiliate identified by the `id` path parameter. It ensures the affiliation with the store using the `x-store-id` header. This includes affiliate profiles and conversion statistics such as the number of conversions, total revenue, and commissions. It returns 404 if the affiliate is not found.



## OpenAPI

````yaml /api-reference/growth-api.json get /affiliates/{id}
openapi: 3.0.0
info:
  title: Growth API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
paths:
  /affiliates/{id}:
    get:
      tags:
        - Affiliates
      summary: Retrieve Affiliate Details
      description: >-
        This endpoint fetches detailed information about a specific affiliate
        identified by the `id` path parameter. It ensures the affiliation with
        the store using the `x-store-id` header. This includes affiliate
        profiles and conversion statistics such as the number of conversions,
        total revenue, and commissions. It returns 404 if the affiliate is not
        found.
      parameters:
        - name: id
          in: path
          required: true
          description: ID of the affiliate.
          schema:
            type: string
      responses:
        '200':
          description: Affiliate details including conversion statistics.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateDetails'
      security:
        - storeIdHeader: []
components:
  schemas:
    AffiliateDetails:
      type: object
      properties:
        id:
          type: string
        store_id:
          type: string
        program_id:
          type: string
        status:
          type: string
        created_at:
          type: string
          format: date-time
        affiliate:
          type: object
          properties:
            id:
              type: string
            display_name:
              type: string
            website:
              type: string
            social_links:
              type: string
        stats:
          type: object
          properties:
            conversions:
              type: integer
            total_revenue:
              type: number
            total_commission:
              type: integer
            pending_commission:
              type: integer
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````