Skip to content
Last updated

Introduction

In this article we provide you with a detailed overview of entity states and their transitions within Belvo's Direct Debit payments product. Each entity reports its current state in the status field. In the diagrams, blue states are in progress, green states are usable or successful, red states failed, gray states ended, and purple states have a chargeback. For each entity, the transitions table lists every arrow in the diagram and what triggers it, and the states table describes each state.

Payment methods

A payment method is the bank account (CLABE) or debit card that Belvo debits for payment requests. Its initial state depends on your payment configuration: pending_validation when penny validation is enabled, and active otherwise.

Penny validation on

Penny validation off

CEP owner matches

You deactivate

Belvo cancels

Belvo cancels

Bank invalidates
the account

CEP mismatch or
penny not sent

pending_validation

active

inactive

canceled

error

Payment method transitions

From To Trigger
(new)pending_validationYou create the payment method and penny validation is enabled in your payment configuration.
(new)activeYou create the payment method and penny validation is not enabled.
pending_validationactiveThe owner information in the CEP matches the customer.
pending_validationerrorThe owner information in the CEP does not match the customer, or Belvo cannot send the penny (failedReason: account_validation_failed). If the penny carries a verification code, Belvo also rejects the consent. See Penny validation with a verification code.
pending_validationcanceledBelvo cancels the payment method.
activeerrorThe financial institution returns a debit response that invalidates the account (for example, the account is closed). For the codes that have this effect, see Bank errors.
activeinactiveYou make a Deactivate a payment method call. This is only possible when no payment request for the payment method is processing.
activecanceledBelvo cancels the payment method.

Payment method states

State Description
pending_validationPenny validation is in progress. Belvo sent a penny (one centavo) through SPEI to the account and compares the owner data in the CEP (Comprobante Electrónico de Pago) with the customer's documentType and documentNumber. For more information, see Penny validation.
activeThe payment method is confirmed and you can use it in payment requests. You receive the payment_method_registration_successful webhook.
errorEnd state. Penny validation was not successful, or the financial institution invalidated the account. The failedReason and failedMessage fields describe the cause. You cannot use the payment method, and its initial payment requests change to canceled. You receive the payment_method_registration_failed webhook.
inactiveEnd state. You deactivated the payment method. You cannot use it in new payment requests. Belvo does not send a webhook for this state.
canceledEnd state. Belvo canceled the payment method. You cannot use it, and its initial payment requests change to failed (failedReason: CANCELED). You receive the payment_method_registration_canceled webhook.

Penny validation with a verification code

When you collect consent with a verification code (for example, with Consent Links), the penny also carries a 6-digit code in the description of the deposit (Codigo Belvo 123456). Your customer enters the code to authorize the debit. The two checks update different entities:

  • The CEP check updates the payment method.
  • The code check updates the consent.
CEP check Code check Payment method Consent
MatchesCorrect codeactiveconfirmed, for a consent that only requires the code. A consent that also requires documents stays awaiting_information until all files are uploaded, then moves to submitted for Belvo's review.
MatchesWrong code 3 times, or the code expires (24 hours after the deposit arrives, for Consent Links)activerejected. The payment method stays active, but you cannot charge it without a confirmed consent: Belvo rejects new payment requests before creating them, or cancels an existing payment request with failedReason: consent_not_confirmed. Collect a new consent to charge it.
Does not matchCode not enterederrorrejected
Does not matchCorrect code, entered before the CEP check finishederrorrejected, even though it was confirmed

To test these outcomes in Sandbox, see Test consent links in Sandbox.

Payment requests

A payment request is a single debit against an active payment method. Processing timelines follow Mexico City time (GMT-6):

  • Created before 15:00: Belvo debits the funds by 20:00 the same day and updates the payment request to successful or failed by 12:00 the next business day.
  • Created after 15:00: Belvo debits the funds by 20:00 the next business day and updates the payment request to successful or failed by 12:00 the business day after that.

For more information, see How long do payments take to process?.

Charge files
sent to bank

Bank confirms
the debit

Customer disputes
(up to 90 days)

Bank reports
an error

Belvo cancels
the method

You cancel, checks fail,
or method changes to error

initial

processing

successful

chargeback

failed

canceled

Payment request transitions

From To Trigger
(new)initialYou create the payment request.
initialprocessingBelvo generates the charge files and sends them to the financial institution.
initialcanceledYou make a Cancel a payment request call (failedReason: canceled_by_merchant).
initialcanceledThe payment request fails Belvo's validation checks (for example, its consent is not confirmed), or Belvo cancels it. For the reasons, see Validation errors.
initialcanceledIts payment method changes to error. The payment request takes the payment method's failedReason.
initialfailedBelvo cancels its payment method (failedReason: CANCELED).
processingsuccessfulThe financial institution confirms the debit.
processingfailedThe financial institution reports an error. For the reasons, see Bank errors.
successfulchargebackThe customer disputes the debit with their financial institution. Under Banco de México CIRCULAR 23/2009, the customer has up to 90 calendar days from the transaction date to dispute it.

Payment request states

State Description
initialThe payment request was created and is waiting to be sent to the financial institution.
processingBelvo sent the charge files and is waiting for a response from the financial institution.
successfulThe financial institution confirmed the payment request and the funds were transferred. You receive the payment_request_successful webhook.
failedEnd state. No funds were transferred. The failedReason and failedMessage fields describe the cause. You receive the payment_request_failed webhook. For the list of reasons, see Bank errors.
canceledEnd state. The payment request was canceled before it reached processing. The failedReason and failedMessage fields describe the cause. You receive the payment_request_canceled webhook.
chargebackEnd state. The financial institution reversed a successful payment request. The chargebackDate and bankChargebackDate fields record when it happened. You receive the payment_request_chargeback webhook. For more information, see Chargebacks.

Consents

A consent is the customer's documented authorization to debit a payment method. A consent must be confirmed before you can make payment requests. Depending on the consent, you upload documents that Belvo reviews, your customer enters the verification code from the penny deposit, or both.

Consents with documents

Belvo reviews submitted documents in 1–2 business days. A consent that also requires a verification code moves to submitted only after all files are uploaded and your customer enters the correct code.

All files
uploaded

Belvo approves
(1–2 business days)

Belvo rejects, or
penny validation fails

Files missing
or invalid

You re-upload
files

Customer claims
a chargeback

awaiting_information

submitted

confirmed

rejected

incomplete_information

received_chargeback

Consents with a verification code

Your customer enters the 6-digit code from the description of the penny deposit, and has 3 attempts. If penny validation fails, Belvo rejects the consent even if your customer already entered the correct code. For the payment method statuses in each case, see Penny validation with a verification code.

Correct code

Wrong code 3 times
or code expired

Penny validation
fails

Penny validation
fails

awaiting_information

confirmed

rejected

From To Trigger
(new)awaiting_informationYou create the consent.
awaiting_informationsubmittedYou upload all required files. If the consent also requires a verification code, your customer must enter the correct code too.
awaiting_informationconfirmedYour customer enters the correct verification code, for consents that only require the code.
awaiting_informationrejectedYour customer enters a wrong verification code 3 times, the code expires, or penny validation fails. See Penny validation with a verification code.
submittedconfirmedBelvo approves the documents.
submittedincomplete_informationOne or more files are missing or invalid.
submittedrejectedBelvo does not approve the documents, or penny validation fails for a consent that also requires a verification code.
incomplete_informationsubmittedYou upload the missing or corrected files.
confirmedreceived_chargebackThe customer claims a chargeback on a payment request.
confirmedrejectedPenny validation fails after your customer entered the correct verification code.
State Description
awaiting_informationThe consent was created. Depending on the consent, you must upload the required files (id_front, id_back, selfie, and contract, or passport, selfie, and contract for a Mexican passport), your customer must enter the verification code, or both.
submittedAll required files are uploaded and Belvo is reviewing them. You receive the consent_submitted webhook.
incomplete_informationOne or more files are missing or invalid. You receive the consent_incomplete_information webhook.
confirmedBelvo accepted the documents, or your customer entered the correct verification code for a consent that only requires the code. The consent is active and you can make payment requests. You receive the consent_confirmed webhook.
rejectedEnd state. The consent was not granted: Belvo rejected the documents, the verification code was not confirmed, or penny validation failed. You receive the consent_rejected webhook.
received_chargebackEnd state. The customer received a chargeback after the consent was confirmed. No webhook is sent for this state.