using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/webhook-subscriptions/{subscription_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}Permanently removes a webhook subscription from your account. Once deleted, you will no longer receive event notifications at the subscription’s URL. This action cannot be undone, and you’ll need to create a new subscription if you want to receive webhooks at this endpoint again in the future.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/webhook-subscriptions/{subscription_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}webhook-subscriptions.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The ID of the webhook subscription
"ef9496d8-53a5-4aad-8ca2-00eb68334389"
Successful Response