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

# Update Checkout Payment Button

> Updates an existing Checkout Payment Button configuration.



## OpenAPI

````yaml POST /product-payment/update/{id}
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/update/{id}:
    post:
      summary: Update Checkout Payment Button
      description: Updates an existing Checkout Payment Button configuration.
      parameters:
        - name: id
          in: path
          required: true
          description: Checkout Payment Button ID
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditCheckoutPaymentButtonModel'
      responses:
        '200':
          description: Checkout Payment Button updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '400':
          description: Validation or update error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    EditCheckoutPaymentButtonModel:
      type: object
      required:
        - productName
        - amount
        - currency
      properties:
        productName:
          type: string
        description:
          type: string
        amount:
          type: string
          description: Decimal string amount
        currency:
          type: string
          description: Currency code
        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)

````