using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/flows/{flow}/actions/{action}/rules/{rule_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": "unauthorized",
"status": 401,
"message": "No valid API authentication found",
"details": []
}Deletes a given rule from the system.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/flows/{flow}/actions/{action}/rules/{rule_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": "unauthorized",
"status": 401,
"message": "No valid API authentication found",
"details": []
}flows.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The flow name. This can be one of the following.
checkout - Applies during checkout to determine what payment options are shown.card-transaction - Applies when processing a card transaction.non-card-transaction - Applies when processing a gift card only transaction, or a
redirect transaction using the decline-early action.redirect-transaction - Applies when processing any other transaction.
The name of the Flow.checkout, card-transaction, non-card-transaction, redirect-transaction "checkout"
The flow action. Action for the given rule. Actions can only be used in flows that support them.
checkout flow only supports the
select-payment-options action.card-transaction supports the route-transaction,
skip-3ds, and decline-early actions.non-card-transaction flow only supports the
decline-early action.redirect-transaction flow only supports
the route-transaction action.select-payment-options, decline-early, route-transaction, skip-3ds "select-payment-options"
The unique ID for a rule.
"8724fd24-5489-4a5d-90fd-0604df7d3b83"
Returns an empty response.