using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/flows/{flow}/actions/{action}/outcomes");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"items": [
{
"type": "action",
"id": "card",
"label": "Card",
"active": true,
"group": "Bank",
"icon_url": "<string>"
}
]
}Returns a list of possible outcomes for a given flow action.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/flows/{flow}/actions/{action}/outcomes");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"items": [
{
"type": "action",
"id": "card",
"label": "Card",
"active": true,
"group": "Bank",
"icon_url": "<string>"
}
]
}flows.read 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"
An ISO 639-1 Language Code and optional ISO 3166 Country Code. This locale determines the language for the labels returned for every payment option.
^[a-z]{2}(?:-[A-Z]{2})?$"en-US"
Returns a list of rule outcomes.
Defines the outcome of a rule in a flow.
Currently the outcomes can be a boolean value, or a list of string
values. The meaning of this outcome depends on the action this rule
is triggered for.
A list of outcomes.
Outcome for checkout flow/select payment options action. Each option is a Gr4vy payment option object.
Show child attributes