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

# Create a new checkout link

> Creates a new custom checkout link for a product.

- **Request Headers:**
  - `x-store-id` (string, required): The ID of the store making the request.

- **Request Body:**
  - `name` (string, required): Name of the checkout link.
  - `design` (object, optional): Design details for the checkout.
  - `status` (string, optional): Status of the checkout (default: active).

- **Response:** The newly created checkout link.

Enables customers to have specialized checkout processes tailored to certain products or promotions.



## OpenAPI

````yaml /api-reference/blink-api.json post /checkout-links
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:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /checkout-links:
    post:
      tags:
        - Checkouts
      summary: Create a new checkout link
      description: >-
        Creates a new custom checkout link for a product.


        - **Request Headers:**
          - `x-store-id` (string, required): The ID of the store making the request.

        - **Request Body:**
          - `name` (string, required): Name of the checkout link.
          - `design` (object, optional): Design details for the checkout.
          - `status` (string, optional): Status of the checkout (default: active).

        - **Response:** The newly created checkout link.


        Enables customers to have specialized checkout processes tailored to
        certain products or promotions.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCheckoutLinkRequest'
      responses:
        '201':
          description: Checkout link created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutLinkDetails'
      security:
        - storeIdHeader: []
components:
  schemas:
    CreateCheckoutLinkRequest:
      type: object
      properties:
        name:
          type: string
        design:
          $ref: '#/components/schemas/CheckoutDesign'
        status:
          type: string
      required:
        - name
    CheckoutLinkDetails:
      type: object
      properties:
        id:
          type: string
        store_id:
          type: string
        name:
          type: string
        design:
          $ref: '#/components/schemas/CheckoutDesign'
        status:
          type: string
        views:
          type: integer
        sales:
          type: integer
        created_at:
          type: string
          format: date-time
    CheckoutDesign:
      type: object
      description: >-
        Configuration for the visual layout, display options, and colors of a
        custom checkout.
      properties:
        layout:
          type: string
          enum:
            - classic
            - overlay
            - inline
            - split
            - minimal
          description: >-
            The overall layout structure of the checkout page. `classic` is
            standard, `overlay` highlights product imagery, `inline` embeds the
            form, `split` divides into two columns, and `minimal` removes all
            distractions.
        display_options:
          type: object
          properties:
            preview_button:
              type: boolean
              description: Show a preview button next to the product title.
            discount_code:
              type: boolean
              description: Show a discount input field at checkout.
            refund_policy:
              type: boolean
              description: Display a refund policy link in the footer.
        override_theme:
          type: boolean
          description: >-
            If true, ignores the global store theme and uses the custom colors
            defined below.
        colors:
          type: object
          properties:
            button:
              type: string
              description: Primary button color.
            button_hover:
              type: string
              description: Button color when hovered.
            button_text:
              type: string
              description: Text color inside buttons.
            button_text_hover:
              type: string
              description: Text color when hovering over buttons.
            link:
              type: string
              description: Color for clickable links.
            checkbox:
              type: string
              description: Color of variants checkbox.
            selection_border:
              type: string
              description: Border color for selected variants/methods.
            selection_background:
              type: string
              description: Background color for selected states.
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````