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

# Enviar evento de prueba firmado a un webhook

> Envía de inmediato un evento dte.webhook_test firmado con HMAC-SHA256 al endpoint configurado y devuelve el código HTTP de respuesta.



## OpenAPI

````yaml /openapi.json post /v1/webhooks/{id}/test
openapi: 3.1.0
info:
  contact:
    email: cloud@ia-erp.cl
    name: IA ERP
    url: https://ia-erp.cl
  description: >-
    API REST de Facturación Electrónica de Mercado ante el SII de Chile (Boletas
    39/41, Facturas 33/34, Guías 52, Notas de Crédito/Débito 61/56). Incluye
    idempotencia estricta (Idempotency-Key), sandbox sin tocar SII (sk_test_),
    consulta de contribuyentes y folios CAF.
  title: IA ERP — API Pública de DTE (Chile)
  version: 1.0.0
servers:
  - description: Producción y Sandbox (diferenciados por prefijo sk_live_ / sk_test_)
    url: https://dte.ia-erp.cl
security: []
paths:
  /v1/webhooks/{id}/test:
    post:
      tags:
        - Webhooks
      summary: Enviar evento de prueba firmado a un webhook
      description: >-
        Envía de inmediato un evento dte.webhook_test firmado con HMAC-SHA256 al
        endpoint configurado y devuelve el código HTTP de respuesta.
      operationId: probar-webhook
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProbarWebhookOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - bearerAuth: []
components:
  schemas:
    ProbarWebhookOutputBody:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://dte.ia-erp.cl/schemas/ProbarWebhookOutputBody.json
          format: uri
          readOnly: true
          type: string
        delivery_id:
          type: string
        detalle:
          type: string
        entregado:
          type: boolean
        evento:
          type: string
        status_code:
          format: int64
          type: integer
      required:
        - delivery_id
        - evento
        - entregado
        - status_code
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://dte.ia-erp.cl/schemas/ErrorModel.json
          format: uri
          readOnly: true
          type: string
        code:
          description: Código de error estable de IA ERP.
          examples:
            - rut_invalido
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - receptor.rut es obligatorio y debe ser un RUT chileno válido
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: Identificador único de la solicitud (coincide con X-Request-ID).
          examples:
            - urn:uuid:75acf40d-e49d-4267-9199-fdb9a0f98264
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Datos del DTE inválidos
          type: string
        type:
          default: about:blank
          description: URI estable del tipo de problema RFC 9457.
          examples:
            - urn:ia-erp:api:rut_invalido
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key (sk_live_... o sk_test_...)
      description: >-
        Llave de API por empresa emitida desde IA ERP (rol owner). Prefijo
        sk_live_ emite al SII; sk_test_ ejecuta en sandbox.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.