You can use the API at checkout, in customer account pages, in your order management system, or anywhere you collect or edit shipping details. Many merchants validate at checkout. Then they revalidate before label creation for extra protection.