public async Task <IActionResult> CreateWebhook(string storeId, Client.Models.CreateStoreWebhookRequest create)
        {
            ValidateWebhookRequest(create);
            if (!ModelState.IsValid)
            {
                return(this.CreateValidationError(ModelState));
            }
            var webhookId = await StoreRepository.CreateWebhook(CurrentStoreId, ToModel(create));

            var w = await StoreRepository.GetWebhook(CurrentStoreId, webhookId);

            if (w is null)
            {
                return(WebhookNotFound());
            }
            return(Ok(FromModel(w, true)));
        }
        public virtual async Task <StoreWebhookData> CreateWebhook(string storeId, Client.Models.CreateStoreWebhookRequest create, CancellationToken token = default)
        {
            var response = await _httpClient.SendAsync(CreateHttpRequest($"api/v1/stores/{storeId}/webhooks", bodyPayload : create, method : HttpMethod.Post), token);

            return(await HandleResponse <StoreWebhookData>(response));
        }