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

# Generate Customer Links

> Generate a customer portal link for managing billing, subscriptions, and payment methods.



## OpenAPI

````yaml post /v1/customers/billing
openapi: 3.0.0
info:
  title: Creem API
  description: >-
    Creem is an all-in-one platform for managing subscriptions and recurring
    revenue, tailored specifically for today's SaaS companies. It enables you to
    boost revenue, enhance customer retention, and scale your operations
    seamlessly.
  version: v1
  contact:
    name: Creem Support
    url: https://creem.io
    email: support@creem.io
  license:
    name: Commercial
    url: https://creem.io/terms
  termsOfService: https://creem.io/terms
servers:
  - url: https://api.creem.io
  - url: https://test-api.creem.io
security: []
tags: []
externalDocs:
  description: Creem Documentation
  url: https://docs.creem.io
paths:
  /v1/customers/billing:
    post:
      tags:
        - Customers
      summary: Generate Customer Links
      description: >-
        Generate a customer portal link for managing billing, subscriptions, and
        payment methods.
      operationId: generateCustomerLinks
      parameters: []
      requestBody:
        required: true
        description: Customer portal link generation request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCustomerPortalLinkRequestEntity'
      responses:
        '200':
          description: Successfully generated customer links
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerLinksEntity'
        '400':
          description: Bad Request - Invalid input parameters
        '401':
          description: Unauthorized - Invalid or missing API key
        '404':
          description: Not Found - Resource does not exist
      security:
        - ApiKey: []
components:
  schemas:
    CreateCustomerPortalLinkRequestEntity:
      type: object
      properties:
        customer_id:
          type: string
          description: Unique identifier of the customer.
      required:
        - customer_id
    CustomerLinksEntity:
      type: object
      properties:
        customer_portal_link:
          type: string
          description: Customer portal link.
      required:
        - customer_portal_link
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can find your API key in the Creem
        dashboard under Settings > API Keys.

````

Built with [Mintlify](https://mintlify.com).