Checking the winning's of a customer and what has been bet upon

After placing bets and accumulating some winnings, you may need to display the history of the customer -  be it for audit purposes or to create some kind of responsible gambling feature. We have described below how to get the bet history for a particular customer. 

Procedure

  1. Get the customer's history.
    To do that, execute the following request:
    GET https://{gateway}/v1/bets/me?fromDateTime=2012-06-13 00:00:01&toDateTime=2013-06-13 00:00:01&blockSize=20&blockNum=1&sortOrder=A&settled=A
    accept: application/xml
    who-apiKey: l7xx2377fdbb7c534698af6f29a99d22xxxx
    who-secret: 6670583b67bb45ec904a91c943a3xxxx
    who-ticket: TGT-44727-RgYpWOX29OFaSqW7a1vMsOZ2rTOWpNOQpkqkbQWxPsGXv3ocKX-brsuxxxx
  2. Check the response.
    <whoBets>
      <bet>
        <betId>25208</betId>
        <betTypeCode>SGL</betTypeCode>
        <betTypeName>Single</betTypeName>
        <transDateTime>2013-04-18 12:43:36</transDateTime>
        <leg>
          <legType>W</legType>
          <legNum>1</legNum>
          <part>
            <description>s1</description>
            <eachWayDen/>
            <eachWayNum/>
            <eachWayPlaces/>
            <eventDescription>Test Event</eventDescription>
            <eventId>140922</eventId>
            <eventMarketDescription>Win</eventMarketDescription>
            <eventTypeDescription>Churchill</eventTypeDescription>
            <handicap/>
            <outcomeId>3780563</outcomeId>
            <partNum>1</partNum>
            <priceDen/>
            <priceNum/>
            <priceType>S</priceType>
            <result>-</result>
            <startDateTime>2015-12-23 00:00:00</startDateTime>
          </part>
        </leg>
        <numLines>1</numLines>
        <numSelections>1</numSelections>
        <receipt>O/0006859/0000159/F</receipt>
        <settled>N</settled>
        <stake>10.00</stake>
        <stakePerLine>10.00</stakePerLine>
        <status>A</status>
        <freeBetValue>0.00</freeBetValue>
      </bet>
    </whoBets>