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

# Add Payment Method Link

> Get a link to a hosted page which allows a customer to add a payment method.



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json post /companies/{company_id}/customers/{customer_id}/add_payment_method_link
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}/add_payment_method_link:
    post:
      tags:
        - Customers
      summary: Add Payment Method Link
      description: >-
        Get a link to a hosted page which allows a customer to add a payment
        method.
      operationId: Add_Payment_Method_Link
      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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestAddPaymentMethodLinkRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseAddPaymentMethodLinkResponse'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    RequestAddPaymentMethodLinkRequest:
      properties:
        redirect_url:
          type:
            - 'null'
            - string
      type: object
    ResponseAddPaymentMethodLinkResponse:
      properties:
        link:
          type:
            - 'null'
            - string
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````