GetCardEntry

This method is used to get information about card entries.

Request body

{
"Method": "GetCardEntry",
"PartnerId": 30326,
"BusinessUnitId": 30326,
"IdentifierCard": "800015485",
"PurchaseRuleId": 5
"InitialDate": "2023-10-01", 
"FinalDate": "2023-12-01" 
}

Responses

{
"Success": "true",
"Entries": "[{"EntryId":1434886985,
"Description":"Recarga cartão 800015485","EntryValue":450.00,"PurchaseRuleId": 5,
"EntryDate":"2022-03-03T06:06:41.897","Tags":"5638,Elo,VICTOR SANTIAGO"}]"
}

**Meaning of fields :

**PurchaseRuleId : Identifier of the rule.

GetCardBalance

This method is used to get card balance:

Request body

{
"Method": "GetCardBalance",
"PartnerId": 30326,
"BusinessUnitId": 30326,
"IdentifierCard": "800015485"
}

Responses

 {
    "Success": true,
    "Balance": 0.50,
    "UsageType": 1,
    "Benefits": [
        {
            "PurchaseRuleId": 10,
            "Name": "Pedágio",
            "Balance": 5.00
        },
        {
            "PurchaseRuleId": 8,
            "Name": "Refeição",
            "Balance": 5.50
        }
    ],
    "Message": "Saldo do cartão obtido com sucesso"
}

GetPurchaseRules

This method list the rules that are available in the system.

Request body

{
"Method": "GetPurchaseRules",
"PartnerId": 30326,
"BusinessUnitId": 30326
}

Responses

 {
    "Success": true,
    "Regras": [
        {
            "PurchaseRuleId": 10,
            "Description": "Pedágio",
            "CreationDate": "2022-08-11 10:46:17.627",
            "Values": ["2","4", "5" ]
        },
      {
            "PurchaseRuleId": 12,
            "Description": "Refeição
            "CreationDate": "2022-09-11 10:46:17.627",
            "Values": 6
            "MCC": ["6","9", "3"]
        }
    ],
 
}