Ruleset Assignment
If you have a default ruleset, all your customers and their accounts are automatically assigned to that ruleset. You can also assign rulesets to specific accounts by using our Ruleset Assignment APIs.
This lets you:
- apply a ruleset to all tokens under an account (
accountscope), or - apply a ruleset only to selected token types or token IDs (
tokenscope).
Assign ruleset to account
Use Assign Ruleset to Account API to assign a ruleset to an account.
Account-level assignment
Set the scope level to account to assign a ruleset to all tokens under an account.
{
"ruleset_id": "8e7464c2-d1b1-4f4a-9705-53ed4b74bfb5",
"scope": {
"level": "account"
}
}
Token-level assignment
For level: token, pass either provision_types or provision_ids.
Provision types are:
customer_account_devicefor Own App tokensstatic_tokenfor Virtual Cardsdigital_tokenfor Digital Wallet Tokens
When specifying provision_ids, use:
device_idfor Own App tokensstatic_token_idfor Virtual Cardsdigital_token_idfor Digital Wallet Tokens
- Ruleset for Virtual Cards only
- Ruleset for specific provision IDs
{
"ruleset_id": "8e7464c2-d1b1-4f4a-9705-53ed4b74bfb5",
"scope": {
"level": "token",
"provision_types": ["static_token"]
}
}
{
"ruleset_id": "8e7464c2-d1b1-4f4a-9705-53ed4b74bfb5",
"scope": {
"level": "token",
"provision_ids": ["4b5f39e3-4f30-4f7b-96d2-a02f17fca40f"]
}
}
Assigning multiple rulesets
When multiple rulesets are applied to an account, they are all evaluated during transactions. This also applies when one ruleset is assigned at the account level and another is assigned at the token level: both rulesets apply to that token.
The only exception is the default ruleset, which will only apply if no other ruleset has been applied to the account.
Other operations
- Use List Account Ruleset Assignments API to return all assignments for an account.
- Use Remove Ruleset Assignment API to remove a ruleset assignment from an account.