POST jxc_api/OtherPayment/Add

Request Information

URI Parameters

None.

Body Parameters

OtherPaymentEditModel
NameDescriptionTypeAdditional information
AsId

integer

None.

Date

date

None.

VendId

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.

HasSourceBill

boolean

None.

ShareExpense

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.

VendName

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.

AutoGenerate

boolean

None.

PayInfoItems

Collection of PayModel

None.

Items

Collection of OtherPaymentEntryEditModel

None.

SettlePeriodId

integer

None.

SettlePeriodDate

date

None.

SettlePeriodDateFmt

string

None.

SettlePeriodName

string

None.

ExpenseType

ExpenseType

None.

PayeeType

ContactType

None.

CustomerName

string

None.

Tax

decimal number

None.

AmountTax

decimal number

None.

CustId

integer

None.

CustPayment

decimal number

None.

PayeeId

integer

None.

PayeeName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AsId": 1,
  "Date": "2024-03-29 04:14:13",
  "VendId": 3,
  "Id": 4,
  "No": "sample string 5",
  "Operator": 6,
  "Amount": 7.0,
  "DiscAmount": 8.0,
  "AmountFirst": 9.0,
  "AcId": 10,
  "HasSourceBill": true,
  "ShareExpense": 11,
  "PrintCount": 12,
  "Note": "sample string 13",
  "IsChecked": 14,
  "CreatedBy": 15,
  "CreatedDate": "2024-03-29 04:14:13",
  "ModifiedBy": 17,
  "ModifiedDate": "2024-03-29 04:14:13",
  "CheckedBy": 19,
  "CheckedDate": "2024-03-29 04:14:13",
  "OrpType": 21,
  "VendName": "sample string 22",
  "CreatedByName": "sample string 23",
  "CheckedByName": "sample string 24",
  "ModifiedByName": "sample string 25",
  "AcName": "sample string 26",
  "AccountingItemId": 27,
  "AccountingItemName": "sample string 28",
  "DepartmentId": 29,
  "DepartmentName": "sample string 30",
  "AutoGenerate": true,
  "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 04:14:13",
      "VendId": 4,
      "OrpId": 5,
      "OrpNo": "sample string 6",
      "Id": 7,
      "Type": 8,
      "AcId": 9,
      "Amount": 10.0,
      "Note": "sample string 11",
      "ExpId": 12,
      "StrValue1": "sample string 13",
      "StrValue2": "sample string 14",
      "StrValue3": "sample string 15",
      "StrValue4": "sample string 16",
      "StrValue5": "sample string 17",
      "StrValue6": "sample string 18",
      "StrValue7": "sample string 19",
      "StrValue8": "sample string 20",
      "TypeName": "sample string 21",
      "TaxRate": 22.0,
      "Tax": 23.0,
      "AmountTax": 24.0,
      "CustPayment": 25.0,
      "PayeeId": 26
    },
    {
      "AsId": 1,
      "OrpType": 2,
      "OrpDate": "2024-03-29 04:14:13",
      "VendId": 4,
      "OrpId": 5,
      "OrpNo": "sample string 6",
      "Id": 7,
      "Type": 8,
      "AcId": 9,
      "Amount": 10.0,
      "Note": "sample string 11",
      "ExpId": 12,
      "StrValue1": "sample string 13",
      "StrValue2": "sample string 14",
      "StrValue3": "sample string 15",
      "StrValue4": "sample string 16",
      "StrValue5": "sample string 17",
      "StrValue6": "sample string 18",
      "StrValue7": "sample string 19",
      "StrValue8": "sample string 20",
      "TypeName": "sample string 21",
      "TaxRate": 22.0,
      "Tax": 23.0,
      "AmountTax": 24.0,
      "CustPayment": 25.0,
      "PayeeId": 26
    }
  ],
  "SettlePeriodId": 32,
  "SettlePeriodDate": "2024-03-29 04:14:13",
  "SettlePeriodDateFmt": "2024-03-29",
  "SettlePeriodName": "sample string 34",
  "ExpenseType": 1001,
  "PayeeType": 1010,
  "CustomerName": "sample string 35",
  "Tax": 36.0,
  "AmountTax": 37.0,
  "CustId": 38,
  "CustPayment": 39.0,
  "PayeeId": 40,
  "PayeeName": "sample string 41"
}

application/xml, text/xml

Sample:
<OtherPaymentEditModel 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 26</AcName>
  <AccountingItemId>27</AccountingItemId>
  <AccountingItemName>sample string 28</AccountingItemName>
  <Amount>7</Amount>
  <AmountFirst>9</AmountFirst>
  <AmountTax>37</AmountTax>
  <AsId>1</AsId>
  <AutoGenerate>true</AutoGenerate>
  <CheckedBy>19</CheckedBy>
  <CheckedByName>sample string 24</CheckedByName>
  <CheckedDate>2024-03-29T04:14:13.9258866+08:00</CheckedDate>
  <CreatedBy>15</CreatedBy>
  <CreatedByName>sample string 23</CreatedByName>
  <CreatedDate>2024-03-29T04:14:13.9258866+08:00</CreatedDate>
  <CustId>38</CustId>
  <CustPayment>39</CustPayment>
  <CustomerName>sample string 35</CustomerName>
  <Date>2024-03-29T04:14:13.9258866+08:00</Date>
  <DepartmentId>29</DepartmentId>
  <DepartmentName>sample string 30</DepartmentName>
  <DiscAmount>8</DiscAmount>
  <ExpenseType>PurchaseExp</ExpenseType>
  <Id>4</Id>
  <IsChecked>14</IsChecked>
  <Items>
    <OtherPaymentEntryEditModel>
      <AcId>9</AcId>
      <Amount>10</Amount>
      <AmountTax>24</AmountTax>
      <AsId>1</AsId>
      <CustPayment>25</CustPayment>
      <ExpId>12</ExpId>
      <Id>7</Id>
      <Note>sample string 11</Note>
      <OrpDate>2024-03-29T04:14:13.9258866+08:00</OrpDate>
      <OrpId>5</OrpId>
      <OrpNo>sample string 6</OrpNo>
      <OrpType>2</OrpType>
      <PayeeId>26</PayeeId>
      <StrValue1>sample string 13</StrValue1>
      <StrValue2>sample string 14</StrValue2>
      <StrValue3>sample string 15</StrValue3>
      <StrValue4>sample string 16</StrValue4>
      <StrValue5>sample string 17</StrValue5>
      <StrValue6>sample string 18</StrValue6>
      <StrValue7>sample string 19</StrValue7>
      <StrValue8>sample string 20</StrValue8>
      <Tax>23</Tax>
      <TaxRate>22</TaxRate>
      <Type>8</Type>
      <TypeName>sample string 21</TypeName>
      <VendId>4</VendId>
    </OtherPaymentEntryEditModel>
    <OtherPaymentEntryEditModel>
      <AcId>9</AcId>
      <Amount>10</Amount>
      <AmountTax>24</AmountTax>
      <AsId>1</AsId>
      <CustPayment>25</CustPayment>
      <ExpId>12</ExpId>
      <Id>7</Id>
      <Note>sample string 11</Note>
      <OrpDate>2024-03-29T04:14:13.9258866+08:00</OrpDate>
      <OrpId>5</OrpId>
      <OrpNo>sample string 6</OrpNo>
      <OrpType>2</OrpType>
      <PayeeId>26</PayeeId>
      <StrValue1>sample string 13</StrValue1>
      <StrValue2>sample string 14</StrValue2>
      <StrValue3>sample string 15</StrValue3>
      <StrValue4>sample string 16</StrValue4>
      <StrValue5>sample string 17</StrValue5>
      <StrValue6>sample string 18</StrValue6>
      <StrValue7>sample string 19</StrValue7>
      <StrValue8>sample string 20</StrValue8>
      <Tax>23</Tax>
      <TaxRate>22</TaxRate>
      <Type>8</Type>
      <TypeName>sample string 21</TypeName>
      <VendId>4</VendId>
    </OtherPaymentEntryEditModel>
  </Items>
  <ModifiedBy>17</ModifiedBy>
  <ModifiedByName>sample string 25</ModifiedByName>
  <ModifiedDate>2024-03-29T04:14:13.9258866+08:00</ModifiedDate>
  <No>sample string 5</No>
  <Note>sample string 13</Note>
  <Operator>6</Operator>
  <OrpType>21</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>
  <PayeeId>40</PayeeId>
  <PayeeName>sample string 41</PayeeName>
  <PayeeType>Customer</PayeeType>
  <PrintCount>12</PrintCount>
  <SettlePeriodDate>2024-03-29T04:14:13.9258866+08:00</SettlePeriodDate>
  <SettlePeriodId>32</SettlePeriodId>
  <SettlePeriodName>sample string 34</SettlePeriodName>
  <ShareExpense>11</ShareExpense>
  <Tax>36</Tax>
  <VendId>3</VendId>
  <VendName>sample string 22</VendName>
</OtherPaymentEditModel>

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/" />