POST jxc_api/OtherReceipt/Add

Request Information

URI Parameters

None.

Body Parameters

OtherReceiptEditModel
NameDescriptionTypeAdditional information
AsId

integer

None.

Date

date

None.

CustId

integer

None.

Id

integer

None.

No

string

None.

Operator

integer

None.

Amount

decimal number

None.

DiscAmount

decimal number

None.

AmountFirst

decimal number

None.

AcId

integer

None.

PrintCount

integer

None.

Note

string

None.

IsChecked

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

ModifiedBy

integer

None.

ModifiedDate

date

None.

CheckedBy

integer

None.

CheckedDate

date

None.

OrpType

integer

None.

CustName

string

None.

CreatedByName

string

None.

CheckedByName

string

None.

ModifiedByName

string

None.

AcName

string

None.

AccountingItemId

integer

None.

AccountingItemName

string

None.

DepartmentId

integer

None.

DepartmentName

string

None.

SettlePeriodId

integer

None.

AutoGenerate

boolean

None.

SettlePeriodDate

date

None.

SettlePeriodType

integer

None.

SettlePeriodValue

integer

None.

SettlePeriodName

string

None.

Tax

decimal number

None.

AmountTax

decimal number

None.

PayInfoItems

Collection of PayModel

None.

Items

Collection of OtherReceiptEntryEditModel

None.

ForcePassCredit

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AsId": 1,
  "Date": "2024-03-29 16:39:38",
  "CustId": 3,
  "Id": 4,
  "No": "sample string 5",
  "Operator": 6,
  "Amount": 7.0,
  "DiscAmount": 8.0,
  "AmountFirst": 9.0,
  "AcId": 10,
  "PrintCount": 11,
  "Note": "sample string 12",
  "IsChecked": 13,
  "CreatedBy": 14,
  "CreatedDate": "2024-03-29 16:39:38",
  "ModifiedBy": 16,
  "ModifiedDate": "2024-03-29 16:39:38",
  "CheckedBy": 18,
  "CheckedDate": "2024-03-29 16:39:38",
  "OrpType": 20,
  "CustName": "sample string 21",
  "CreatedByName": "sample string 22",
  "CheckedByName": "sample string 23",
  "ModifiedByName": "sample string 24",
  "AcName": "sample string 25",
  "AccountingItemId": 26,
  "AccountingItemName": "sample string 27",
  "DepartmentId": 28,
  "DepartmentName": "sample string 29",
  "SettlePeriodId": 30,
  "AutoGenerate": true,
  "SettlePeriodDate": "2024-03-29 16:39:38",
  "SettlePeriodType": 33,
  "SettlePeriodValue": 34,
  "SettlePeriodName": "sample string 35",
  "Tax": 36.0,
  "AmountTax": 37.0,
  "PayInfoItems": [
    {
      "Id": 1,
      "AcId": 2,
      "AcName": "sample string 3",
      "Amount": 4.0,
      "PayMethod": 5,
      "PayMethodName": "sample string 6",
      "RefNo": "sample string 7"
    },
    {
      "Id": 1,
      "AcId": 2,
      "AcName": "sample string 3",
      "Amount": 4.0,
      "PayMethod": 5,
      "PayMethodName": "sample string 6",
      "RefNo": "sample string 7"
    }
  ],
  "Items": [
    {
      "AsId": 1,
      "OrpType": 2,
      "OrpDate": "2024-03-29 16:39:38",
      "CustId": 4,
      "OrpId": 5,
      "OrpNo": "sample string 6",
      "Id": 7,
      "Type": 8,
      "AcId": 9,
      "Amount": 10.0,
      "TaxRate": 11.0,
      "Tax": 12.0,
      "AmountTax": 13.0,
      "Note": "sample string 14",
      "ExpId": 15,
      "StrValue1": "sample string 16",
      "StrValue2": "sample string 17",
      "StrValue3": "sample string 18",
      "StrValue4": "sample string 19",
      "StrValue5": "sample string 20",
      "StrValue6": "sample string 21",
      "StrValue7": "sample string 22",
      "StrValue8": "sample string 23",
      "TypeName": "sample string 24"
    },
    {
      "AsId": 1,
      "OrpType": 2,
      "OrpDate": "2024-03-29 16:39:38",
      "CustId": 4,
      "OrpId": 5,
      "OrpNo": "sample string 6",
      "Id": 7,
      "Type": 8,
      "AcId": 9,
      "Amount": 10.0,
      "TaxRate": 11.0,
      "Tax": 12.0,
      "AmountTax": 13.0,
      "Note": "sample string 14",
      "ExpId": 15,
      "StrValue1": "sample string 16",
      "StrValue2": "sample string 17",
      "StrValue3": "sample string 18",
      "StrValue4": "sample string 19",
      "StrValue5": "sample string 20",
      "StrValue6": "sample string 21",
      "StrValue7": "sample string 22",
      "StrValue8": "sample string 23",
      "TypeName": "sample string 24"
    }
  ],
  "ForcePassCredit": true
}

application/xml, text/xml

Sample:
<OtherReceiptEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Money.Models">
  <AcId>10</AcId>
  <AcName>sample string 25</AcName>
  <AccountingItemId>26</AccountingItemId>
  <AccountingItemName>sample string 27</AccountingItemName>
  <Amount>7</Amount>
  <AmountFirst>9</AmountFirst>
  <AmountTax>37</AmountTax>
  <AsId>1</AsId>
  <AutoGenerate>true</AutoGenerate>
  <CheckedBy>18</CheckedBy>
  <CheckedByName>sample string 23</CheckedByName>
  <CheckedDate>2024-03-29T16:39:38.1450179+08:00</CheckedDate>
  <CreatedBy>14</CreatedBy>
  <CreatedByName>sample string 22</CreatedByName>
  <CreatedDate>2024-03-29T16:39:38.1450179+08:00</CreatedDate>
  <CustId>3</CustId>
  <CustName>sample string 21</CustName>
  <Date>2024-03-29T16:39:38.1450179+08:00</Date>
  <DepartmentId>28</DepartmentId>
  <DepartmentName>sample string 29</DepartmentName>
  <DiscAmount>8</DiscAmount>
  <ForcePassCredit>true</ForcePassCredit>
  <Id>4</Id>
  <IsChecked>13</IsChecked>
  <Items>
    <OtherReceiptEntryEditModel>
      <AcId>9</AcId>
      <Amount>10</Amount>
      <AmountTax>13</AmountTax>
      <AsId>1</AsId>
      <CustId>4</CustId>
      <ExpId>15</ExpId>
      <Id>7</Id>
      <Note>sample string 14</Note>
      <OrpDate>2024-03-29T16:39:38.1450179+08:00</OrpDate>
      <OrpId>5</OrpId>
      <OrpNo>sample string 6</OrpNo>
      <OrpType>2</OrpType>
      <StrValue1>sample string 16</StrValue1>
      <StrValue2>sample string 17</StrValue2>
      <StrValue3>sample string 18</StrValue3>
      <StrValue4>sample string 19</StrValue4>
      <StrValue5>sample string 20</StrValue5>
      <StrValue6>sample string 21</StrValue6>
      <StrValue7>sample string 22</StrValue7>
      <StrValue8>sample string 23</StrValue8>
      <Tax>12</Tax>
      <TaxRate>11</TaxRate>
      <Type>8</Type>
      <TypeName>sample string 24</TypeName>
    </OtherReceiptEntryEditModel>
    <OtherReceiptEntryEditModel>
      <AcId>9</AcId>
      <Amount>10</Amount>
      <AmountTax>13</AmountTax>
      <AsId>1</AsId>
      <CustId>4</CustId>
      <ExpId>15</ExpId>
      <Id>7</Id>
      <Note>sample string 14</Note>
      <OrpDate>2024-03-29T16:39:38.1450179+08:00</OrpDate>
      <OrpId>5</OrpId>
      <OrpNo>sample string 6</OrpNo>
      <OrpType>2</OrpType>
      <StrValue1>sample string 16</StrValue1>
      <StrValue2>sample string 17</StrValue2>
      <StrValue3>sample string 18</StrValue3>
      <StrValue4>sample string 19</StrValue4>
      <StrValue5>sample string 20</StrValue5>
      <StrValue6>sample string 21</StrValue6>
      <StrValue7>sample string 22</StrValue7>
      <StrValue8>sample string 23</StrValue8>
      <Tax>12</Tax>
      <TaxRate>11</TaxRate>
      <Type>8</Type>
      <TypeName>sample string 24</TypeName>
    </OtherReceiptEntryEditModel>
  </Items>
  <ModifiedBy>16</ModifiedBy>
  <ModifiedByName>sample string 24</ModifiedByName>
  <ModifiedDate>2024-03-29T16:39:38.1450179+08:00</ModifiedDate>
  <No>sample string 5</No>
  <Note>sample string 12</Note>
  <Operator>6</Operator>
  <OrpType>20</OrpType>
  <PayInfoItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models">
    <d2p1:PayModel>
      <d2p1:AcId>2</d2p1:AcId>
      <d2p1:AcName>sample string 3</d2p1:AcName>
      <d2p1:Amount>4</d2p1:Amount>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PayMethod>5</d2p1:PayMethod>
      <d2p1:PayMethodName>sample string 6</d2p1:PayMethodName>
      <d2p1:RefNo>sample string 7</d2p1:RefNo>
    </d2p1:PayModel>
    <d2p1:PayModel>
      <d2p1:AcId>2</d2p1:AcId>
      <d2p1:AcName>sample string 3</d2p1:AcName>
      <d2p1:Amount>4</d2p1:Amount>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PayMethod>5</d2p1:PayMethod>
      <d2p1:PayMethodName>sample string 6</d2p1:PayMethodName>
      <d2p1:RefNo>sample string 7</d2p1:RefNo>
    </d2p1:PayModel>
  </PayInfoItems>
  <PrintCount>11</PrintCount>
  <SettlePeriodDate>2024-03-29T16:39:38.1450179+08:00</SettlePeriodDate>
  <SettlePeriodId>30</SettlePeriodId>
  <SettlePeriodName>sample string 35</SettlePeriodName>
  <SettlePeriodType>33</SettlePeriodType>
  <SettlePeriodValue>34</SettlePeriodValue>
  <Tax>36</Tax>
</OtherReceiptEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />