POST jxc_api/SellOrder/Check

Request Information

URI Parameters

None.

Body Parameters

SellOrderEditModel
NameDescriptionTypeAdditional information
Id

integer

None.

No

string

None.

CustId

integer

None.

Sales

integer

None.

Date

date

None.

DeliveryDate

date

None.

BType

BillType

None.

DiscRate

decimal number

None.

DiscAmount

decimal number

None.

Amount

decimal number

None.

EditRecvAddr

boolean

None.

Recvr

string

None.

RecvMobile

string

None.

RecvAddress

string

None.

AcId

integer

None.

AmountFirst

decimal number

None.

Note

string

None.

DoId

integer

None.

AccountingItemId

integer

None.

DepartmentId

integer

None.

SettlePeriodId

integer

None.

SettlePeriodDate

date

None.

AutoGenerate

boolean

None.

PayInfoItems

Collection of PayEditModel

None.

Items

Collection of SellOrderEntryEditModel

None.

ForcePassCredit

boolean

None.

NeedJudgePrice

boolean

None.

RelatedPoId

integer

None.

RelatedPoNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "No": "sample string 2",
  "CustId": 3,
  "Sales": 4,
  "Date": "2024-11-25 01:47:58",
  "DeliveryDate": "2024-11-25 01:47:58",
  "BType": 1010,
  "DiscRate": 7.0,
  "DiscAmount": 8.0,
  "Amount": 9.0,
  "EditRecvAddr": true,
  "Recvr": "sample string 11",
  "RecvMobile": "sample string 12",
  "RecvAddress": "sample string 13",
  "AcId": 14,
  "AmountFirst": 15.0,
  "Note": "sample string 16",
  "DoId": 17,
  "AccountingItemId": 18,
  "DepartmentId": 19,
  "SettlePeriodId": 20,
  "SettlePeriodDate": "2024-11-25 01:47:58",
  "AutoGenerate": true,
  "PayInfoItems": [
    {
      "AcId": 1,
      "Amount": 2.0,
      "PayMethod": 3,
      "RefNo": "sample string 4"
    },
    {
      "AcId": 1,
      "Amount": 2.0,
      "PayMethod": 3,
      "RefNo": "sample string 4"
    }
  ],
  "Items": [
    {
      "Id": 1,
      "SoId": 2,
      "CatId": 3,
      "ProdId": 4,
      "ApId": 5,
      "WhId": 6,
      "UnitId": 7,
      "QTY": 8.0,
      "Price": 9.0,
      "PriceTax": 10.0,
      "DiscRate": 11.0,
      "DiscAmount": 12.0,
      "DiscAllocation": 13.0,
      "Amount": 14.0,
      "TaxRate": 15.0,
      "Tax": 16.0,
      "AmountTax": 17.0,
      "IsClosed": true,
      "Note": "sample string 19",
      "StrValue1": "sample string 20",
      "StrValue2": "sample string 21",
      "StrValue3": "sample string 22",
      "StrValue4": "sample string 23",
      "StrValue5": "sample string 24",
      "StrValue6": "sample string 25",
      "StrValue7": "sample string 26",
      "StrValue8": "sample string 27",
      "PoId": 28,
      "PoNo": "sample string 29",
      "PoeId": 30,
      "WhsId": 31,
      "WhsNo": "sample string 32",
      "WhseId": 33
    },
    {
      "Id": 1,
      "SoId": 2,
      "CatId": 3,
      "ProdId": 4,
      "ApId": 5,
      "WhId": 6,
      "UnitId": 7,
      "QTY": 8.0,
      "Price": 9.0,
      "PriceTax": 10.0,
      "DiscRate": 11.0,
      "DiscAmount": 12.0,
      "DiscAllocation": 13.0,
      "Amount": 14.0,
      "TaxRate": 15.0,
      "Tax": 16.0,
      "AmountTax": 17.0,
      "IsClosed": true,
      "Note": "sample string 19",
      "StrValue1": "sample string 20",
      "StrValue2": "sample string 21",
      "StrValue3": "sample string 22",
      "StrValue4": "sample string 23",
      "StrValue5": "sample string 24",
      "StrValue6": "sample string 25",
      "StrValue7": "sample string 26",
      "StrValue8": "sample string 27",
      "PoId": 28,
      "PoNo": "sample string 29",
      "PoeId": 30,
      "WhsId": 31,
      "WhsNo": "sample string 32",
      "WhseId": 33
    }
  ],
  "ForcePassCredit": true,
  "NeedJudgePrice": true,
  "RelatedPoId": 25,
  "RelatedPoNo": "sample string 26"
}

application/xml, text/xml

Sample:
<SellOrderEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Sell.Models">
  <AcId>14</AcId>
  <AccountingItemId>18</AccountingItemId>
  <Amount>9</Amount>
  <AmountFirst>15</AmountFirst>
  <AutoGenerate>true</AutoGenerate>
  <BType>Purchase</BType>
  <CustId>3</CustId>
  <Date>2024-11-25T01:47:58.9491299+08:00</Date>
  <DeliveryDate>2024-11-25T01:47:58.9491299+08:00</DeliveryDate>
  <DepartmentId>19</DepartmentId>
  <DiscAmount>8</DiscAmount>
  <DiscRate>7</DiscRate>
  <DoId>17</DoId>
  <EditRecvAddr>true</EditRecvAddr>
  <ForcePassCredit>true</ForcePassCredit>
  <Id>1</Id>
  <Items>
    <SellOrderEntryEditModel>
      <Amount>14</Amount>
      <AmountTax>17</AmountTax>
      <ApId>5</ApId>
      <CatId>3</CatId>
      <DiscAllocation>13</DiscAllocation>
      <DiscAmount>12</DiscAmount>
      <DiscRate>11</DiscRate>
      <Id>1</Id>
      <IsClosed>true</IsClosed>
      <Note>sample string 19</Note>
      <PoId>28</PoId>
      <PoNo>sample string 29</PoNo>
      <PoeId>30</PoeId>
      <Price>9</Price>
      <PriceTax>10</PriceTax>
      <ProdId>4</ProdId>
      <QTY>8</QTY>
      <SoId>2</SoId>
      <StrValue1>sample string 20</StrValue1>
      <StrValue2>sample string 21</StrValue2>
      <StrValue3>sample string 22</StrValue3>
      <StrValue4>sample string 23</StrValue4>
      <StrValue5>sample string 24</StrValue5>
      <StrValue6>sample string 25</StrValue6>
      <StrValue7>sample string 26</StrValue7>
      <StrValue8>sample string 27</StrValue8>
      <Tax>16</Tax>
      <TaxRate>15</TaxRate>
      <UnitId>7</UnitId>
      <WhId>6</WhId>
      <WhsId>31</WhsId>
      <WhsNo>sample string 32</WhsNo>
      <WhseId>33</WhseId>
    </SellOrderEntryEditModel>
    <SellOrderEntryEditModel>
      <Amount>14</Amount>
      <AmountTax>17</AmountTax>
      <ApId>5</ApId>
      <CatId>3</CatId>
      <DiscAllocation>13</DiscAllocation>
      <DiscAmount>12</DiscAmount>
      <DiscRate>11</DiscRate>
      <Id>1</Id>
      <IsClosed>true</IsClosed>
      <Note>sample string 19</Note>
      <PoId>28</PoId>
      <PoNo>sample string 29</PoNo>
      <PoeId>30</PoeId>
      <Price>9</Price>
      <PriceTax>10</PriceTax>
      <ProdId>4</ProdId>
      <QTY>8</QTY>
      <SoId>2</SoId>
      <StrValue1>sample string 20</StrValue1>
      <StrValue2>sample string 21</StrValue2>
      <StrValue3>sample string 22</StrValue3>
      <StrValue4>sample string 23</StrValue4>
      <StrValue5>sample string 24</StrValue5>
      <StrValue6>sample string 25</StrValue6>
      <StrValue7>sample string 26</StrValue7>
      <StrValue8>sample string 27</StrValue8>
      <Tax>16</Tax>
      <TaxRate>15</TaxRate>
      <UnitId>7</UnitId>
      <WhId>6</WhId>
      <WhsId>31</WhsId>
      <WhsNo>sample string 32</WhsNo>
      <WhseId>33</WhseId>
    </SellOrderEntryEditModel>
  </Items>
  <NeedJudgePrice>true</NeedJudgePrice>
  <No>sample string 2</No>
  <Note>sample string 16</Note>
  <PayInfoItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models">
    <d2p1:PayEditModel>
      <d2p1:AcId>1</d2p1:AcId>
      <d2p1:Amount>2</d2p1:Amount>
      <d2p1:PayMethod>3</d2p1:PayMethod>
      <d2p1:RefNo>sample string 4</d2p1:RefNo>
    </d2p1:PayEditModel>
    <d2p1:PayEditModel>
      <d2p1:AcId>1</d2p1:AcId>
      <d2p1:Amount>2</d2p1:Amount>
      <d2p1:PayMethod>3</d2p1:PayMethod>
      <d2p1:RefNo>sample string 4</d2p1:RefNo>
    </d2p1:PayEditModel>
  </PayInfoItems>
  <RecvAddress>sample string 13</RecvAddress>
  <RecvMobile>sample string 12</RecvMobile>
  <Recvr>sample string 11</Recvr>
  <RelatedPoId>25</RelatedPoId>
  <RelatedPoNo>sample string 26</RelatedPoNo>
  <Sales>4</Sales>
  <SettlePeriodDate>2024-11-25T01:47:58.9491299+08:00</SettlePeriodDate>
  <SettlePeriodId>20</SettlePeriodId>
</SellOrderEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WebApi.IdNoPair
NameDescriptionTypeAdditional information
Id

integer

None.

No

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "No": "sample string 2",
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<IdNoPair xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Models">
  <Id>1</Id>
  <Message>sample string 3</Message>
  <No>sample string 2</No>
</IdNoPair>