Betting.WebApi

<back to all web services

FindCashbookEntries

The following routes are available for this service:
GET/cashbooks/entries
FindCashbookEntries Parameters:
NameParameterData TypeRequiredDescription
LocationIdquerystringNo
PeriodFromqueryDateTimeNo
PeriodToqueryDateTimeNo
PaginatedQuery Parameters:
NameParameterData TypeRequiredDescription
CurrentPageformintNo
PageSizeformintNo
PaginatedResult<T> Parameters:
NameParameterData TypeRequiredDescription
DataformList<T>No
CurrentPageformintNo
PageSizeformintNo
TotalItemsformintNo
TotalPagesformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /cashbooks/entries HTTP/1.1 
Host: api.mozzart.ath.cx 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PaginatedResultOfCashbookEntryHM1565vq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Betting.ReadModel">
  <CurrentPage>0</CurrentPage>
  <Data>
    <CashbookEntry>
      <Amount>
        <Amount>0</Amount>
        <Currency>String</Currency>
      </Amount>
      <BookedAt>0001-01-01T00:00:00</BookedAt>
      <ChargedAt>0001-01-01T00:00:00</ChargedAt>
      <Description>String</Description>
      <Id>String</Id>
      <LocationId>String</LocationId>
    </CashbookEntry>
  </Data>
  <PageSize>0</PageSize>
  <TotalItems>0</TotalItems>
  <TotalPages>0</TotalPages>
</PaginatedResultOfCashbookEntryHM1565vq>