Skip to main content
This reference provides functions and utilities for parsing CLABE numbers into their individual components, along with SPEI operational timing constraints and validation patterns.
For detailed operational information about SPEI including operating hours, processing times, and holiday calendar, see the Payment Methods Reference page.

CLABE Component Structure

CLABE numbers contain four distinct components that can be extracted for processing. For detailed information about CLABE structure and validation algorithms, see CLABE Validation. A quick overview of the CLABE components:
  • Bank Code (positions 1-3): Identifies the financial institution.
  • Branch Code (positions 4-6): Identifies the specific branch.
  • Account Number (positions 7-17): The actual account identifier.
  • Check Digit (position 18): Validation digit calculated using algorithm.

Implementation Examples

Here you can find ready-to-use code examples for common CLABE processing and SPEI validation tasks:
This function parses a CLABE number into its individual components for further processing:
This function checks if SPEI transfers are currently being processed based on Mexico City time and operating schedules:

See also