This method is used to validate a Wix user's action configuration.
Wix calls this method when a Wix user configures an automation with your action, and when they select the automation from the Your automations list in the Automations dashboard. Wix uses the returned response to display an error message to the Wix user if the action is invalid.
Implementing this method is optional. To implement it, select the method under Service plugin endpoints when editing your action in the app dashboard. If you don't implement this method, Wix assumes that the action is always valid.
As an example, a Wix user configures an action called “Send gift card”, where a gift card is identified by a unique UUID. After some period of time the user deletes the gift card, making the action’s mapping with the current UUID invalid. Validate Configuration checks the validity of the action’s input values, and returns an error to the user if one or more of the values is not valid.