list_loyalty_schema


GET /list_loyalty_schema

To get the TOTAL COUNT of list of loyalty schemas defined in 365.

Use this method FIRST to determine how many total records there are.

After you call this method, then call the method below, and pass the required paging parameters.

/loyalty_schema?token=XXXXX

field description
token Credentials provided by Powersoft that allow access to the API

Returns

            {
                "api_response": {
                    "response_code": "1",
                    "response_msg": "OK",
                    "response_id": ""
                },
                "total_loyalty_schema": 4
            }
        

GET /list_loyalty_schema

To get list of loyalty schemas defined in 365.

/loyalty_schema?token=XXXXX&page_number=1&page_size=100

field description
token Credentials provided by Powersoft that allow access to the API
page_number The page number in the entire list. eg Page 1
page_size The number of rows to return. eg 100 rows

Returns

            {
            "api_response": {
                "response_code": "1",
                "response_msg": "OK",
                "response_id": ""
            },
            "list_loyalty_schema": [
                {
                    "loyalty_schema_code_365": "V10",
                    "loyalty_schema_name": "VOUCHER 10 EURO",
                    "redemption_number_of_points": 100.00,
                    "reward_amount": 10.0000
                },
                {
                    "loyalty_schema_code_365": "V100",
                    "loyalty_schema_name": "VOUCHER 100",
                    "redemption_number_of_points": 1000.00,
                    "reward_amount": 100.0000
                },
                {
                    "loyalty_schema_code_365": "V15",
                    "loyalty_schema_name": "VOUCHER 15 EURO",
                    "redemption_number_of_points": 150.00,
                    "reward_amount": 15.0000
                },
                {
                    "loyalty_schema_code_365": "V50",
                    "loyalty_schema_name": "VOUCHER 50 EUR",
                    "redemption_number_of_points": 500.00,
                    "reward_amount": 50.0000
                }
            ]
            }