Custom Document Webhooks

The Custom Document merit has the following webhooks:

Step Completed

{
    "resource": "https://api.prod.metamap.com/v2/verifications/68d402b80097394d9a0e51af",
    "step": {
        "status": 200,
        "id": "document-reading",
        "data": {
            "NIT": {
                "label": "NIT",
                "value": “123456789”,
                "required": true
            },
            "tipo-contribuyente": {
                "label": "Tipo de Contribuyente",
                "value": “Gran Contribuyente”,
                "required": true
            },
            "razon-social": {
                "label": "Razón social",
                "value": “Compañía de ejemplo S.A.”,
                "required": true
            },
            "direccion-principal": {
                "label": "Dirección principal",
                "value": “Calle 95 # 12-05”,
                "required": true
            },
            "correo": {
                "label": "Correo electrónico",
                "value": “[email protected]”,
                "required": true
            },
            "fecha": {
                "label": "Fecha",
                "value": “2025-09-24”,
                "required": true
            },
            "frontUrl": "https://media-cdn.prod.metamap.com/custom-documents/production/799957ed-441f-4e4f-aec7-9ae84361562d.jpeg?Expires=1758984274&Policy=eyJTdGF...”
        },
        "error": null,
        "documentType": "custom-RUT"
    },
    "eventName": "step_completed",
    "flowId": "68cadba00eee4826d970ddd0",
    "timestamp": "2025-09-24T14:44:34.214Z"
}

Step Error

{
"error": {
"type": "StepError",
"code": "document.noRequiredFields",
"message": "Document field extraction failed"
},
"documentType": "custom-CAC"
},
"eventName": "step_completed",
"flowId": "68d2ec723dda50f591db64f8",
"timestamp": "2025-09-24T14:49:07.478Z"
}
{
"resource": "https://api.prod.metamap.com/v2/verifications/68d4048a3f7133c6238828da",
"step": {
"status": 200,
"id": "template-matching",
"error": {
"type": "StepError",
"code": "templateMatching.noMatchFound",
"message": "Document did not match any valid template"
},
"documentType": "custom-CAC"
},
"eventName": "step_completed",
"flowId": "68d2ec723dda50f591db64f8",
"timestamp": "2025-09-24T14:49:27.332Z"
}