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

# Crear categoría fiscal de producto



## OpenAPI

````yaml espanol/api-reference/openapi.json POST /admin/product-fiscal-categories
openapi: 3.0.1
info:
  title: Api V3 documentación
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.artisn.desarrollo-redbrand.com/api
  - url: https://api.kfc-group.desarrollo-redbrand.com
  - url: https://{apiId}.execute-api.{region}.amazonaws.com/{stage}
    description: API Gateway (PRIVATE; invocación típica vía VPC endpoint).
    variables:
      apiId:
        default: '{api-id}'
        description: ID del API REST desplegado.
      region:
        default: us-east-1
      stage:
        default: dev
        description: Mismo valor que parámetro EnvironmentName del stack.
security:
  - bearerAuth: []
paths:
  /admin/product-fiscal-categories:
    post:
      tags:
        - Admin
      summary: Crear categoría fiscal de producto
      operationId: createProductFiscalCategory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProductFiscalCategoryCreate'
      responses:
        '201':
          description: Creado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductFiscalCategory'
        '400':
          description: Body inválido o campos requeridos ausentes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorMessage'
        '409':
          description: Conflicto (unicidad)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorMessage'
        '500':
          description: Error interno
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorMessage'
components:
  schemas:
    ProductFiscalCategoryCreate:
      type: object
      required:
        - productId
        - productName
        - ncm
      properties:
        productId:
          type: string
        productName:
          type: string
        ncm:
          type: string
        externalProductId:
          type: string
          nullable: true
    ProductFiscalCategory:
      type: object
      properties:
        productId:
          type: string
        productName:
          type: string
        externalProductId:
          type: string
          nullable: true
        ncm:
          type: string
        createdAt:
          type: string
          format: date-time
    ApiErrorMessage:
      type: object
      required:
        - message
      properties:
        message:
          type: string
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````