Timbrix Customers API

The customers API from Timbrix — 2 operation(s) for customers.

GitHub OpenAPI

Operations 5

POST /customers Create a customer #
GET /customers List customers for an organization #
GET /customers/{customerId} Get a customer by ID #
PUT /customers/{customerId} Update a customer #
DELETE /customers/{customerId} Delete a customer #

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-customers-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-customers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Timbrix Customers 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: Customers
paths:
  /customers:
    post:
      operationId: CustomersController_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/CreateCustomerDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
        '422':
          description: 'RFC_IN_69B_LIST: el RFC del cliente aparece como Definitivo en la lista 69-B del SAT'
      security:
      - apiKey: []
      - bearer: []
      summary: Create a customer
      tags:
      - Customers
    get:
      description: Sin parámetros devuelve todos los clientes. `q` busca en razón social, RFC y correo; `limit` acota el resultado.
      operationId: CustomersController_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: q
        required: false
        in: query
        description: Búsqueda libre (2-100 caracteres, sin distinguir mayúsculas) en razón social, RFC y correo.
        schema:
          example: acme
          type: string
      - name: limit
        required: false
        in: query
        description: Máximo de clientes a devolver (1-100). Sin este parámetro se devuelven todos.
        schema:
          example: 5
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CustomerResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request, or invalid q/limit
      security:
      - apiKey: []
      - bearer: []
      summary: List customers for an organization
      tags:
      - Customers
  /customers/{customerId}:
    get:
      operationId: CustomersController_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: customerId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
      security:
      - apiKey: []
      - bearer: []
      summary: Get a customer by ID
      tags:
      - Customers
    put:
      operationId: CustomersController_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: customerId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCustomerDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponseDto'
        '400':
          description: Missing X-Organization-Id header for a session request
        '422':
          description: 'RFC_IN_69B_LIST: el nuevo RFC del cliente aparece como Definitivo en la lista 69-B del SAT'
      security:
      - apiKey: []
      - bearer: []
      summary: Update a customer
      tags:
      - Customers
    delete:
      operationId: CustomersController_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: customerId
        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 customer
      tags:
      - Customers
components:
  schemas:
    CreateCustomerDto:
      type: object
      properties:
        legalName:
          type: string
          description: Customer legal name (Razón Social)
          example: Dunder Mifflin
        taxId:
          type: string
          description: Mexican RFC (tax identifier)
          example: ABC101010111
        taxSystem:
          type: string
          description: SAT tax system code (Régimen Fiscal)
          example: '601'
        email:
          type: string
          description: Customer email
          example: email@example.com
        phone:
          type: string
          description: Customer phone number
          example: '6474010101'
        defaultInvoiceUse:
          type: string
          description: Default CFDI use code
          example: G01
        addressStreet:
          type: string
          description: Street name
          example: Blvd. Atardecer
        addressExterior:
          type: string
          description: Exterior number
          example: '142'
        addressInterior:
          type: string
          description: Interior number
          example: '4'
        addressNeighborhood:
          type: string
          description: Neighborhood (Colonia)
          example: Centro
        addressCity:
          type: string
          description: City
          example: Huatabampo
        addressMunicipality:
          type: string
          description: Municipality
          example: Huatabampo
        addressZip:
          type: string
          description: ZIP code
          example: '86500'
        addressState:
          type: string
          description: State
          example: Sonora
        addressCountry:
          type: string
          description: Country code
          example: MEX
          default: MEX
      required:
      - legalName
      - taxId
      - taxSystem
      - email
      - defaultInvoiceUse
      - addressStreet
      - addressExterior
      - addressNeighborhood
      - addressCity
      - addressMunicipality
      - addressZip
      - addressState
    CustomerAddressDto:
      type: object
      properties:
        street:
          type: string
          example: Blvd. Atardecer
        exterior:
          type: string
          example: '142'
        interior:
          type: object
          example: '4'
        neighborhood:
          type: string
          example: Centro
        city:
          type: string
          example: Huatabampo
        municipality:
          type: string
          example: Huatabampo
        zip:
          type: string
          example: '86500'
        state:
          type: string
          example: Sonora
        country:
          type: string
          example: MEX
      required:
      - street
      - exterior
      - neighborhood
      - city
      - municipality
      - zip
      - state
      - country
    CustomerResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 590ce6c56d04f840aa8438af
        organizationId:
          type: string
          example: org-uuid
        legalName:
          type: string
          example: Dunder Mifflin
        taxId:
          type: string
          example: ABC101010111
        taxSystem:
          type: string
          example: '601'
        email:
          type: string
          example: email@example.com
        phone:
          type: object
          example: '6474010101'
        defaultInvoiceUse:
          type: string
          example: G01
        address:
          $ref: '#/components/schemas/CustomerAddressDto'
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        warnings:
          description: Presente solo al crear o editar el RFC cuando aparece como Presunto en la lista 69-B del SAT.
          type: array
          items:
            $ref: '#/components/schemas/Lista69bWarningDto'
      required:
      - id
      - organizationId
      - legalName
      - taxId
      - taxSystem
      - email
      - defaultInvoiceUse
      - address
      - createdAt
      - updatedAt
    Lista69bWarningDto:
      type: object
      properties:
        code:
          type: string
          enum:
          - RFC_69B_PRESUNTO
          - RFC_69B_DEFINITIVO
          example: RFC_69B_PRESUNTO
          description: 'RFC_69B_PRESUNTO: receptor Presunto. RFC_69B_DEFINITIVO: receptor Definitivo permitido porque el CFDI corrige o complementa uno ya timbrado a ese receptor.'
        rfc:
          type: string
          example: AAA010101AAA
        role:
          type: string
          enum:
          - emisor
          - receptor
          example: receptor
        message:
          type: string
          example: El RFC del receptor AAA010101AAA aparece como Presunto en la lista 69-B del SAT (publicado el 25 de junio de 2018). Revisa la operación antes de continuar.
      required:
      - code
      - rfc
      - role
      - message
    UpdateCustomerDto:
      type: object
      properties:
        legalName:
          type: string
          description: Customer legal name
          example: Dunder Mifflin
        taxId:
          type: string
          description: Mexican RFC
          example: ABC101010111
        taxSystem:
          type: string
          description: SAT tax system code
          example: '601'
        email:
          type: string
          description: Customer email
          example: email@example.com
        phone:
          type: string
          description: Customer phone
          example: '6474010101'
        defaultInvoiceUse:
          type: string
          description: Default CFDI use code
          example: G01
        addressStreet:
          type: string
          description: Street name
        addressExterior:
          type: string
          description: Exterior number
        addressInterior:
          type: string
          description: Interior number
        addressNeighborhood:
          type: string
          description: Neighborhood
        addressCity:
          type: string
          description: City
        addressMunicipality:
          type: string
          description: Municipality
        addressZip:
          type: string
          description: ZIP code
        addressState:
          type: string
          description: State
        addressCountry:
          type: string
          description: Country code
  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