Reporting Services

<back to all web services

ReconTotalSummary

Requires Authentication
The following routes are available for this service:
All Verbs/Recon
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
Object = TypeVar('Object')


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReconSummary:
    biz_date: datetime.datetime = datetime.datetime(1, 1, 1)
    computer_name: Optional[str] = None
    serial_number: Optional[str] = None
    transaction_type: Optional[str] = None
    amount: Decimal = decimal.Decimal(0)
    debit: Decimal = decimal.Decimal(0)
    amex: Decimal = decimal.Decimal(0)
    no_amex: Decimal = decimal.Decimal(0)
    debit_count: Decimal = decimal.Decimal(0)
    amex_count: Decimal = decimal.Decimal(0)
    no_amex_count: Decimal = decimal.Decimal(0)
    location_id: Optional[str] = None
    location_name: Optional[str] = None
    recon_amt: Optional[Decimal] = None
    notes: Optional[str] = None
    _id: Optional[str] = None
    in_mongo: bool = False
    route: Optional[str] = None
    unique_trans_i_d: Optional[int] = None
    missing_transaction: bool = False
    total_count: Optional[int] = None
    max_unique_trans_i_d: Optional[int] = None
    computer_date_time: Optional[datetime.datetime] = None
    terminal_date_time: Optional[datetime.datetime] = None
    comp_term_min_diff: Optional[int] = None
    dep_date: Optional[datetime.datetime] = None
    cip_server_trans: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReconSummaryDate:
    biz_date: datetime.datetime = datetime.datetime(1, 1, 1)
    sub_total: Decimal = decimal.Decimal(0)
    debit_total: Decimal = decimal.Decimal(0)
    amex_total: Decimal = decimal.Decimal(0)
    no_amex_total: Decimal = decimal.Decimal(0)
    debit_count: int = 0
    amex_count: int = 0
    no_amex_count: int = 0
    recon_summary: Optional[List[ReconSummary]] = None
    dep_date: Optional[datetime.datetime] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReconTotalSummary:
    recon_summary_date: Optional[List[ReconSummaryDate]] = None
    lid: Optional[str] = None
    location_name: Optional[str] = None

Python ReconTotalSummary DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /Recon HTTP/1.1 
Host: cip-reporting-dev.chargeitpro.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Lid":"String","LocationName":"String"}