• API. Получить операции покупателей getBonusOperation
    Команда возвращает все бонусные операции покупателя за указанный промежуток времени.

    Запрос

{
   "request":[
      {
         "login":"+79257443549",
         "start":null,
         "end":null
      },
      {
         "login":"+79257443549",
         "start":"2013-01-01T00:00:00",
         "end":null
      },
      {
         "login":"+79257443549",
         "start":"2013-01-01T00:00:00",
         "end":"2014-01-01T00:00:00"
      },
      {
         "login":"+7925744354",
         "start":"2013-01-01T00:00:00",
         "end":"2014-01-01T00:00:00"
      }
   ],
   "typeOfCommand":"getBonusOperation"
}
Параметры запроса:
Объект BonusRequest:
Ответ:

{
   "customerOperations":[
      {
         "login":"+79257443549",
         "operations":[
            {
               "dateTime":"06.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Начисление бонусов",
               "reason":"Bonus_adding",
               "type_of_money":"bonus",
               "guid":"9549df92-3103-4964-af6a-0b8c3cc99fd6"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Начисление бонусов",
               "reason":"Bonus_adding",
               "type_of_money":"bonus",
               "guid":"9dded35c-9a7d-4901-8288-c4b72ced7737"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":200.0000,
               "reasonType":"Начисление бонусов",
               "reason":"Bonus_adding",
               "type_of_money":"bonus",
               "guid":"9803d32e-8fcd-4984-a736-9f02f726b3c0"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":-200.0000,
               "reasonType":"Списание бонусов",
               "reason":"Bonus_removing",
               "type_of_money":"bonus",
               "guid":"a74b6b5a-8cbb-43e3-b77c-a8ba71d960b2"
            }
         ],
         "status":"Success",
         "error":null
      },
      {
         "login":"+79257443549",
         "operations":[
            {
               "dateTime":"06.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Начисление бонусов",
               "reason":"Bonus_adding",
               "type_of_money":"bonus",
               "guid":"9549df92-3103-4964-af6a-0b8c3cc99fd6"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Начисление бонусов",
               "reason":"Bonus_adding",
               "type_of_money":"bonus",
               "guid":"9dded35c-9a7d-4901-8288-c4b72ced7737"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":200.0000,
               "reasonType":"Начисление бонусов",
               "reason":"Bonus_adding",
               "type_of_money":"bonus",
               "guid":"9803d32e-8fcd-4984-a736-9f02f726b3c0"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":-200.0000,
               "reasonType":"Списание бонусов",
               "reason":"Bonus_removing",
               "type_of_money":"bonus",
               "guid":"a74b6b5a-8cbb-43e3-b77c-a8ba71d960b2"
            }
         ],
         "status":"Success",
         "error":null
      },
      {
         "login":"+79257443549",
         "operations":[
 
 
         ],
         "status":"Success",
         "error":null
      },
      {
         "login":"+7925744354",
         "operations":null,
         "status":"Failure",
         "error":{
            "typeOfError":"loginInvalid",
            "description":"Покупатель +7925744354 не существует"
         }
      }
   ],
   "status":"Success",
   "error":null
}
Параметры ответа:
Объект CustomerOperation:
Объект Operation:
Объект Error: