Contents Transport layer Packet format Application Protocol

eacoin

eacoin.checkin

Request:

<call ...>
    <eacoin method="checkin">
        <cardtype __type="str" />
        <cardid __type="str" />
        <passwd __type="str" />
        <ectype __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status">
        <sequence __type="s16" />
        <acstatus __type="u8" />
        <acid __type="str" />
        <acname __type="str" />
        <balance __type="s32" />
        <sessid __type="str" />
    </eacoin>
</response>

eacoin.checkout

Request:

<call ...>
    <eacoin method="checkout">
        <sessid __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status" />
</response>

eacoin.consume

Request:

<call ...>
    <eacoin method="consume" esid="">
        <sessid __type="str" />
        <sequence __type="s16" />
        <payment __type="s32" />
        <service __type="s16" />
        <itemtype __type="str" />
        <detail __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status">
        <acstatus __type="u8" />
        <autocharge __type="u8" />
        <balance __type="s32" />
    </eacoin>
</response>

eacoin.getbalance

Request:

<call ...>
    <eacoin method="getbalance">
      <sessid __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status">
        <acstatus __type="u8" />
        <balance __type="s32" />
    </eacoin>
</response>

eacoin.getecstatus

Request:

<call ...>
    <eacoin method="getecstatus" />
</call>

Response:

<response>
    <eacoin status="status">
        <ectype __type="str" />
        <ecstatus __type="u8" />
    </eacoin>
</response>

eacoin.touch

Request:

<call ...>
    <eacoin method="touch">
        <sessid __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status" />
</response>

eacoin.opchpass

Request:

<call ...>
    <eacoin method="opchpass">
        <passwd __type="str" />
        <newpasswd __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status" />
</response>

eacoin.opcheckin

Request:

<call ...>
    <eacoin method="opcheckin">
        <passwd __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status">
        <sessid __type="str" />
    </eacoin>
</response>

eacoin.opcheckout

Request:

<call ...>
    <eacoin method="opcheckout">
        <sessid __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status" />
</response>

eacoin.getlog

Request:

<call ...>
    <eacoin method="getlog">
        <sessid __type="str" />
        <logtype __type="str" />
        <ectype __type="str" />
        <target __type="str" />
        <perpage __type="s16" />
        <page __type="s16" />
        <sesstype __type="str" />
    </eacoin>
</call>

Response:

<response>
    <eacoin status="status">
        <processing __type="u8" />
        <topic>
            <sumdate __type="str" />
            <sumfrom __type="str" />
            <sumto __type="str" />

            <today __type="s32" />
            <average __type="s32" />
            <total __type="s32" />
        </topic>
        <summary>
            <items __type="s32" />
        </summary>
        <history>
            <item[]>
                <date __type="str" />
                <consume __type="s32" />
                <service __type="s32" />
                <cardtype __type="str" />
                <cardno __type="str" />
                <title __type="str" />
                <systemid __type="str" />
            </item[]>
        </history>
    </eacoin>
</response>