List
List rules
get/v2/auth_rules
Lists V2 Auth rules
Query Parameters
account_tokenstring
optional
Only return Auth Rules that are bound to the provided account token.
formatuuid
card_tokenstring
optional
Only return Auth Rules that are bound to the provided card token.
formatuuid
ending_beforestring
optional
A cursor representing an item's token before which a page of results should end. Used to retrieve the previous page of results before this item.
event_streamenum
optional
Accepts one of the following: "AUTHORIZATION", "THREE_DS_AUTHENTICATION"
Only return Auth rules that are executed during the provided event stream.
page_sizenumber
optional
Page size (for pagination).
maximum100
minimum1
scopeenum
optional
Accepts one of the following: "PROGRAM", "ACCOUNT", "CARD"
Only return Auth Rules that are bound to the provided scope.
starting_afterstring
optional
A cursor representing an item's token after which a page of results should begin. Used to retrieve the next page of results after this item.
Returns
dataarray of object
has_moreboolean
Indicates whether there are more Auth Rules to be retrieved by paging through the results.
Request example Request
curl https://api.lithic.com/v2/auth_rules \
-H "Authorization: $LITHIC_API_KEY"
200 Example
{
"data": [
{
"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"
]
}
],
"has_more": true
}