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

# Get legal configuration

> Returns the current legal terms version and public document URLs. Reading these documents does not record merchant agreement acceptance.



## OpenAPI

````yaml /openapi.yaml get /v1/config/legal
openapi: 3.1.0
info:
  title: Kyren Pay API
  description: >
    The Kyren Pay API enables merchants to accept payments from customers
    worldwide.

    Integrate checkout sessions, manage products, track orders, and handle
    webhooks.


    **Authentication**: Server-side merchant integrations use `x-api-key`.

    Public configuration operations have no authentication requirement.

    `/v1/merchant/**` dashboard operations use a merchant login JWT and are not
    part of this API reference.

    Epay compatibility operations use their documented `pid` and signature/key
    parameters.


    **Data types**: The API uses the following types for request/response data:

    - **string**: For text, identifiers, and **all amount/price fields** (e.g.
    `price`, `amount`, `platformFee`, `available`)
      to avoid floating-point precision issues. Use decimal format like `"9.99"`.
    - **integer**: For counts, pagination, and timestamps

    - **timestamp**: Unix timestamp in milliseconds (integer) for all time
    fields (e.g. `createdAt`, `paidAt`, `expiresAt`).
      Time parameters (e.g. `startDate`, `endDate`) also use Unix milliseconds.
    - **calendar date**: Agreement `effectiveDate` uses a `YYYY-MM-DD` string;
    it is a calendar date, not an event timestamp.
  version: 1.0.0
  contact:
    name: Kyren Pay Support
    email: support@kyrenpay.com
    url: https://kyrenpay.com
servers:
  - url: https://api.kyrenpay.com
    description: Production
  - url: https://staging-api.kyren.top
    description: Staging, available only with credentials issued by Kyren
security:
  - ApiKeyAuth: []
tags:
  - name: Config
    description: Retrieve platform configuration such as supported currencies.
  - name: Products
    description: Create and manage products that represent the goods or services you sell.
  - name: Checkouts
    description: Create checkout sessions to collect payments from your customers.
  - name: Orders
    description: View and manage orders created from completed checkout sessions.
  - name: Refunds
    description: Create and retrieve refunds for eligible paid Kyren API orders.
  - name: Balance
    description: View your account balance and transaction history.
  - name: Epay Compatibility
    description: >
      Compatibility endpoints for existing integrations built on 易支付 API
      conventions.

      These endpoints use form/query parameters with `pid + sign` verification
      (MD5), not `x-api-key` header auth.
paths:
  /v1/config/legal:
    get:
      tags:
        - Config
      summary: Get legal configuration
      description: >-
        Returns the current legal terms version and public document URLs.
        Reading these documents does not record merchant agreement acceptance.
      operationId: getLegalConfig
      responses:
        '200':
          description: Current legal document links
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalConfigResponseWrapper'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security: []
components:
  schemas:
    LegalConfigResponseWrapper:
      type: object
      properties:
        code:
          type: integer
          example: 0
        message:
          type: string
          example: success
        data:
          $ref: '#/components/schemas/LegalConfig'
    LegalConfig:
      type: object
      required:
        - legalTermsVersion
        - legalUserAgreementUrl
        - legalPrivacyPolicyUrl
        - legalDisclaimerUrl
        - legalAupUrl
      properties:
        legalTermsVersion:
          type: string
        legalUserAgreementUrl:
          type: string
          format: uri
        legalPrivacyPolicyUrl:
          type: string
          format: uri
        legalDisclaimerUrl:
          type: string
          format: uri
        legalAupUrl:
          type: string
          format: uri
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: >-
            Kyren business error code, not the HTTP status. For example, HTTP
            400 may contain code 40001.
        message:
          type: string
        error:
          type: object
          properties:
            field:
              type: string
            reason:
              type: string
  responses:
    TooManyRequests:
      description: >-
        Rate limit exceeded. Ordinary API requests default to 100 per minute per
        IP; checkout creation defaults to 60 per minute per merchant. Deployment
        settings may differ.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 42901
            message: Too many requests
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        Your API key. Public production API-key endpoints accept `kyren_live_*`
        keys. Staging credentials are environment-specific and must be used only
        with the staging environment for which Kyren issued them.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.