Creating Category Rules just requires sending the categoryId that you can recover from the list of Categories.
Example of creating a rule:
{
"description": "Mc Donalds",
"categoryId": "11010000"
}/categories/rulesCreate a single category rule
Creating Category Rules just requires sending the categoryId that you can recover from the list of Categories.
Example of creating a rule:
{
"description": "Mc Donalds",
"categoryId": "11010000"
}Create client category rule
Description of the transaction rule.
Identifier of the category
Transaction type (DEBIT/CREDIT)
Account type (CHECKING_ACCOUNT/CREDIT_CARD)
Type of match used to identify the rule (exact/contains/startsWith/endsWith), if not provided, defaults to 'exact'
{
"description": "uber payment",
"categoryId": "05000000",
"transactionType": "DEBIT",
"accountType": "CHECKING_ACCOUNT"
}Category rule by client id
Description of the transaction rule.
Identifier of the category
Description of the category
Identifier of the client
Transaction type (DEBIT/CREDIT)
Account type (CHECKING_ACCOUNT/CREDIT_CARD)
{
"description": "uber payment",
"category": "Salary/pro-labore",
"categoryId": "05000000",
"clientId": "03cc0eff-4ec5-495c-adb3-1ef9611624fc",
"transactionType": "DEBIT",
"accountType": "CHECKING_ACCOUNT"
}curl -X POST \
'https://api.pluggy.ai/categories/rules' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY' \
-d '{}'{
"description": "uber payment",
"category": "Salary/pro-labore",
"categoryId": "05000000",
"clientId": "03cc0eff-4ec5-495c-adb3-1ef9611624fc",
"transactionType": "DEBIT",
"accountType": "CHECKING_ACCOUNT"
}