Returns the Bonus points of the specified customers


URL

      

/api/customerbonuspoints/{id}
// Single record by ID

/api/customerbonuspoints?email=<email>
//Bonus points of the customers (can be multiple) with the specified e-mail address

    

Parameter


NameTypBeschreibung
emailStringE-Mail address for which to search


Beispiele

      

api/customerbonuspoints/1
// Get bonus points of customer with id 1

api/customerbonuspoints?email=info@sequens.ch
// Get bonus points of customers with email "info@sequens.ch"

     

Rückgabewert


NameTypBeschreibungBeispielwert
 Result*JSONIf by id:  the current bonus points if the customer
If by email: list of all costumer ids and bonus points associated with that email address
{
"Id"1,
"CustomerBonusPoints"1000.0000
}
 IsSuccessful*boolTrue if call was successfulTrue 
 Message*stringError message if call wasn't successful 


Beispiel

 

//If searching by id
{
    "Result": {
        "Id": 1,
        "CustomerBonusPoints": 1000.0000
    },
    "IsSuccessful": true,
    "Message": ""
}

//If searching by email
{
    "Result": [
        {
            "Id": 1,
            "CustomerBonusPoints": 1000.0000
        },
        {
            "Id": 2,
            "CustomerBonusPoints": 0.0
        }
    ],
    "IsSuccessful": true,
    "Message": ""
}