> ## 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.

# Initialize Payout Setup

> Generates a secure Stripe Connect onboarding link for the affiliate. Handles the creation of the underlying Stripe Express account if it doesn't exist.



## OpenAPI

````yaml post /v1/affiliates/{id}/payout-setup
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security: []
paths:
  /v1/affiliates/{id}/payout-setup:
    post:
      tags:
        - Affiliates
      summary: Initialize Payout Setup
      description: >-
        Generates a secure Stripe Connect onboarding link for the affiliate.
        Handles the creation of the underlying Stripe Express account if it
        doesn't exist.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The affiliate membership ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                return_url:
                  type: string
                refresh_url:
                  type: string
              required:
                - return_url
      responses:
        '200':
          description: Stripe Connect onboarding link generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      url:
                        type: string

````