Get Bonus By Bonus Type

Description

Retrieves your bonus statistics per the bonus type.

HTTP Method

GET

Path

/bonuses/stats/pertype

Authentication

Requires an authenticated user.

Parameters

No Parameters.

Error Codes

150001 ( Common )

The endpoint requires an authenticated account

80000 ( Bonus )

An unhandled exception has occured.

Response Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema elementFormDefault="qualified" version="1.0" targetNamespace="http://xsd.poken.com" xmlns:tns="http://xsd.poken.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="bonusTypeStats">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="typeStat" type="tns:totalStatPerType" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="totalStatPerType">
    <xs:sequence>
      <xs:element name="bonusType" type="tns:BonusType"/>
      <xs:element name="bonusWeek" type="xs:double"/>
      <xs:element name="bonusActionCountWeek" type="xs:int"/>
      <xs:element name="bonusMonth" type="xs:double"/>
      <xs:element name="bonusActionCountMonth" type="xs:int"/>
      <xs:element name="bonusTotal" type="xs:double"/>
      <xs:element name="bonusActionCountTotal" type="xs:int"/>
      <xs:element name="bonusPerDay" type="tns:bonusPerDay" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="bonusPerDay">
    <xs:sequence>
      <xs:element name="daysAgoReceived" type="xs:int"/>
      <xs:element name="bonusPoints" type="xs:double"/>
      <xs:element name="bonusActionCount" type="xs:double"/>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="BonusType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="UserLogin"/>
      <xs:enumeration value="UserOrParentBuy"/>
      <xs:enumeration value="GrandParentBuy"/>
      <xs:enumeration value="UserActivatePoken"/>
      <xs:enumeration value="ParentActivatePoken"/>
      <xs:enumeration value="UserPoke"/>
      <xs:enumeration value="ParentPoke"/>
      <xs:enumeration value="GrandParentPoke"/>
      <xs:enumeration value="UserPokeParent"/>
      <xs:enumeration value="ParentPokeUser"/>
      <xs:enumeration value="UserMisc"/>
      <xs:enumeration value="UserProfileInfoSet"/>
      <xs:enumeration value="ObjectCollected"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bonusTypeStats xmlns="http://xsd.poken.com">
  <typeStat>
    <bonusType>UserLogin</bonusType>
    <bonusWeek>1.0</bonusWeek>
    <bonusActionCountWeek>1</bonusActionCountWeek>
    <bonusMonth>4.0</bonusMonth>
    <bonusActionCountMonth>4</bonusActionCountMonth>
    <bonusTotal>42.0</bonusTotal>
    <bonusActionCountTotal>42</bonusActionCountTotal>
    <bonusPerDay>
      <daysAgoReceived>0</daysAgoReceived>
      <bonusPoints>1.0</bonusPoints>
      <bonusActionCount>1.0</bonusActionCount>
    </bonusPerDay>
    <bonusPerDay>
      <daysAgoReceived>24</daysAgoReceived>
      <bonusPoints>1.0</bonusPoints>
      <bonusActionCount>1.0</bonusActionCount>
    </bonusPerDay>
    <bonusPerDay>
      <daysAgoReceived>29</daysAgoReceived>
      <bonusPoints>1.0</bonusPoints>
      <bonusActionCount>1.0</bonusActionCount>
    </bonusPerDay>
    <bonusPerDay>
      <daysAgoReceived>30</daysAgoReceived>
      <bonusPoints>1.0</bonusPoints>
      <bonusActionCount>1.0</bonusActionCount>
    </bonusPerDay>
  </typeStat>
  <typeStat>
    <bonusType>UserOrParentBuy</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>GrandParentBuy</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>UserActivatePoken</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>8.0</bonusTotal>
    <bonusActionCountTotal>1</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>ParentActivatePoken</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>UserPoke</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>85.0</bonusTotal>
    <bonusActionCountTotal>17</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>ParentPoke</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>GrandParentPoke</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>UserPokeParent</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>ParentPokeUser</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>UserMisc</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>0.0</bonusTotal>
    <bonusActionCountTotal>0</bonusActionCountTotal>
  </typeStat>
  <typeStat>
    <bonusType>UserProfileInfoSet</bonusType>
    <bonusWeek>0.0</bonusWeek>
    <bonusActionCountWeek>0</bonusActionCountWeek>
    <bonusMonth>0.0</bonusMonth>
    <bonusActionCountMonth>0</bonusActionCountMonth>
    <bonusTotal>50.0</bonusTotal>
    <bonusActionCountTotal>2</bonusActionCountTotal>
  </typeStat>
</bonusTypeStats>