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

# Create a product or service



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json post /products
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /products:
    post:
      tags:
        - products
      summary: Create a product or service
      operationId: ProductsController_create
      parameters:
        - name: X-Organization-Id
          in: header
          description: >-
            Required for Supabase session auth. Ignored when authenticating with
            an API key (the organization resolves from the key).
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProductDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    CreateProductDto:
      type: object
      properties:
        description:
          type: string
          description: Product or service description
          example: Ukelele
        productKey:
          type: number
          description: SAT product/service key (clave de producto o servicio)
          example: 60131324
        price:
          type: number
          description: Unit price
          example: 345.6
        taxIncluded:
          type: boolean
          description: Whether taxes are already included in the price
          example: true
          default: false
        taxability:
          type: string
          description: SAT taxability code (objeto de impuesto)
          example: '01'
          default: '01'
        taxes:
          description: Applicable taxes
          default: []
          type: array
          items:
            $ref: '#/components/schemas/ProductTaxDto'
        localTaxes:
          description: Applicable local taxes
          default: []
          type: array
          items:
            $ref: '#/components/schemas/ProductTaxDto'
        unitKey:
          type: string
          description: SAT unit of measure key (clave de unidad)
          example: H87
          default: H87
        unitName:
          type: string
          description: Unit of measure name
          example: Elemento
          default: Elemento
        sku:
          type: string
          description: Internal SKU or identifier
          example: UKL-001
        livemode:
          type: boolean
          description: Whether this is a live mode product
          example: true
          default: true
      required:
        - description
        - productKey
        - price
    ProductResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 590ce6c56d04f840aa8438af
        organizationId:
          type: string
          example: org-uuid
        livemode:
          type: boolean
          example: false
        description:
          type: string
          example: Ukelele
        productKey:
          type: number
          example: 60131324
        price:
          type: number
          example: 345.6
        taxIncluded:
          type: boolean
          example: true
        taxability:
          type: string
          example: '01'
        taxes:
          type: array
          items:
            $ref: '#/components/schemas/TaxDto'
        localTaxes:
          type: array
          items:
            $ref: '#/components/schemas/TaxDto'
        unitKey:
          type: string
          example: H87
        unitName:
          type: string
          example: Elemento
        sku:
          type: object
          example: UKL-001
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
        - id
        - organizationId
        - livemode
        - description
        - productKey
        - price
        - taxIncluded
        - taxability
        - taxes
        - localTaxes
        - unitKey
        - unitName
        - createdAt
        - updatedAt
    ProductTaxDto:
      type: object
      properties:
        type:
          type: string
          description: Tax type
          example: IVA
        rate:
          type: number
          description: Tax rate
          example: 0.16
        withholding:
          type: boolean
          description: Is withholding tax
          example: false
        factor:
          type: string
          description: Tax factor type
          example: Tasa
      required:
        - type
        - rate
    TaxDto:
      type: object
      properties:
        type:
          type: string
          example: IVA
        rate:
          type: number
          example: 0.16
        withholding:
          type: boolean
          example: false
        factor:
          type: string
          example: Tasa
      required:
        - type
        - rate
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API Key for authentication (format: sk_...)'
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````