C# Webhook Validation of token 404

Hi, I am building . Net Core 7.0 application and I have set up to receive the web hook events. I am trying to validate the token but I am getting a 404 when requesting the token validation. The below code is what I am using. Is this something anyone else has experienced before?

Generating Key. I am using my secret key and it is the correct one for the environment

_secretKey = Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(secretKey+":"))

The call

                ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
                _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", _secretKey);
                _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                var requestUri = $"https://app.snipcart.com/api/requestvalidation/{requestToken}";
                var response = _httpClient.GetAsync(requestUri).Result;

                if (response.IsSuccessStatusCode)

Hey, the token is only valid for an hour, in your dashboard, resending the webhook should create a new token (might need to refresh page)

Hi, I was trying it with a new token, but are they a one use? Also, would this give me a 404 and not a 401. THanks

Hey, it returns a 404 when the token is not found within the parameters : from your account and within the hour. It also seems like it’s a one time use, being deleted once used.

It has been the subject of a few discussions that testing this functionality is quite hard for the users. I’ll add a note to our backlog, I might be able to add a quick feature to make it easier.