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.
openapi: 3.2.0
info:
title: Timbrix Series 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: Series
paths:
/organizations/{organizationId}/series:
get:
operationId: SeriesController_list
parameters:
- name: organizationId
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/SeriesResponseDto'
security:
- bearer: []
summary: List the organization's series and folios
tags:
- Series
post:
description: Only owners and admins can create series.
operationId: SeriesController_create
parameters:
- name: organizationId
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSeriesDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/SeriesResponseDto'
'409':
description: SERIES_ALREADY_EXISTS
security:
- bearer: []
summary: Create a series
tags:
- Series
/organizations/{organizationId}/default-series:
put:
description: Only owners and admins. Returns the updated series list.
operationId: SeriesController_setDefault
parameters:
- name: organizationId
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SetDefaultSeriesDto'
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/SeriesResponseDto'
'404':
description: SERIES_NOT_FOUND
security:
- bearer: []
summary: Set the default series of a voucher type
tags:
- Series
/organizations/{organizationId}/series/{series}:
put:
description: Only owners and admins. The series name cannot be changed.
operationId: SeriesController_update
parameters:
- name: organizationId
required: true
in: path
schema:
type: string
- name: series
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateSeriesDto'
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/SeriesResponseDto'
'404':
description: SERIES_NOT_FOUND
security:
- bearer: []
summary: Update the next folio of a series
tags:
- Series
delete:
description: Only owners and admins. A default series cannot be deleted (SERIES_IS_DEFAULT).
operationId: SeriesController_remove
parameters:
- name: organizationId
required: true
in: path
schema:
type: string
- name: series
required: true
in: path
schema:
type: string
responses:
'204':
description: ''
'404':
description: SERIES_NOT_FOUND
'409':
description: SERIES_IS_DEFAULT
security:
- bearer: []
summary: Delete a series
tags:
- Series
components:
schemas:
UpdateSeriesDto:
type: object
properties:
nextFolio:
type: number
description: Siguiente folio de producción
example: 100
nextFolioTest:
type: number
description: Siguiente folio de sandbox
example: 100
SeriesResponseDto:
type: object
properties:
series:
type: string
example: A
nextFolio:
type: number
example: 1
nextFolioTest:
type: number
example: 1
defaultFor:
type: array
example:
- I
- T
items:
type: string
enum:
- I
- E
- T
- P
required:
- series
- nextFolio
- nextFolioTest
- defaultFor
CreateSeriesDto:
type: object
properties:
series:
type: string
description: Nombre de la serie (1 a 25 caracteres, sin |). Se guarda en mayúsculas.
example: FAC
nextFolio:
type: number
description: Siguiente folio de producción
example: 1
nextFolioTest:
type: number
description: Siguiente folio de sandbox
example: 1
required:
- series
SetDefaultSeriesDto:
type: object
properties:
type:
type: string
description: Tipo de comprobante
enum:
- I
- E
- T
- P
example: E
series:
type: string
description: Serie existente que será la predeterminada
example: FAC
required:
- type
- series
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