iap schema sample code