Skip to main content
GET
/
flows
/
{flow}
/
actions
/
{action}
/
outcomes
List flow outcomes
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>"
    }
  ]
}
This endpoint requires the flows.read scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

flow
enum<string>
required

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.
Available options:
checkout,
card-transaction,
non-card-transaction,
redirect-transaction
Example:

"checkout"

action
enum<string>
required

The flow action. Action for the given rule. Actions can only be used in flows that support them.

  • The checkout flow only supports the select-payment-options action.
  • The card-transaction supports the route-transaction, skip-3ds, and decline-early actions.
  • The non-card-transaction flow only supports the decline-early action.
  • The redirect-transaction flow only supports the route-transaction action.
Available options:
select-payment-options,
decline-early,
route-transaction,
skip-3ds
Example:

"select-payment-options"

Query Parameters

locale
string
default:en

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.

Example:

"en-US"

Response

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.

items
(Checkout/Payment Option Outcome · object | Card Transactions/Routing Outcome · object | Redirect Transactions/Routing Outcome · object)[]

A list of outcomes.

Outcome for checkout flow/select payment options action. Each option is a Gr4vy payment option object.

  • Checkout/Payment Option Outcome
  • Card Transactions/Routing Outcome
  • Redirect Transactions/Routing Outcome