• API. Remove customer bonus points removeBonus
    The command is designed to remove bonus points from the customer. An email address (parameter email), phone (parameter phone) or unique identifier (parameter uniqId) can identify the customer in the transmitted request.

    Request:

{
   "del":[
      {
         "amount":200.0,
         "guid":"a74b6b5a-8cbb-43e3-b77c-a8ba71d960b2",
         "email":null,
         "phone":"+79257443549",
         "uniqId":null
      },
      {
         "amount":200.0,
         "guid":"3ee70810-2cf4-43f1-aac5-7a173516e46b",
         "email":null,
         "phone":"+7925744354",
         "uniqId":null
      },
      {
         "amount":200.0,
         "guid":"335e6d98-bd4e-4ee2-a083-a0e8a6d30e42",
         "email":"test@email.ru",
         "phone":null,
         "uniqId":null
      },
      {
         "amount":200.0,
         "guid":"5d4e69a4-eeef-4b91-8b42-9f698c02de7d",
         "email":"test1@email.ru",
         "phone":null,
         "uniqId":null
      },
      {
         "amount":200.0,
         "guid":"f0d03709-6522-4e6e-bd96-c4492f9e4597",
         "email":null,
         "phone":null,
         "uniqId":"sdsdaasdfadfas"
      }
   ],
   "typeOfCommand":"removeBonus"
}
Request parameters:
Object RemoveBonus:
Response:

{
   "results":[
      {
         "login":"+79257443549",
         "balance":200.0000,
         "status":"Success",
         "error":null
      },
      {
         "login":"+7925744354",
         "balance":null,
         "status":"Failure",
         "error":{
            "typeOfError":"dataNotValid",
            "description":"The phone format is not correct. Use '+7xxxyyyyyyy'"
         }
      },
      {
         "login":"test@email.ru",
         "balance":200.0000,
         "status":"Success",
         "error":null
      },
      {
         "login":"test1@email.ru",
         "balance":0.0000,
         "status":"Success",
         "error":null
      },
      {
         "login":"sdsdaasdfadfas",
         "balance":200.0000,
         "status":"Success",
         "error":null
      }
   ],
   "status":"Success",
   "error":null
}
Response parameters:
Object RemoveStatus:
Object Error: