Domiciliation (Direct Debit)

These are PAAS notifications pushed to the tenant webhook URL for direct debit charges

Webhook List

For information about specific payloads for a given API event type and webhook notification code, just click on the corresponding Webhook Code in the table below.

Event TypeEvent Sub TypeCodescheduled to be sent whenever...
PAYMENT_METHOD_DMCLPAYMENT_METHOD_CREATED_DMCL4000Enroll activated (auto-match or confirm). Typical status ACTIVE
PAYMENT_METHOD_DMCLPAYMENT_METHOD_UPDATED_DMCL4100Awaiting tenant confirmation; may include identity metadata. Typical Status. PENDING_CONFIRMATION
PAYMENT_METHOD_DMCLPAYMENT_METHOD_FAILED_DMCL4002Enroll failed (e.g. CEP invalid)
PAYMENT_METHOD_DMCLDMCL_REQUEST_CREATED11000Charge created. Typical charge status PENDING
PAYMENT_METHOD_DMCLDMCL_REQUEST_SUCCESS11001Provider confirmed success
PAYMENT_METHOD_DMCLDMCL_REQUEST_FAILED11002Failed or declined / canceled
PAYMENT_METHOD_DMCLDMCL_REQUEST_CHARGEBACK11005Chargeback after confirmation

These are the request bodies that PAAS posts to the tenant's webhook (PaasNotificationExternalCallRequest). Common fields: event_type, event_type_description, webhook_notification_code, account_id, customer_id, transaction_id, request_id, details, and sometimes metadata.

Quick notes:

  1. transaction_id for mandates = enroll_id (string). For charges = the charge's internal_transaction_id value.
  2. details.code for mandates = CLABE.
  3. details.name and details.status are set using the same flow status string.
  4. mount in details applies only to charges (string).

PAYMENT_METHOD_CREATED_DMCL

{
  "event_type": "PAYMENT_METHOD_DMCL",
  "event_type_description": "PAYMENT_METHOD_CREATED_DMCL",
  "webhook_notification_code": 4000,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "10",
  "request_id": 987654,
  "details": {
    "id": 10,
    "code": "012180001234567890",
    "name": "ACTIVE",
    "status": "ACTIVE",
    "failed_reason": null,
    "failed_message": null,
    "amount": null
  }
}

PAYMENT_METHOD_UPDATED_DMCL

With match = true

{
  "event_type": "PAYMENT_METHOD_DMCL",
  "event_type_description": "PAYMENT_METHOD_UPDATED_DMCL",
  "webhook_notification_code": 4100,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "10",
  "request_id": 987654,
  "details": {
    "id": 10,
    "code": "012180001234567890",
    "name": "PENDING_CONFIRMATION",
    "status": "PENDING_CONFIRMATION",
    "failed_reason": null,
    "failed_message": null,
    "amount": null
  },
  "metadata": {
    "match": true,
    "customer_name": "JUAN PEREZ",
    "customer_rfc": "XAXX010101000",
    "bank_name": "JUAN PEREZ",
    "bank_rfc": "XAXX010101000",
    "expires_at": "2026-08-13 12:00:00.0"
  }
}

With match = false (identity mismatch):

{
  "event_type": "PAYMENT_METHOD_DMCL",
  "event_type_description": "PAYMENT_METHOD_UPDATED_DMCL",
  "webhook_notification_code": 4100,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "10",
  "request_id": 987654,
  "details": {
    "id": 10,
    "code": "012180001234567890",
    "name": "PENDING_CONFIRMATION",
    "status": "PENDING_CONFIRMATION",
    "failed_reason": "IDENTITY_MISMATCH",
    "failed_message": "Customer identity does not match CEP",
    "amount": null
  },
  "metadata": {
    "match": false,
    "customer_name": "JUAN PEREZ",
    "customer_rfc": "XAXX010101000",
    "bank_name": "OTRO NOMBRE",
    "bank_rfc": "YBBY020202000",
    "expires_at": "2026-08-13 12:00:00.0"
  }
}

PAYMENT_METHOD_FAILED_DMCL

Invalid CEP

{
  "event_type": "PAYMENT_METHOD_DMCL",
  "event_type_description": "PAYMENT_METHOD_FAILED_DMCL",
  "webhook_notification_code": 4002,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "10",
  "request_id": 987654,
  "details": {
    "id": 10,
    "code": "012180001234567890",
    "name": "FAILED",
    "status": "FAILED",
    "failed_reason": "CEP_INVALID",
    "failed_message": "CEP_INVALID",
    "amount": null
  }
}

DMCL_REQUEST_CREATED (PENDING)

{
  "event_type": "PAYMENT_REQUEST_DMCL",
  "event_type_description": "DMCL_REQUEST_CREATED",
  "webhook_notification_code": 11000,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "tenant-tx-1",
  "request_id": 987654,
  "details": {
    "id": 55,
    "code": "chg_abc123",
    "name": "PENDING",
    "status": "PENDING",
    "failed_reason": null,
    "failed_message": null,
    "amount": "10.50"
  }
}

DMCL_REQUEST_SUCCESS (CONFIRMED)

{
  "event_type": "PAYMENT_REQUEST_DMCL",
  "event_type_description": "DMCL_REQUEST_SUCCESS",
  "webhook_notification_code": 11001,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "tenant-tx-1",
  "request_id": 987654,
  "details": {
    "id": 55,
    "code": "chg_abc123",
    "name": "CONFIRMED",
    "status": "CONFIRMED",
    "failed_reason": null,
    "failed_message": null,
    "amount": "10.50"
  }
}

DMCL_REQUEST_FAILED

DECLINED

{
  "event_type": "PAYMENT_REQUEST_DMCL",
  "event_type_description": "DMCL_REQUEST_FAILED",
  "webhook_notification_code": 11002,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "tenant-tx-1",
  "request_id": 987654,
  "details": {
    "id": 55,
    "code": "chg_abc123",
    "name": "DECLINED",
    "status": "DECLINED",
    "failed_reason": "insufficient_funds",
    "failed_message": "insufficient_funds",
    "amount": "10.50"
  }
}

CANCELED

{
  "event_type": "PAYMENT_REQUEST_DMCL",
  "event_type_description": "DMCL_REQUEST_FAILED",
  "webhook_notification_code": 11002,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "tenant-tx-1",
  "request_id": 987654,
  "details": {
    "id": 55,
    "code": "chg_abc123",
    "name": "CANCELED",
    "status": "CANCELED",
    "failed_reason": "customer_cancelled",
    "failed_message": "customer_cancelled",
    "amount": "10.50"
  }
}

FAILED

{
  "event_type": "PAYMENT_REQUEST_DMCL",
  "event_type_description": "DMCL_REQUEST_FAILED",
  "webhook_notification_code": 11002,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "tenant-tx-1",
  "request_id": 987654,
  "details": {
    "id": 55,
    "code": null,
    "name": "FAILED",
    "status": "FAILED",
    "failed_reason": "Error calling Direct Debit API",
    "failed_message": "Error calling Direct Debit API",
    "amount": "10.50"
  }
}

DMCL_REQUEST_CHARGEBACK

{
  "event_type": "PAYMENT_REQUEST_DMCL",
  "event_type_description": "DMCL_REQUEST_CHARGEBACK",
  "webhook_notification_code": 11005,
  "account_id": 9,
  "customer_id": 123,
  "transaction_id": "tenant-tx-1",
  "request_id": 987654,
  "details": {
    "id": 55,
    "code": "chg_abc123",
    "name": "CHARGEBACK",
    "status": "CHARGEBACK",
    "failed_reason": "chargeback_by_customer",
    "failed_message": "chargeback_by_customer",
    "amount": "10.50"
  }
}