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

# Create Checkout Payment Button

> Creates a new Checkout Payment Button configuration for PayPal, Stripe, or StripeConnect.



## OpenAPI

````yaml POST /product-payment/create
openapi: 3.1.0
info:
  title: Checkout Payment Button API
  description: >-
    API for creating, updating, and deleting Checkout Payment Buttons (PayPal,
    Stripe, StripeConnect).
  version: 1.0.0
servers:
  - url: https://cloud-api.freshlimepay.com
security: []
paths:
  /product-payment/create:
    post:
      summary: Create Checkout Payment Button
      description: >-
        Creates a new Checkout Payment Button configuration for PayPal, Stripe,
        or StripeConnect.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCheckoutPaymentButtonModel'
      responses:
        '200':
          description: Checkout Payment Button created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '400':
          description: Validation or processing error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    CreateCheckoutPaymentButtonModel:
      type: object
      required:
        - productName
        - amount
        - currency
        - paymentMethod
        - paymentType
        - isLive
      properties:
        productName:
          type: string
          description: Name of the product associated with the checkout button
        description:
          type: string
          description: Description of the product or service
        amount:
          type: string
          description: Amount for the payment (decimal string)
        currency:
          type: string
          description: Currency code (e.g., USD, EUR)
        billingInterval:
          type: string
          description: Billing interval for subscriptions
        paymentMethod:
          type: string
          enum:
            - PayPal
            - Stripe
            - StripeConnect
          description: External payment provider
        paymentType:
          type: string
          enum:
            - one_time
            - subscription
          description: Type of payment
        isLive:
          type: boolean
          description: Indicates live or sandbox mode
        ApplicationFeePercentage:
          type: string
          description: >-
            Required if PaymentMethod is StripeConnect. Must be between 0.01 and
            100.
          minimum: 0.01
          maximum: 100
    ApiResponse:
      type: object
      properties:
        isSuccess:
          type: boolean
        data:
          type: string
          description: Usually returns the Checkout Payment Button ID
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API Key required for authorization (mandatory for all endpoints)

````