Get Rules

Get Rules

Get all customer rules or limit the result for a given name only.

Request
URI
GET
https://{api_host}/rules
COPY
Query Parameters
string
name
Optional

The name of a customer rule

Header Parameters
string
sessionid
Required

The authentication token obtained from login API response


Responses
200

OK

Returns GetRulesResponse of type(s) application/json
{
    "rules": [
        {
            "productType": "string",
            "productId": 0,
            "name": "string",
            "targetId": "string",
            "targetType": "string",
            "id": "string"
        }
    ]
}
rules
Optional

rules


401
Returns 401Unauthorized_sessionID of type(s) application/json
{
    "errCode": "GW_LOGIN_REQUIRED",
    "errMessage": "Your session not found or already expired. Please login"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage