I am trying to build the custom app. The idea is to validate the customer VAT number. I have build the field that registers customer VAT number when creating account. I can see it store VAT in customer notes.
Now I want to validate this VAT is present or not before making checkout. Is this something possible using Checkout UI extension?
Hello @sushilsth21 , @HagenH
Here are the Steps you can follow
If you are using custom app i.e product-listing as show in screenshot below , So you can give permission to that particular app to fetch/upload data.
Steps to give Permission to your app :
Apps->Apps and sales channels->develop apps
select your app name then go configuration
where you can find list of permission for your particular app
1.Admin API access scopes
2.Storefront API integration
thank you so much for your reply. Unfortunately this does not solve the error. The configuration just allows to change the normal acces scope for an app, created by the shop owner. But even then those are normal access scopes. The error message does not hint to the lack of a normal access scope. It says
The shop must have access to checkout server extensions.
and none of the APIs be it Admin or Storefront has this particular access.
I found out how to make it work. You actually have to create a new dev store with that special kind of preview enabled. A normal dev store won’t do. See here.
In the UI you can then enable the respective extension preview: