> ## 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.

# Manually confirm the outcome of a pending cancellation

> Timbrix cannot query SAT in real time for the receptor's response — call this once you've confirmed the outcome via the SAT portal.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json post /invoices/{uuid}/cancellations/{cancellationId}/resolve
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:
  /invoices/{uuid}/cancellations/{cancellationId}/resolve:
    post:
      tags:
        - invoices
      summary: Manually confirm the outcome of a pending cancellation
      description: >-
        Timbrix cannot query SAT in real time for the receptor's response — call
        this once you've confirmed the outcome via the SAT portal.
      operationId: InvoicesController_resolve
      parameters:
        - name: uuid
          required: true
          in: path
          schema:
            type: string
        - name: cancellationId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveCancellationDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceCancellationDto'
        '400':
          description: The cancellation was already resolved
        '403':
          description: >-
            Session caller is not an owner/admin of the invoice's organization
            (a plain member can request a cancellation but not resolve one)


            Caller does not belong to the invoice's organization
        '404':
          description: uuid or cancellationId not found
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    ResolveCancellationDto:
      type: object
      properties:
        outcome:
          type: string
          example: aceptada
          enum:
            - aceptada
            - rechazada
          description: >-
            Resultado confirmado manualmente por el usuario tras verificar el
            estatus real en el portal del SAT — Timbrix no puede consultarlo en
            tiempo real (ver
            docs/superpowers/specs/2026-08-10-cfdi-cancelacion-design.md).
      required:
        - outcome
    InvoiceCancellationDto:
      type: object
      properties:
        id:
          type: string
        invoiceId:
          type: string
        motivo:
          type: string
          enum:
            - '01'
            - '02'
            - '03'
            - '04'
        folioSustitucion:
          type: object
        requiresApproval:
          type: boolean
        respondBy:
          type: object
        cancellationStatus:
          type: string
          enum:
            - pendiente
            - aceptada
            - rechazada
        requestedBy:
          type: object
        resolvedBy:
          type: object
        resolvedAt:
          type: object
        createdAt:
          format: date-time
          type: string
      required:
        - id
        - invoiceId
        - motivo
        - requiresApproval
        - cancellationStatus
        - createdAt
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API Key for authentication (format: sk_...)'
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````