Timbrix Products API

The products API from Timbrix — 3 operation(s) for products.

GitHub OpenAPI

Operations 6

POST /products Create a product or service #
GET /products List products for an organization #
POST /products/import Bulk import products/services from a CSV file #
GET /products/{productId} Get a product by ID #
PUT /products/{productId} Update a product #
DELETE /products/{productId} Delete a product #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/timbrix-mx:timbrix-mx-products-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

timbrix-mx-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Timbrix Products 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: []
tags:
- name: Products
paths:
  /products:
    post:
      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: []
      summary: Create a product or service
      tags:
      - Products
    get:
      operationId: ProductsController_list
      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
      - name: description
        required: false
        in: query
        description: Filter by description (partial match)
        schema:
          example: Ukelele
          type: string
      - name: sku
        required: false
        in: query
        description: Filter by SKU (partial match)
        schema:
          example: UKL
          type: string
      - name: productKey
        required: false
        in: query
        description: Filter by SAT product key (exact match)
        schema:
          example: 60131324
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProductResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
      - apiKey: []
      - bearer: []
      summary: List products for an organization
      tags:
      - Products
  /products/import:
    post:
      description: 'Uploads a CSV file (multipart/form-data, field name "file") and creates one product per data row. Required columns: description, productKey, price. Optional columns: unitKey (default H87), unitName, sku, taxIncluded, taxability, livemode — same field names as the JSON create endpoint. Each row is validated individually against the SAT product/unit key catalogs before creating it — rows with invalid SAT keys are never created silently. Processing is partial: valid rows are created even if other rows fail, and every failure is reported with its row number and reason.'
      operationId: ProductsController_importCsv
      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:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '201':
          description: Import summary with per-row success/error detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportProductsCsvResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
      - apiKey: []
      - bearer: []
      summary: Bulk import products/services from a CSV file
      tags:
      - Products
  /products/{productId}:
    get:
      operationId: ProductsController_findOne
      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
      - name: productId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
      - apiKey: []
      - bearer: []
      summary: Get a product by ID
      tags:
      - Products
    put:
      operationId: ProductsController_update
      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
      - name: productId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProductDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
      - apiKey: []
      - bearer: []
      summary: Update a product
      tags:
      - Products
    delete:
      operationId: ProductsController_remove
      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
      - name: productId
        required: true
        in: path
        schema:
          type: string
      responses:
        '204':
          description: ''
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
      - apiKey: []
      - bearer: []
      summary: Delete a product
      tags:
      - Products
components:
  schemas:
    ProductTaxDto:
      type: object
      properties:
        type:
          type: string
          description: 'Tax type: "IVA", "IEPS" or "ISR" (withholding only), or its SAT c_Impuesto code ("002", "003", "001")'
          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
    ImportProductsCsvResponseDto:
      type: object
      properties:
        totalRows:
          type: number
          example: 50
          description: Total de filas de datos procesadas (sin contar el encabezado)
        successCount:
          type: number
          example: 47
          description: Número de productos creados exitosamente
        errorCount:
          type: number
          example: 3
          description: Número de filas que fallaron y no generaron un producto
        errors:
          description: Detalle de errores por fila
          type: array
          items:
            $ref: '#/components/schemas/ImportProductsCsvRowErrorDto'
      required:
      - totalRows
      - successCount
      - errorCount
      - errors
    UpdateProductDto:
      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). If omitted, it is derived: "02" when `taxes` is not empty, "01" otherwise. Must agree with `taxes`: "02" requires at least one tax; "01", "03" and "04" must have none.'
          example: '02'
        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
    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
    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). If omitted, it is derived: "02" when `taxes` is not empty, "01" otherwise. Must agree with `taxes`: "02" requires at least one tax; "01", "03" and "04" must have none.'
          example: '02'
        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
    ImportProductsCsvRowErrorDto:
      type: object
      properties:
        row:
          type: number
          example: 3
          description: Número de fila en el archivo CSV (la fila 1 es el encabezado, la primera fila de datos es la 2)
        message:
          type: string
          example: La clave de producto o servicio "99999999" no existe en el catálogo SAT (c_ClaveProdServ)
          description: Motivo por el que la fila no se pudo importar
      required:
      - row
      - message
    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:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication (sk_test_... for sandbox, sk_live_... for production)
x-ai-agent-friendly: true