POST jxc_api/SellReturn/Add

Request Information

URI Parameters

None.

Body Parameters

SellDeliveryEditModel
NameDescriptionTypeAdditional information
Id

integer

None.

No

string

None.

CustId

integer

None.

Sales

integer

None.

Date

date

None.

BType

BillType

None.

DiscRate

decimal number

None.

DiscAmount

decimal number

None.

Amount

decimal number

None.

CustPayment

decimal number

None.

AmountFirst

decimal number

None.

AcId

integer

None.

Expense

decimal number

None.

EditRecvAddr

boolean

None.

Recvr

string

None.

RecvMobile

string

None.

RecvAddress

string

None.

Note

string

None.

AccountingItemId

integer

None.

DepartmentId

integer

None.

SettlePeriodId

integer

None.

SettlePeriodDate

date

None.

AutoGenerate

boolean

None.

Items

Collection of SellDeliveryEntryEditModel

None.

ExpenseItems

Collection of ExpenseEditModel

None.

PayInfoItems

Collection of PayEditModel

None.

ForcePassCredit

boolean

None.

NeedJudgePrice

boolean

None.

CustPaymentItems

Collection of CustPaymentEditModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "No": "sample string 2",
  "CustId": 3,
  "Sales": 4,
  "Date": "2024-04-24 01:38:02",
  "BType": 1010,
  "DiscRate": 6.0,
  "DiscAmount": 7.0,
  "Amount": 8.0,
  "CustPayment": 9.0,
  "AmountFirst": 10.0,
  "AcId": 11,
  "Expense": 12.0,
  "EditRecvAddr": true,
  "Recvr": "sample string 14",
  "RecvMobile": "sample string 15",
  "RecvAddress": "sample string 16",
  "Note": "sample string 17",
  "AccountingItemId": 18,
  "DepartmentId": 19,
  "SettlePeriodId": 20,
  "SettlePeriodDate": "2024-04-24 01:38:02",
  "AutoGenerate": true,
  "Items": [
    {
      "Id": 1,
      "DoId": 2,
      "DoNo": "sample string 3",
      "DoDate": "2024-04-24 01:38:02",
      "BType": 1010,
      "CustId": 5,
      "ProdId": 6,
      "CatId": 7,
      "WhId": 8,
      "ApId": 9,
      "UnitId": 10,
      "Rate": 11.0,
      "QTY": 12.0,
      "Price": 13.0,
      "PriceTax": 14.0,
      "DiscRate": 15.0,
      "DiscAmount": 16.0,
      "DiscAllocation": 17.0,
      "Amount": 18.0,
      "TaxRate": 19.0,
      "Tax": 20.0,
      "AmountTax": 21.0,
      "Expense": 22.0,
      "Note": "sample string 23",
      "SoId": 24,
      "SoNo": "sample string 25",
      "SoeId": 26,
      "DoRId": 27,
      "DoRNo": "sample string 28",
      "DoeRId": 29,
      "isNotRelate": true,
      "BatchNo": "sample string 31",
      "SerialNoItems": [
        {
          "FlowId": "sample string 1",
          "SerialNo": "sample string 2",
          "SerialNote": "sample string 3"
        },
        {
          "FlowId": "sample string 1",
          "SerialNo": "sample string 2",
          "SerialNote": "sample string 3"
        }
      ],
      "ProductionDate": "2024-04-24 01:38:02",
      "StrValue1": "sample string 33",
      "StrValue2": "sample string 34",
      "StrValue3": "sample string 35",
      "StrValue4": "sample string 36",
      "StrValue5": "sample string 37",
      "StrValue6": "sample string 38",
      "StrValue7": "sample string 39",
      "StrValue8": "sample string 40"
    },
    {
      "Id": 1,
      "DoId": 2,
      "DoNo": "sample string 3",
      "DoDate": "2024-04-24 01:38:02",
      "BType": 1010,
      "CustId": 5,
      "ProdId": 6,
      "CatId": 7,
      "WhId": 8,
      "ApId": 9,
      "UnitId": 10,
      "Rate": 11.0,
      "QTY": 12.0,
      "Price": 13.0,
      "PriceTax": 14.0,
      "DiscRate": 15.0,
      "DiscAmount": 16.0,
      "DiscAllocation": 17.0,
      "Amount": 18.0,
      "TaxRate": 19.0,
      "Tax": 20.0,
      "AmountTax": 21.0,
      "Expense": 22.0,
      "Note": "sample string 23",
      "SoId": 24,
      "SoNo": "sample string 25",
      "SoeId": 26,
      "DoRId": 27,
      "DoRNo": "sample string 28",
      "DoeRId": 29,
      "isNotRelate": true,
      "BatchNo": "sample string 31",
      "SerialNoItems": [
        {
          "FlowId": "sample string 1",
          "SerialNo": "sample string 2",
          "SerialNote": "sample string 3"
        },
        {
          "FlowId": "sample string 1",
          "SerialNo": "sample string 2",
          "SerialNote": "sample string 3"
        }
      ],
      "ProductionDate": "2024-04-24 01:38:02",
      "StrValue1": "sample string 33",
      "StrValue2": "sample string 34",
      "StrValue3": "sample string 35",
      "StrValue4": "sample string 36",
      "StrValue5": "sample string 37",
      "StrValue6": "sample string 38",
      "StrValue7": "sample string 39",
      "StrValue8": "sample string 40"
    }
  ],
  "ExpenseItems": [
    {
      "VendId": 1,
      "ExpType": 2,
      "Amount": 3.0,
      "Note": "sample string 4",
      "Id": 5,
      "ShareRule": 1001,
      "PayeeType": 1010,
      "TaxRate": 6.0,
      "Tax": 7.0,
      "AmountTax": 8.0,
      "CustPayment": 9.0,
      "SumCustAmount": 10.0,
      "PayeeId": 11,
      "SumAmount": 12.0,
      "ExpPid": 13,
      "IsCustPayment": true
    },
    {
      "VendId": 1,
      "ExpType": 2,
      "Amount": 3.0,
      "Note": "sample string 4",
      "Id": 5,
      "ShareRule": 1001,
      "PayeeType": 1010,
      "TaxRate": 6.0,
      "Tax": 7.0,
      "AmountTax": 8.0,
      "CustPayment": 9.0,
      "SumCustAmount": 10.0,
      "PayeeId": 11,
      "SumAmount": 12.0,
      "ExpPid": 13,
      "IsCustPayment": true
    }
  ],
  "PayInfoItems": [
    {
      "AcId": 1,
      "Amount": 2.0,
      "PayMethod": 3,
      "RefNo": "sample string 4"
    },
    {
      "AcId": 1,
      "Amount": 2.0,
      "PayMethod": 3,
      "RefNo": "sample string 4"
    }
  ],
  "ForcePassCredit": true,
  "NeedJudgePrice": true,
  "CustPaymentItems": [
    {
      "PayeeType": 1010,
      "PayeeId": 1,
      "ExpType": 2,
      "Amount": 3.0,
      "Note": "sample string 4",
      "Id": 5,
      "TaxRate": 6.0,
      "Tax": 7.0,
      "AmountTax": 8.0,
      "SumAmount": 9.0,
      "ExpPid": 10,
      "IsCustPayment": true
    },
    {
      "PayeeType": 1010,
      "PayeeId": 1,
      "ExpType": 2,
      "Amount": 3.0,
      "Note": "sample string 4",
      "Id": 5,
      "TaxRate": 6.0,
      "Tax": 7.0,
      "AmountTax": 8.0,
      "SumAmount": 9.0,
      "ExpPid": 10,
      "IsCustPayment": true
    }
  ]
}

application/xml, text/xml

Sample:
<SellDeliveryEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Sell.Models">
  <AcId>11</AcId>
  <AccountingItemId>18</AccountingItemId>
  <Amount>8</Amount>
  <AmountFirst>10</AmountFirst>
  <AutoGenerate>true</AutoGenerate>
  <BType>Purchase</BType>
  <CustId>3</CustId>
  <CustPayment>9</CustPayment>
  <CustPaymentItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models">
    <d2p1:CustPaymentEditModel>
      <d2p1:Amount>3</d2p1:Amount>
      <d2p1:AmountTax>8</d2p1:AmountTax>
      <d2p1:ExpPid>10</d2p1:ExpPid>
      <d2p1:ExpType>2</d2p1:ExpType>
      <d2p1:Id>5</d2p1:Id>
      <d2p1:IsCustPayment>true</d2p1:IsCustPayment>
      <d2p1:Note>sample string 4</d2p1:Note>
      <d2p1:PayeeId>1</d2p1:PayeeId>
      <d2p1:PayeeType>Customer</d2p1:PayeeType>
      <d2p1:SumAmount>9</d2p1:SumAmount>
      <d2p1:Tax>7</d2p1:Tax>
      <d2p1:TaxRate>6</d2p1:TaxRate>
    </d2p1:CustPaymentEditModel>
    <d2p1:CustPaymentEditModel>
      <d2p1:Amount>3</d2p1:Amount>
      <d2p1:AmountTax>8</d2p1:AmountTax>
      <d2p1:ExpPid>10</d2p1:ExpPid>
      <d2p1:ExpType>2</d2p1:ExpType>
      <d2p1:Id>5</d2p1:Id>
      <d2p1:IsCustPayment>true</d2p1:IsCustPayment>
      <d2p1:Note>sample string 4</d2p1:Note>
      <d2p1:PayeeId>1</d2p1:PayeeId>
      <d2p1:PayeeType>Customer</d2p1:PayeeType>
      <d2p1:SumAmount>9</d2p1:SumAmount>
      <d2p1:Tax>7</d2p1:Tax>
      <d2p1:TaxRate>6</d2p1:TaxRate>
    </d2p1:CustPaymentEditModel>
  </CustPaymentItems>
  <Date>2024-04-24T01:38:02.5165893+08:00</Date>
  <DepartmentId>19</DepartmentId>
  <DiscAmount>7</DiscAmount>
  <DiscRate>6</DiscRate>
  <EditRecvAddr>true</EditRecvAddr>
  <Expense>12</Expense>
  <ExpenseItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.BaseData.Models">
    <d2p1:ExpenseEditModel>
      <d2p1:Amount>3</d2p1:Amount>
      <d2p1:AmountTax>8</d2p1:AmountTax>
      <d2p1:CustPayment>9</d2p1:CustPayment>
      <d2p1:ExpPid>13</d2p1:ExpPid>
      <d2p1:ExpType>2</d2p1:ExpType>
      <d2p1:Id>5</d2p1:Id>
      <d2p1:IsCustPayment>true</d2p1:IsCustPayment>
      <d2p1:Note>sample string 4</d2p1:Note>
      <d2p1:PayeeId>11</d2p1:PayeeId>
      <d2p1:PayeeType>Customer</d2p1:PayeeType>
      <d2p1:ShareRule>Amount</d2p1:ShareRule>
      <d2p1:SumAmount>12</d2p1:SumAmount>
      <d2p1:SumCustAmount>10</d2p1:SumCustAmount>
      <d2p1:Tax>7</d2p1:Tax>
      <d2p1:TaxRate>6</d2p1:TaxRate>
      <d2p1:VendId>1</d2p1:VendId>
    </d2p1:ExpenseEditModel>
    <d2p1:ExpenseEditModel>
      <d2p1:Amount>3</d2p1:Amount>
      <d2p1:AmountTax>8</d2p1:AmountTax>
      <d2p1:CustPayment>9</d2p1:CustPayment>
      <d2p1:ExpPid>13</d2p1:ExpPid>
      <d2p1:ExpType>2</d2p1:ExpType>
      <d2p1:Id>5</d2p1:Id>
      <d2p1:IsCustPayment>true</d2p1:IsCustPayment>
      <d2p1:Note>sample string 4</d2p1:Note>
      <d2p1:PayeeId>11</d2p1:PayeeId>
      <d2p1:PayeeType>Customer</d2p1:PayeeType>
      <d2p1:ShareRule>Amount</d2p1:ShareRule>
      <d2p1:SumAmount>12</d2p1:SumAmount>
      <d2p1:SumCustAmount>10</d2p1:SumCustAmount>
      <d2p1:Tax>7</d2p1:Tax>
      <d2p1:TaxRate>6</d2p1:TaxRate>
      <d2p1:VendId>1</d2p1:VendId>
    </d2p1:ExpenseEditModel>
  </ExpenseItems>
  <ForcePassCredit>true</ForcePassCredit>
  <Id>1</Id>
  <Items>
    <SellDeliveryEntryEditModel>
      <Amount>18</Amount>
      <AmountTax>21</AmountTax>
      <ApId>9</ApId>
      <BType>Purchase</BType>
      <BatchNo>sample string 31</BatchNo>
      <CatId>7</CatId>
      <CustId>5</CustId>
      <DiscAllocation>17</DiscAllocation>
      <DiscAmount>16</DiscAmount>
      <DiscRate>15</DiscRate>
      <DoDate>2024-04-24T01:38:02.5165893+08:00</DoDate>
      <DoId>2</DoId>
      <DoNo>sample string 3</DoNo>
      <DoRId>27</DoRId>
      <DoRNo>sample string 28</DoRNo>
      <DoeRId>29</DoeRId>
      <Expense>22</Expense>
      <Id>1</Id>
      <Note>sample string 23</Note>
      <Price>13</Price>
      <PriceTax>14</PriceTax>
      <ProdId>6</ProdId>
      <ProductionDate>2024-04-24T01:38:02.5165893+08:00</ProductionDate>
      <QTY>12</QTY>
      <Rate>11</Rate>
      <SerialNoItems xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Models.Shared">
        <d4p1:ProductSerialNoEditModel>
          <d4p1:FlowId>sample string 1</d4p1:FlowId>
          <d4p1:SerialNo>sample string 2</d4p1:SerialNo>
          <d4p1:SerialNote>sample string 3</d4p1:SerialNote>
        </d4p1:ProductSerialNoEditModel>
        <d4p1:ProductSerialNoEditModel>
          <d4p1:FlowId>sample string 1</d4p1:FlowId>
          <d4p1:SerialNo>sample string 2</d4p1:SerialNo>
          <d4p1:SerialNote>sample string 3</d4p1:SerialNote>
        </d4p1:ProductSerialNoEditModel>
      </SerialNoItems>
      <SoId>24</SoId>
      <SoNo>sample string 25</SoNo>
      <SoeId>26</SoeId>
      <StrValue1>sample string 33</StrValue1>
      <StrValue2>sample string 34</StrValue2>
      <StrValue3>sample string 35</StrValue3>
      <StrValue4>sample string 36</StrValue4>
      <StrValue5>sample string 37</StrValue5>
      <StrValue6>sample string 38</StrValue6>
      <StrValue7>sample string 39</StrValue7>
      <StrValue8>sample string 40</StrValue8>
      <Tax>20</Tax>
      <TaxRate>19</TaxRate>
      <UnitId>10</UnitId>
      <WhId>8</WhId>
      <isNotRelate>true</isNotRelate>
    </SellDeliveryEntryEditModel>
    <SellDeliveryEntryEditModel>
      <Amount>18</Amount>
      <AmountTax>21</AmountTax>
      <ApId>9</ApId>
      <BType>Purchase</BType>
      <BatchNo>sample string 31</BatchNo>
      <CatId>7</CatId>
      <CustId>5</CustId>
      <DiscAllocation>17</DiscAllocation>
      <DiscAmount>16</DiscAmount>
      <DiscRate>15</DiscRate>
      <DoDate>2024-04-24T01:38:02.5165893+08:00</DoDate>
      <DoId>2</DoId>
      <DoNo>sample string 3</DoNo>
      <DoRId>27</DoRId>
      <DoRNo>sample string 28</DoRNo>
      <DoeRId>29</DoeRId>
      <Expense>22</Expense>
      <Id>1</Id>
      <Note>sample string 23</Note>
      <Price>13</Price>
      <PriceTax>14</PriceTax>
      <ProdId>6</ProdId>
      <ProductionDate>2024-04-24T01:38:02.5165893+08:00</ProductionDate>
      <QTY>12</QTY>
      <Rate>11</Rate>
      <SerialNoItems xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Models.Shared">
        <d4p1:ProductSerialNoEditModel>
          <d4p1:FlowId>sample string 1</d4p1:FlowId>
          <d4p1:SerialNo>sample string 2</d4p1:SerialNo>
          <d4p1:SerialNote>sample string 3</d4p1:SerialNote>
        </d4p1:ProductSerialNoEditModel>
        <d4p1:ProductSerialNoEditModel>
          <d4p1:FlowId>sample string 1</d4p1:FlowId>
          <d4p1:SerialNo>sample string 2</d4p1:SerialNo>
          <d4p1:SerialNote>sample string 3</d4p1:SerialNote>
        </d4p1:ProductSerialNoEditModel>
      </SerialNoItems>
      <SoId>24</SoId>
      <SoNo>sample string 25</SoNo>
      <SoeId>26</SoeId>
      <StrValue1>sample string 33</StrValue1>
      <StrValue2>sample string 34</StrValue2>
      <StrValue3>sample string 35</StrValue3>
      <StrValue4>sample string 36</StrValue4>
      <StrValue5>sample string 37</StrValue5>
      <StrValue6>sample string 38</StrValue6>
      <StrValue7>sample string 39</StrValue7>
      <StrValue8>sample string 40</StrValue8>
      <Tax>20</Tax>
      <TaxRate>19</TaxRate>
      <UnitId>10</UnitId>
      <WhId>8</WhId>
      <isNotRelate>true</isNotRelate>
    </SellDeliveryEntryEditModel>
  </Items>
  <NeedJudgePrice>true</NeedJudgePrice>
  <No>sample string 2</No>
  <Note>sample string 17</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 16</RecvAddress>
  <RecvMobile>sample string 15</RecvMobile>
  <Recvr>sample string 14</Recvr>
  <Sales>4</Sales>
  <SettlePeriodDate>2024-04-24T01:38:02.5165893+08:00</SettlePeriodDate>
  <SettlePeriodId>20</SettlePeriodId>
</SellDeliveryEditModel>

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>