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

# Get Stripe client secret

> Retrieves a Stripe client secret for payment processing using a payment intent ID



## OpenAPI

````yaml https://mainnet.anyspend.com/openapi.json get /stripe/clientSecret
openapi: 3.1.0
info:
  title: AnySpend API
  version: 1.0.0
  description: >-
    API for AnySpend - handles get quote, create order, check order status, and
    more.
servers:
  - url: https://mainnet.anyspend.com
    description: Production server
security: []
tags: []
paths:
  /stripe/clientSecret:
    get:
      tags:
        - Stripe
      summary: Get Stripe client secret
      description: >-
        Retrieves a Stripe client secret for payment processing using a payment
        intent ID
      parameters:
        - in: query
          name: paymentIntentId
          required: true
          schema:
            type: string
          description: Stripe payment intent ID to retrieve client secret for
          example: pi_3RlHbVJnoDg53PsP1349cXlR
      responses:
        '200':
          description: Client secret retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Client secret retrieved
                  data:
                    type: string
                    description: Stripe client secret for the payment intent
                    example: >-
                      pi_3RlHbVJnoDg53PsP1349cXlR_secret_084W7pxxba11lTUHWbmeZlXi0
                  statusCode:
                    type: number
                    example: 200
                required:
                  - success
                  - message
                  - data
                  - statusCode
        '400':
          description: Bad request - PaymentIntentId is required or invalid
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: PaymentIntentId is required
                  statusCode:
                    type: number
                    example: 400
                required:
                  - success
                  - message
                  - statusCode

````