• API. Get customer transactions getBonusOperationExt
    The command returns all customer's bonus operations for the specified time period with details on completed orders. Additional results can be filtered by transaction type (reason field).

    Request:

{
   "request":[
      {
         "login":"+79257443549",
         "start":null,
         "end":null,
         "reason":"Bonus_adding"
      },
      {
         "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":"getBonusOperationExt"
}
Request parameters:
Object BonusRequest:
Response:

{
   "customerOperations":[
      {
         "login":"+79257443549",
         "operations":[
            {
               "dateTime":"06.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Bonus accrual",
               "reason":"Bonus_adding",
               "guid":"9549df92-3103-4964-af6a-0b8c3cc99fd6"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Bonus accrual",
               "reason":"Bonus_adding",
               "guid":"9dded35c-9a7d-4901-8288-c4b72ced7737"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":200.0000,
               "reasonType":"Bonus accrual",
               "reason":"Bonus_adding",
               "guid":"9803d32e-8fcd-4984-a736-9f02f726b3c0"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":-200.0000,
               "reasonType":"Bonus redeem",
               "reason":"Bonus_removing",
               "guid":"a74b6b5a-8cbb-43e3-b77c-a8ba71d960b2"
            }
         ],
         "status":"Success",
         "error":null
      },
      {
         "login":"+79257443549",
         "operations":[
            {
               "dateTime":"06.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Bonus accrual",
               "reason":"Bonus_adding",
               "guid":"9549df92-3103-4964-af6a-0b8c3cc99fd6"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Bonus accrual",
               "reason":"Bonus_adding",
               "guid":"9dded35c-9a7d-4901-8288-c4b72ced7737"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":200.0000,
               "reasonType":"Bonus accrual",
               "reason":"Bonus_adding",
               "guid":"9803d32e-8fcd-4984-a736-9f02f726b3c0"
            },
            {
               "dateTime":"20.03.2014",
               "clientId":"+79257443549",
               "amount":-200.0000,
               "reasonType":"Bonus redeem",
               "reason":"Bonus_removing",
               "guid":"a74b6b5a-8cbb-43e3-b77c-a8ba71d960b2"
            }
            {
               "dateTime":"06.03.2014",
               "clientId":"+79257443549",
               "amount":100.0000,
               "reasonType":"Bonus redeem for purchase",
               "reason":"Bonus_purchase",
               "guid":"9549df92-3103-4964-af6a-0b8c3cc99fd6",
               "order":
                {
                    "vendor": "Ozon",
                    "vendorGuid": "5GGFG",
                    "goods" : [
                            {
                            "name" : "TV LG"
                            }
                    ]
                }
            }
 
         ],
         "status":"Success",
         "error":null
      },
      {
         "login":"+79257443549",
         "operations":[
 
 
         ],
         "status":"Success",
         "error":null
      },
      {
         "login":"+7925744354",
         "operations":null,
         "status":"Failure",
         "error":{
            "typeOfError":"loginInvalid",
            "description":"Buyer +7925744354 does not exist"
         }
      }
   ],
   "status":"Success",
   "error":null
}
Response parameters:
ObjectCustomerOperation:
Object Operation:
Object Order:
Object Good:
Object Error: