Custom App - Discounts

Hi I am building a custom app for enabling discounts that are market specific.

So I wanted to know if there are API’s that can be used to run validations in checkout.

Use case : For example ‘TEST’ code should be only applicable to US market and not any other markets.

Is this possible by building a custom app.

Would this Checkout Validation Function API be what you’re looking for?