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

# Get Payment Provider Intent

> Get an intent for a customer to add a payment method for a payment provider (such as Stripe).



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json get /companies/{company_id}/customers/{customer_id}/payment_methods/setup_intent
openapi: 3.1.0
info:
  title: Measure API
  description: APIs to communicate with Measure
  version: 1.0.0
servers:
  - url: https://api.getmeasure.com/api/v1
security: []
paths:
  /companies/{company_id}/customers/{customer_id}/payment_methods/setup_intent:
    get:
      tags:
        - Customers
      summary: Get Payment Provider Intent
      description: >-
        Get an intent for a customer to add a payment method for a payment
        provider (such as Stripe).
      operationId: Get_Payment_Provider_Intent
      parameters:
        - name: company_id
          in: path
          description: 'The company ID with the prefix ''cmp_''. '
          required: true
          schema:
            description: 'The company ID with the prefix ''cmp_''. '
            type: string
        - name: customer_id
          in: path
          description: customer_id or identifier
          required: true
          schema:
            description: customer_id or identifier
            type: string
        - name: Idempotency-Key
          in: header
          description: >-
            The idempotency key that will be used to ensure the request is only
            performed once
          schema:
            description: >-
              The idempotency key that will be used to ensure the request is
              only performed once
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseSetupIntentResponse'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    ResponseSetupIntentResponse:
      properties:
        helcim:
          $ref: '#/components/schemas/CommonHelcimPaymentIntent'
        id:
          type: string
        integration_id:
          type: string
        intent_secret:
          type: string
        provider_account_id:
          type:
            - 'null'
            - string
        provider_key:
          type: string
        razorpay:
          $ref: '#/components/schemas/CommonRazorPaySetupIntent'
        square:
          $ref: '#/components/schemas/CommonSquareSetupIntent'
        stripe:
          $ref: '#/components/schemas/CommonStripeSetupIntent'
      type: object
    CommonHelcimPaymentIntent:
      properties:
        checkout_token:
          type: string
      type: object
    CommonRazorPaySetupIntent:
      properties:
        id:
          type: string
        intent_secret:
          type: string
        provider_customer_id:
          type: string
        recurring:
          type: string
      type: object
    CommonSquareSetupIntent:
      properties:
        account_id:
          type: string
        location_id:
          type: string
        provider_customer_id:
          type: string
      type: object
    CommonStripeSetupIntent:
      properties:
        account_id:
          type: string
        id:
          type: string
        intent_secret:
          type: string
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````