POST api/cashBalancing/{id}/banking

Save the banking summary and accounts, and return the accounts total for variance comparison

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Cash balancing header identifier

globally unique identifier

Required

Body Parameters

Cash Balancing Banking summary model, containing banking and accounts

CashBalancingBankingSummary
NameDescriptionTypeAdditional information
Banking

Banking summary record

CashBalancingBanking

None.

Accounts

Banking Account information

Collection of CashBalancingBankingAccount

None.

Request Formats

application/json, text/json

Sample:
{
  "banking": {
    "$id": "2",
    "id": 1,
    "headerIdentifier": "ASIfW5i4j0inuzt87NTGog==",
    "headerIdentifierGuid": "5b1f2201-b898-488f-a7bb-3b7cecd4c6a2",
    "bankName": "sample string 3",
    "expectedCash": 4,
    "cashDeclared": 1,
    "expectedPickup": 5,
    "pickupDeclared": 1,
    "expectedCheque": 6,
    "chequeDeclared": 1
  },
  "accounts": [
    {
      "$id": "3",
      "id": 1,
      "headerIdentifier": "ZVuLMOYm9ky5yKQkmtENag==",
      "headerIdentifierGuid": "308b5b65-26e6-4cf6-b9c8-a4249ad10d6a",
      "storeAccountID": 3,
      "cashDeclared": 4,
      "pickupDeclared": 5,
      "chequeDeclared": 6,
      "accountName": "sample string 7",
      "storeAccount": {
        "$id": "4",
        "id": 1,
        "storeID": 1,
        "accountName": "sample string 2",
        "bsb": "sample string 3",
        "accountNumber": "sample string 4",
        "accountDesignated": true
      }
    },
    {
      "$ref": "3"
    }
  ]
}

application/xml, text/xml

Sample:
<CashBalancingBankingSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Accounting">
  <Accounts>
    <CashBalancingBankingAccount>
      <AccountName>sample string 7</AccountName>
      <CashDeclared>4</CashDeclared>
      <ChequeDeclared>6</ChequeDeclared>
      <HeaderIdentifier>ZVuLMOYm9ky5yKQkmtENag==</HeaderIdentifier>
      <HeaderIdentifierGuid>308b5b65-26e6-4cf6-b9c8-a4249ad10d6a</HeaderIdentifierGuid>
      <ID>1</ID>
      <PickupDeclared>5</PickupDeclared>
      <StoreAccount xmlns:d4p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Stores">
        <d4p1:AccountDesignated>true</d4p1:AccountDesignated>
        <d4p1:AccountName>sample string 2</d4p1:AccountName>
        <d4p1:AccountNumber>sample string 4</d4p1:AccountNumber>
        <d4p1:BSB>sample string 3</d4p1:BSB>
        <d4p1:ID>1</d4p1:ID>
        <d4p1:StoreID>1</d4p1:StoreID>
      </StoreAccount>
      <StoreAccountID>3</StoreAccountID>
    </CashBalancingBankingAccount>
    <CashBalancingBankingAccount>
      <AccountName>sample string 7</AccountName>
      <CashDeclared>4</CashDeclared>
      <ChequeDeclared>6</ChequeDeclared>
      <HeaderIdentifier>ZVuLMOYm9ky5yKQkmtENag==</HeaderIdentifier>
      <HeaderIdentifierGuid>308b5b65-26e6-4cf6-b9c8-a4249ad10d6a</HeaderIdentifierGuid>
      <ID>1</ID>
      <PickupDeclared>5</PickupDeclared>
      <StoreAccount xmlns:d4p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Stores">
        <d4p1:AccountDesignated>true</d4p1:AccountDesignated>
        <d4p1:AccountName>sample string 2</d4p1:AccountName>
        <d4p1:AccountNumber>sample string 4</d4p1:AccountNumber>
        <d4p1:BSB>sample string 3</d4p1:BSB>
        <d4p1:ID>1</d4p1:ID>
        <d4p1:StoreID>1</d4p1:StoreID>
      </StoreAccount>
      <StoreAccountID>3</StoreAccountID>
    </CashBalancingBankingAccount>
  </Accounts>
  <Banking>
    <BankName>sample string 3</BankName>
    <CashDeclared>1</CashDeclared>
    <ChequeDeclared>1</ChequeDeclared>
    <ExpectedCash>4</ExpectedCash>
    <ExpectedCheque>6</ExpectedCheque>
    <ExpectedPickup>5</ExpectedPickup>
    <HeaderIdentifier>ASIfW5i4j0inuzt87NTGog==</HeaderIdentifier>
    <HeaderIdentifierGuid>5b1f2201-b898-488f-a7bb-3b7cecd4c6a2</HeaderIdentifierGuid>
    <ID>1</ID>
    <PickupDeclared>1</PickupDeclared>
  </Banking>
</CashBalancingBankingSummary>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Cash Balancing Banking Account total

CashBalancingBankingAccountTotal
NameDescriptionTypeAdditional information
ID

integer

None.

HeaderIdentifier

Collection of byte

None.

HeaderIdentifierGuid

globally unique identifier

None.

CashDeclared

integer

None.

PickupDeclared

integer

None.

ChequeDeclared

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "headerIdentifier": "NvXik23r4Uq+H4iNNI8EjA==",
  "headerIdentifierGuid": "93e2f536-eb6d-4ae1-be1f-888d348f048c",
  "cashDeclared": 3,
  "pickupDeclared": 4,
  "chequeDeclared": 5
}

application/xml, text/xml

Sample:
<CashBalancingBankingAccountTotal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Accounting">
  <CashDeclared>3</CashDeclared>
  <ChequeDeclared>5</ChequeDeclared>
  <HeaderIdentifier>NvXik23r4Uq+H4iNNI8EjA==</HeaderIdentifier>
  <HeaderIdentifierGuid>93e2f536-eb6d-4ae1-be1f-888d348f048c</HeaderIdentifierGuid>
  <ID>1</ID>
  <PickupDeclared>4</PickupDeclared>
</CashBalancingBankingAccountTotal>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PKb<�Z}��շ5xl/workbook.xml �(�����0��J}�(�P@!`b�ڡ���J~������[7�����ٸWő|Ԥ}�*B�c~��_�Ew�8!J�d�s9`g��BX�$s8A�F{!�����a�1�iC)����!���!q����^w1	�B�7U���bUD�†v��չ�
�R�*�;d}Y�e��!͋4.v������PKb<�Z����	�[Content_Types].xml �(����J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
b<�Z��4''_rels/.rels �(�<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R3e00b9a8d7994325" /></Relationships>PKb<�Z��[��xl/worksheets/sheet1.xml �(���Ks�0F�
�}����$q<��E�� @I6���bO7�d�s�O�?}��s�RբKvpx�����	���[�Ҹ�CU�k��:�TZ_���m�\q�Y+�l3m��EY�9?����NC��%o2m�RU}Q`��?��E�Gh��T��H�6Շ�;��	xƇLc��y�cgH�G��a�H�,��'��O��̮��%��>W�\�N.e?���8m�i����U"S�C�W�E�>���٣G&��fn��f,�cߛ|o���ea�a���?���������&!�X��g���>u��H`ʼ������cf
x��}~8^���1�YK�;�.�������i�2�[�bx܉x�xM��	�&�{�[o{���Ӟ`3M�9��#��ũ_Ȯ��ɵ'�M�e�m���6�rm�.�U��˓�K���%��PKb<�ZA�E��Pxl/_rels/workbook.xml.rels �(����R� �_�ٻ��$�N�^�x�}K�4��g��#�
2�h:��KO���|�����f�2O�	C��,�ҩ����ia���q)߈f��'6v`R�w�Fip�pm�hf�r�<�i�XCÒ�Lr8{��i=J�w�4�M���h���~�H?���T ���X�m�ەV��MU�WS��<a����2�Z�U�=��s}]#���N�x�V#�Lkv�/��D/���PKb<�ZЃc'2E
xl/styles.xml �(��S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v�F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}���LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PKb<�Z���Y��xl/sharedStrings.xml �(���AK�0��JɽM��%J���{ԓx�&�m�Ijf*��V�o�y��l?씼C@�]ˊ,g	8�qǖ==ޤ�%H�i9y-[Y��DJ��a�F���sT#X����E2�`%E��R�@v�<���ƱD��Q�b��������k���N]ÿ���.^�������v1�t��8�@M2�vo��2�����9��"�ͮW��SxY�f�(��N+	Ez�bH���ĐWB�zx|p�	PK-b<�Z}��շ5xl/workbook.xmlPK-b<�Z����	�[Content_Types].xmlPK-
b<�Z��4''V_rels/.relsPK-b<�Z��[���xl/worksheets/sheet1.xmlPK-b<�ZA�E��P�xl/_rels/workbook.xml.relsPK-b<�ZЃc'2E
xl/styles.xmlPK-b<�Z���Y���xl/sharedStrings.xmlPK��	

application/vnd.ms-excel

Sample:
PKb<�Z�q��5xl/workbook.xml �(�����0��J}�(Є
�����k��.�A~���_�[7��������i��>z2T��!�Bj�@��,��z
a��%l߫۾5� �Rf��AYC�r�7�?,r��1�iCiP���c���p�(c���Ll!�*#츈��X�p�[W�3_�e����$�2)�.���>`���_PKb<�Z����	�[Content_Types].xml �(����J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
b<�Zk�,''_rels/.rels �(�<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R582ebefb32ce4023" /></Relationships>PKb<�Z��[��xl/worksheets/sheet1.xml �(���Ks�0F�
�}����$q<��E�� @I6���bO7�d�s�O�?}��s�RբKvpx�����	���[�Ҹ�CU�k��:�TZ_���m�\q�Y+�l3m��EY�9?����NC��%o2m�RU}Q`��?��E�Gh��T��H�6Շ�;��	xƇLc��y�cgH�G��a�H�,��'��O��̮��%��>W�\�N.e?���8m�i����U"S�C�W�E�>���٣G&��fn��f,�cߛ|o���ea�a���?���������&!�X��g���>u��H`ʼ������cf
x��}~8^���1�YK�;�.�������i�2�[�bx܉x�xM��	�&�{�[o{���Ӟ`3M�9��#��ũ_Ȯ��ɵ'�M�e�m���6�rm�.�U��˓�K���%��PKb<�Z�N�Pxl/_rels/workbook.xml.rels �(���AN�0E�b͞�I���ݰa[zǞ�Q;��@�Ƃ#q,@�J,�te���i��o���4�'�i^AY`�M���������v��QS���0'������w�'�pҩ3���B�4�2�|��{�
�K\2��<��������&���?�xL��t��D�e�������F��BZ�Ư���<b����2�t����M#%V�Ue��h)�M/���B���k��˪le�='~�/�PKb<�ZЃc'2E
xl/styles.xml �(��S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v�F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}���LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PKb<�Z���Y��xl/sharedStrings.xml �(���AK�0��JɽM��%J���{ԓx�&�m�Ijf*��V�o�y��l?씼C@�]ˊ,g	8�qǖ==ޤ�%H�i9y-[Y��DJ��a�F���sT#X����E2�`%E��R�@v�<���ƱD��Q�b��������k���N]ÿ���.^�������v1�t��8�@M2�vo��2�����9��"�ͮW��SxY�f�(��N+	Ez�bH���ĐWB�zx|p�	PK-b<�Z�q��5xl/workbook.xmlPK-b<�Z����	��[Content_Types].xmlPK-
b<�Zk�,''T_rels/.relsPK-b<�Z��[���xl/worksheets/sheet1.xmlPK-b<�Z�N�P�xl/_rels/workbook.xml.relsPK-b<�ZЃc'2E
xl/styles.xmlPK-b<�Z���Y���xl/sharedStrings.xmlPK��