Retrieve
Fetch a rule
get/v2/auth_rules/{auth_rule_token}
Fetches a V2 Auth rule by its token
Path Parameters
auth_rule_tokenstring
formatuuid
Returns
tokenstring
Auth Rule Token
formatuuid
account_tokensarray of string
Account tokens to which the Auth Rule applies.
card_tokensarray of string
Card tokens to which the Auth Rule applies.
current_versionobject
draft_versionobject
event_streamenum
Accepts one of the following: "AUTHORIZATION", "THREE_DS_AUTHENTICATION"
The type of event stream the Auth rule applies to.
namestring
Auth Rule Name
maxLength1024
program_levelboolean
Whether the Auth Rule applies to all authorizations on the card program.
stateenum
Accepts one of the following: "ACTIVE", "INACTIVE"
The state of the Auth Rule
typeenum
Accepts one of the following: "CONDITIONAL_BLOCK", "VELOCITY_LIMIT", "MERCHANT_LOCK", "CONDITIONAL_3DS_ACTION"
The type of Auth Rule. Effectively determines the event stream during which it will be evaluated.
CONDITIONAL_BLOCK
: AUTHORIZATION event stream.VELOCITY_LIMIT
: AUTHORIZATION event stream.MERCHANT_LOCK
: AUTHORIZATION event stream.CONDITIONAL_3DS_ACTION
: THREE_DS_AUTHENTICATION event stream.
excluded_card_tokensarray of string
optional
Card tokens to which the Auth Rule does not apply.
Request example Request
curl https://api.lithic.com/v2/auth_rules/$AUTH_RULE_TOKEN \
-H "Authorization: $LITHIC_API_KEY"
200 Example
{
"token": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_tokens": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"card_tokens": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"current_version": {
"parameters": {
"conditions": [
{
"attribute": "MCC",
"operation": "IS_ONE_OF",
"value": "string"
}
]
}
},
"draft_version": {
"parameters": {
"conditions": [
{
"attribute": "MCC",
"operation": "IS_ONE_OF",
"value": "string"
}
]
}
},
"event_stream": "AUTHORIZATION",
"name": "name",
"program_level": true,
"state": "ACTIVE",
"type": "CONDITIONAL_BLOCK",
"excluded_card_tokens": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
]
}