Get rule
/flows/{flow}/actions/{action}/rules/{rule_id}
curl --request GET \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/flows/{flow}/actions/{action}/rules/{rule_id} \
--header 'Authorization: <authorization>'
{
"action": "select-payment-options",
"conditions": [],
"created_at": "2013-07-16T19:23:00.000+00:00",
"description": "example rule.",
"flow": "checkout",
"id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"merchant_account_id": "default",
"position": "2",
"type": "rule",
"updated_at": "2013-07-16T19:23:00.000+00:00"
}
This endpoint requires the flows.read
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
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.redirect-transaction
- Applies when processing any other transaction.
checkout
, card-transaction
, redirect-transaction
The flow action.
select-payment-options
, decline-early
, route-transaction
, skip-3ds
The unique ID for a rule.
Response
Action for the given rule. Actions can only be used in flows that support them.
- The
checkout
flow only supports theselect-payment-options
action. - The
card-transaction
currently supports theroute-transaction
,skip-3ds
, anddecline-early
actions. - The
redirect-transaction
flow currently only supports theroute-transaction
action.
select-payment-options
, decline-early
, route-transaction
, skip-3ds
One or more conditions that apply for this rule. Each condition needs to match for this rule to go into effect.
The date and time when this buyer was created in our system.
Description of the flow rule.
The name of the Flow.
checkout
, card-transaction
, redirect-transaction
The unique Gr4vy ID for this rule.
The unique ID for a merchant account.
Defines the outcome of a rule in a flow where the result is a list of UUIDs for a service.
The position of the rule in the flow.
The type of this resource. Is always rule
.
rule
The date and time when this buyer was last updated in our system.
curl --request GET \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/flows/{flow}/actions/{action}/rules/{rule_id} \
--header 'Authorization: <authorization>'
{
"action": "select-payment-options",
"conditions": [],
"created_at": "2013-07-16T19:23:00.000+00:00",
"description": "example rule.",
"flow": "checkout",
"id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"merchant_account_id": "default",
"position": "2",
"type": "rule",
"updated_at": "2013-07-16T19:23:00.000+00:00"
}