Checkout: Billing address validation

Hi everyone! Enterprise wants billing address validation.

Main question: Is it possible to validate address1, firstname, lastname and company on Billing Address?

By using checkout ui extension with 2026-.01 API the useBillingAddress hook with preact returns “undefined” for these fields when I log the billingAddress object returned from the hook.

We need to validate that billing address when different from shipping address does not contains fields with non-latin characters, cause this is an issue for ERPs (while Shipping is an issue for carriers systems… but it is resolved)and we cannot use manually orders capture + cleaned or translated billing address to ERP and then capture…

Do you have a solution for this use case?

Hi @Giovanni_Costantini1,

That hook shouldn’t return undefined if you have level 2 protected customer data access. Is your app a public app?

Hi! Thank you so much for your support. I needed to enable level 2 and select fields I need to read. I currently use a “Custom App” and now it works as expected!

Thankssss

Great to hear you were able to work it out!