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

# Create license

> Requires `licenses.write` and `licenses.read` for API keys and OAuth. OAuth also requires current license key permission.



## OpenAPI

````yaml /openapi.json post /dev/v1/licenses
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/licenses:
    post:
      tags:
        - Licenses
      summary: Create license
      description: >-
        Requires `licenses.write` and `licenses.read` for API keys and OAuth.
        OAuth also requires current license key permission.
      operationId: postDevV1Licenses
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - product_id
                - license_key
              properties:
                product_id:
                  type: string
                  minLength: 1
                invoice_id:
                  type: string
                license_key:
                  type: string
                  minLength: 1
                hardware_id:
                  type: string
                  nullable: true
                max_uses:
                  type: integer
                  nullable: true
                  minimum: 1
                  maximum: 9007199254740991
                allowed_ips:
                  type: array
                  nullable: true
                  items:
                    type: string
                    minLength: 1
                expires_at:
                  type: string
                  nullable: true
              example:
                product_id: prod_1
                invoice_id: inv_1
                license_key: XYZ-789
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                example:
                  data:
                    productLicense:
                      uniqid: lic_2
                      product_id: prod_1
                      license_key: XYZ-789
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````

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