POST jxc_api/Payment/Update

Request Information

URI Parameters

None.

Body Parameters

PaymentEditModel
NameDescriptionTypeAdditional information
AsId

integer

None.

Date

date

None.

VendId

integer

None.

Id

integer

None.

No

string

None.

Operator

integer

None.

DiscAmount

decimal number

None.

Amount

decimal number

None.

OFAmount

decimal number

None.

OFStatus

BillStatus

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.

VendName

string

None.

CreatedByName

string

None.

CheckedByName

string

None.

ModifiedByName

string

None.

OperatorName

string

None.

IsFromApp

boolean

None.

Items

Collection of PaymentEntryEditModel

None.

Items2

Collection of RPBillEntryEditModel

None.

PrintCount

integer

None.

AutoGenerate

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AsId": 1,
  "Date": "2024-03-28 17:28:59",
  "VendId": 3,
  "Id": 4,
  "No": "sample string 5",
  "Operator": 6,
  "DiscAmount": 7.0,
  "Amount": 8.0,
  "OFAmount": 9.0,
  "OFStatus": 1010,
  "Note": "sample string 10",
  "IsChecked": 11,
  "CreatedBy": 12,
  "CreatedDate": "2024-03-28 17:28:59",
  "ModifiedBy": 14,
  "ModifiedDate": "2024-03-28 17:28:59",
  "CheckedBy": 16,
  "CheckedDate": "2024-03-28 17:28:59",
  "VendName": "sample string 18",
  "CreatedByName": "sample string 19",
  "CheckedByName": "sample string 20",
  "ModifiedByName": "sample string 21",
  "OperatorName": "sample string 22",
  "IsFromApp": true,
  "Items": [
    {
      "AsId": 1,
      "Date": "2024-03-28 17:28:59",
      "VendId": 3,
      "PayId": 4,
      "PayNo": "sample string 5",
      "Id": 6,
      "AcId": 7,
      "Amount": 8.0,
      "PayMethod": 9,
      "PaySn": "sample string 10",
      "Note": "sample string 11",
      "StrValue1": "sample string 12",
      "StrValue2": "sample string 13",
      "StrValue3": "sample string 14",
      "StrValue4": "sample string 15",
      "StrValue5": "sample string 16",
      "StrValue6": "sample string 17",
      "StrValue7": "sample string 18",
      "StrValue8": "sample string 19",
      "AcName": "sample string 20",
      "PayMethodName": "sample string 21"
    },
    {
      "AsId": 1,
      "Date": "2024-03-28 17:28:59",
      "VendId": 3,
      "PayId": 4,
      "PayNo": "sample string 5",
      "Id": 6,
      "AcId": 7,
      "Amount": 8.0,
      "PayMethod": 9,
      "PaySn": "sample string 10",
      "Note": "sample string 11",
      "StrValue1": "sample string 12",
      "StrValue2": "sample string 13",
      "StrValue3": "sample string 14",
      "StrValue4": "sample string 15",
      "StrValue5": "sample string 16",
      "StrValue6": "sample string 17",
      "StrValue7": "sample string 18",
      "StrValue8": "sample string 19",
      "AcName": "sample string 20",
      "PayMethodName": "sample string 21"
    }
  ],
  "Items2": [
    null,
    {
      "AsId": 1,
      "RPDate": "2024-03-28 17:28:59",
      "BType": 1010,
      "PayeeType": 1010,
      "RPId": 3,
      "RPNo": "sample string 4",
      "Id": 5,
      "BillId": 6,
      "BillNo": "sample string 7",
      "BillBType": 1010,
      "BillDate": "2024-03-28 17:28:59",
      "BillOFAmount": 9.0,
      "StrValue1": "sample string 10",
      "StrValue2": "sample string 11",
      "StrValue3": "sample string 12",
      "StrValue4": "sample string 13",
      "StrValue5": "sample string 14",
      "StrValue6": "sample string 15",
      "StrValue7": "sample string 16",
      "StrValue8": "sample string 17",
      "CreatedBy": 18,
      "CreatedDate": "2024-03-28 17:28:59",
      "ModifiedBy": 20,
      "ModifiedDate": "2024-03-28 17:28:59",
      "BillAmount": 22.0,
      "BillOFDAmount": 23.0,
      "BillOFUAmount": 24.0,
      "BillDateFmt": "2024-03-28"
    }
  ],
  "PrintCount": 24,
  "AutoGenerate": true
}

application/xml, text/xml

Sample:
<PaymentEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Money.Models">
  <Amount>8</Amount>
  <AsId>1</AsId>
  <AutoGenerate>true</AutoGenerate>
  <CheckedBy>16</CheckedBy>
  <CheckedByName>sample string 20</CheckedByName>
  <CheckedDate>2024-03-28T17:28:59.0709935+08:00</CheckedDate>
  <CreatedBy>12</CreatedBy>
  <CreatedByName>sample string 19</CreatedByName>
  <CreatedDate>2024-03-28T17:28:59.0709935+08:00</CreatedDate>
  <Date>2024-03-28T17:28:59.0709935+08:00</Date>
  <DiscAmount>7</DiscAmount>
  <Id>4</Id>
  <IsChecked>11</IsChecked>
  <IsFromApp>true</IsFromApp>
  <Items>
    <PaymentEntryEditModel>
      <AcId>7</AcId>
      <AcName>sample string 20</AcName>
      <Amount>8</Amount>
      <AsId>1</AsId>
      <Date>2024-03-28T17:28:59.0709935+08:00</Date>
      <Id>6</Id>
      <Note>sample string 11</Note>
      <PayId>4</PayId>
      <PayMethod>9</PayMethod>
      <PayMethodName>sample string 21</PayMethodName>
      <PayNo>sample string 5</PayNo>
      <PaySn>sample string 10</PaySn>
      <StrValue1>sample string 12</StrValue1>
      <StrValue2>sample string 13</StrValue2>
      <StrValue3>sample string 14</StrValue3>
      <StrValue4>sample string 15</StrValue4>
      <StrValue5>sample string 16</StrValue5>
      <StrValue6>sample string 17</StrValue6>
      <StrValue7>sample string 18</StrValue7>
      <StrValue8>sample string 19</StrValue8>
      <VendId>3</VendId>
    </PaymentEntryEditModel>
    <PaymentEntryEditModel>
      <AcId>7</AcId>
      <AcName>sample string 20</AcName>
      <Amount>8</Amount>
      <AsId>1</AsId>
      <Date>2024-03-28T17:28:59.0709935+08:00</Date>
      <Id>6</Id>
      <Note>sample string 11</Note>
      <PayId>4</PayId>
      <PayMethod>9</PayMethod>
      <PayMethodName>sample string 21</PayMethodName>
      <PayNo>sample string 5</PayNo>
      <PaySn>sample string 10</PaySn>
      <StrValue1>sample string 12</StrValue1>
      <StrValue2>sample string 13</StrValue2>
      <StrValue3>sample string 14</StrValue3>
      <StrValue4>sample string 15</StrValue4>
      <StrValue5>sample string 16</StrValue5>
      <StrValue6>sample string 17</StrValue6>
      <StrValue7>sample string 18</StrValue7>
      <StrValue8>sample string 19</StrValue8>
      <VendId>3</VendId>
    </PaymentEntryEditModel>
  </Items>
  <Items2>
    <RPBillEntryEditModel i:nil="true" />
    <RPBillEntryEditModel>
      <AsId>1</AsId>
      <BType>PreOFRec</BType>
      <BillAmount>22</BillAmount>
      <BillBType>Purchase</BillBType>
      <BillDate>2024-03-28T17:28:59.0709935+08:00</BillDate>
      <BillDateFmt>2024-03-28</BillDateFmt>
      <BillId>6</BillId>
      <BillNo>sample string 7</BillNo>
      <BillOFAmount>9</BillOFAmount>
      <BillOFDAmount>23</BillOFDAmount>
      <BillOFUAmount>24</BillOFUAmount>
      <CreatedBy>18</CreatedBy>
      <CreatedDate>2024-03-28T17:28:59.0709935+08:00</CreatedDate>
      <Id>5</Id>
      <ModifiedBy>20</ModifiedBy>
      <ModifiedDate>2024-03-28T17:28:59.0709935+08:00</ModifiedDate>
      <PayeeType>Customer</PayeeType>
      <RPDate>2024-03-28T17:28:59.0709935+08:00</RPDate>
      <RPId>3</RPId>
      <RPNo>sample string 4</RPNo>
      <StrValue1>sample string 10</StrValue1>
      <StrValue2>sample string 11</StrValue2>
      <StrValue3>sample string 12</StrValue3>
      <StrValue4>sample string 13</StrValue4>
      <StrValue5>sample string 14</StrValue5>
      <StrValue6>sample string 15</StrValue6>
      <StrValue7>sample string 16</StrValue7>
      <StrValue8>sample string 17</StrValue8>
    </RPBillEntryEditModel>
  </Items2>
  <ModifiedBy>14</ModifiedBy>
  <ModifiedByName>sample string 21</ModifiedByName>
  <ModifiedDate>2024-03-28T17:28:59.0709935+08:00</ModifiedDate>
  <No>sample string 5</No>
  <Note>sample string 10</Note>
  <OFAmount>9</OFAmount>
  <OFStatus>None</OFStatus>
  <Operator>6</Operator>
  <OperatorName>sample string 22</OperatorName>
  <PrintCount>24</PrintCount>
  <VendId>3</VendId>
  <VendName>sample string 18</VendName>
</PaymentEditModel>

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