How do I validate UEN for B2B customers in Magento?
Categories:
Magento Developer Singapore
UEN (Unique Entity Number) is Singapore’s business identifier — mandatory for every registered company, society, and government entity. For B2B Magento stores, UEN validation gates trade-account registration. Two approaches:
- Format validation — regex check on the UEN format (9-digit business, 10-digit local company, 10-digit foreign company, etc.). Catches typos but doesn’t verify existence.
- Live API validation — we wire to ACRA BizFile API (Singapore’s Companies Registry) to verify UEN + entity name + status (active / struck-off). Cached for 24h.
For Adobe Commerce B2B, this slots into company table as a custom attribute. Approval workflow: customer registers with UEN → auto-validate → admin approves → trade pricing unlocked. We also add GST-number validation for input-tax claim invoicing.
Was this helpful?