POST jxc_api/OrderBySale/CreatePOForOBS

Request Information

URI Parameters

None.

Body Parameters

Collection of POForOBSCreateModel
NameDescriptionTypeAdditional information
Id

integer

None.

No

string

None.

VendId

integer

None.

Date

date

None.

DeliveryDate

date

None.

BType

BillType

None.

PrintCount

integer

None.

AmountFirst

decimal number

None.

SoId

integer

None.

SoNo

string

None.

SoeId

integer

None.

Items

Collection of PurchaseOrderEntryEditModel

None.

PoeId

integer

None.

ProdId

integer

None.

ApId

integer

None.

WhId

integer

None.

UnitId

integer

None.

QTY

decimal number

None.

Price

decimal number

None.

PriceTax

decimal number

None.

Amount

decimal number

None.

TaxRate

decimal number

None.

Tax

decimal number

None.

AmountTax

decimal number

None.

Note

string

None.

StrValue1

string

None.

StrValue2

string

None.

StrValue3

string

None.

StrValue4

string

None.

StrValue5

string

None.

StrValue6

string

None.

StrValue7

string

None.

StrValue8

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "No": "sample string 2",
    "VendId": 3,
    "Date": "2024-11-25 02:23:41",
    "DeliveryDate": "2024-11-25 02:23:41",
    "BType": 1010,
    "PrintCount": 6,
    "AmountFirst": 7.0,
    "SoId": 8,
    "SoNo": "sample string 9",
    "SoeId": 10,
    "Items": [
      {
        "Id": 1,
        "PoId": 2,
        "ProdId": 3,
        "ApId": 4,
        "WhId": 5,
        "UnitId": 6,
        "QTY": 7.0,
        "Price": 8.0,
        "PriceTax": 9.0,
        "DiscRate": 10.0,
        "DiscAmount": 11.0,
        "DiscAllocation": 12.0,
        "Amount": 13.0,
        "TaxRate": 14.0,
        "Tax": 15.0,
        "AmountTax": 16.0,
        "Note": "sample string 17",
        "StrValue1": "sample string 18",
        "StrValue2": "sample string 19",
        "StrValue3": "sample string 20",
        "StrValue4": "sample string 21",
        "StrValue5": "sample string 22",
        "StrValue6": "sample string 23",
        "StrValue7": "sample string 24",
        "StrValue8": "sample string 25",
        "SoId": 26,
        "SoNo": "sample string 27",
        "SoeId": 28
      },
      {
        "Id": 1,
        "PoId": 2,
        "ProdId": 3,
        "ApId": 4,
        "WhId": 5,
        "UnitId": 6,
        "QTY": 7.0,
        "Price": 8.0,
        "PriceTax": 9.0,
        "DiscRate": 10.0,
        "DiscAmount": 11.0,
        "DiscAllocation": 12.0,
        "Amount": 13.0,
        "TaxRate": 14.0,
        "Tax": 15.0,
        "AmountTax": 16.0,
        "Note": "sample string 17",
        "StrValue1": "sample string 18",
        "StrValue2": "sample string 19",
        "StrValue3": "sample string 20",
        "StrValue4": "sample string 21",
        "StrValue5": "sample string 22",
        "StrValue6": "sample string 23",
        "StrValue7": "sample string 24",
        "StrValue8": "sample string 25",
        "SoId": 26,
        "SoNo": "sample string 27",
        "SoeId": 28
      }
    ],
    "PoeId": 11,
    "ProdId": 12,
    "ApId": 13,
    "WhId": 14,
    "UnitId": 15,
    "QTY": 16.0,
    "Price": 17.0,
    "PriceTax": 18.0,
    "Amount": 19.0,
    "TaxRate": 20.0,
    "Tax": 21.0,
    "AmountTax": 22.0,
    "Note": "sample string 23",
    "StrValue1": "sample string 24",
    "StrValue2": "sample string 25",
    "StrValue3": "sample string 26",
    "StrValue4": "sample string 27",
    "StrValue5": "sample string 28",
    "StrValue6": "sample string 29",
    "StrValue7": "sample string 30",
    "StrValue8": "sample string 31"
  },
  {
    "Id": 1,
    "No": "sample string 2",
    "VendId": 3,
    "Date": "2024-11-25 02:23:41",
    "DeliveryDate": "2024-11-25 02:23:41",
    "BType": 1010,
    "PrintCount": 6,
    "AmountFirst": 7.0,
    "SoId": 8,
    "SoNo": "sample string 9",
    "SoeId": 10,
    "Items": [
      {
        "Id": 1,
        "PoId": 2,
        "ProdId": 3,
        "ApId": 4,
        "WhId": 5,
        "UnitId": 6,
        "QTY": 7.0,
        "Price": 8.0,
        "PriceTax": 9.0,
        "DiscRate": 10.0,
        "DiscAmount": 11.0,
        "DiscAllocation": 12.0,
        "Amount": 13.0,
        "TaxRate": 14.0,
        "Tax": 15.0,
        "AmountTax": 16.0,
        "Note": "sample string 17",
        "StrValue1": "sample string 18",
        "StrValue2": "sample string 19",
        "StrValue3": "sample string 20",
        "StrValue4": "sample string 21",
        "StrValue5": "sample string 22",
        "StrValue6": "sample string 23",
        "StrValue7": "sample string 24",
        "StrValue8": "sample string 25",
        "SoId": 26,
        "SoNo": "sample string 27",
        "SoeId": 28
      },
      {
        "Id": 1,
        "PoId": 2,
        "ProdId": 3,
        "ApId": 4,
        "WhId": 5,
        "UnitId": 6,
        "QTY": 7.0,
        "Price": 8.0,
        "PriceTax": 9.0,
        "DiscRate": 10.0,
        "DiscAmount": 11.0,
        "DiscAllocation": 12.0,
        "Amount": 13.0,
        "TaxRate": 14.0,
        "Tax": 15.0,
        "AmountTax": 16.0,
        "Note": "sample string 17",
        "StrValue1": "sample string 18",
        "StrValue2": "sample string 19",
        "StrValue3": "sample string 20",
        "StrValue4": "sample string 21",
        "StrValue5": "sample string 22",
        "StrValue6": "sample string 23",
        "StrValue7": "sample string 24",
        "StrValue8": "sample string 25",
        "SoId": 26,
        "SoNo": "sample string 27",
        "SoeId": 28
      }
    ],
    "PoeId": 11,
    "ProdId": 12,
    "ApId": 13,
    "WhId": 14,
    "UnitId": 15,
    "QTY": 16.0,
    "Price": 17.0,
    "PriceTax": 18.0,
    "Amount": 19.0,
    "TaxRate": 20.0,
    "Tax": 21.0,
    "AmountTax": 22.0,
    "Note": "sample string 23",
    "StrValue1": "sample string 24",
    "StrValue2": "sample string 25",
    "StrValue3": "sample string 26",
    "StrValue4": "sample string 27",
    "StrValue5": "sample string 28",
    "StrValue6": "sample string 29",
    "StrValue7": "sample string 30",
    "StrValue8": "sample string 31"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPOForOBSCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Purchase.Models">
  <POForOBSCreateModel>
    <_x003C_AmountFirst_x003E_k__BackingField>7</_x003C_AmountFirst_x003E_k__BackingField>
    <_x003C_AmountTax_x003E_k__BackingField>22</_x003C_AmountTax_x003E_k__BackingField>
    <_x003C_Amount_x003E_k__BackingField>19</_x003C_Amount_x003E_k__BackingField>
    <_x003C_ApId_x003E_k__BackingField>13</_x003C_ApId_x003E_k__BackingField>
    <_x003C_BType_x003E_k__BackingField>Purchase</_x003C_BType_x003E_k__BackingField>
    <_x003C_Date_x003E_k__BackingField>2024-11-25T02:23:41.2405579+08:00</_x003C_Date_x003E_k__BackingField>
    <_x003C_DeliveryDate_x003E_k__BackingField>2024-11-25T02:23:41.2405579+08:00</_x003C_DeliveryDate_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
    <_x003C_Items_x003E_k__BackingField>
      <PurchaseOrderEntryEditModel>
        <Amount>13</Amount>
        <AmountTax>16</AmountTax>
        <ApId>4</ApId>
        <DiscAllocation>12</DiscAllocation>
        <DiscAmount>11</DiscAmount>
        <DiscRate>10</DiscRate>
        <Id>1</Id>
        <Note>sample string 17</Note>
        <PoId>2</PoId>
        <Price>8</Price>
        <PriceTax>9</PriceTax>
        <ProdId>3</ProdId>
        <QTY>7</QTY>
        <SoId>26</SoId>
        <SoNo>sample string 27</SoNo>
        <SoeId>28</SoeId>
        <StrValue1>sample string 18</StrValue1>
        <StrValue2>sample string 19</StrValue2>
        <StrValue3>sample string 20</StrValue3>
        <StrValue4>sample string 21</StrValue4>
        <StrValue5>sample string 22</StrValue5>
        <StrValue6>sample string 23</StrValue6>
        <StrValue7>sample string 24</StrValue7>
        <StrValue8>sample string 25</StrValue8>
        <Tax>15</Tax>
        <TaxRate>14</TaxRate>
        <UnitId>6</UnitId>
        <WhId>5</WhId>
      </PurchaseOrderEntryEditModel>
      <PurchaseOrderEntryEditModel>
        <Amount>13</Amount>
        <AmountTax>16</AmountTax>
        <ApId>4</ApId>
        <DiscAllocation>12</DiscAllocation>
        <DiscAmount>11</DiscAmount>
        <DiscRate>10</DiscRate>
        <Id>1</Id>
        <Note>sample string 17</Note>
        <PoId>2</PoId>
        <Price>8</Price>
        <PriceTax>9</PriceTax>
        <ProdId>3</ProdId>
        <QTY>7</QTY>
        <SoId>26</SoId>
        <SoNo>sample string 27</SoNo>
        <SoeId>28</SoeId>
        <StrValue1>sample string 18</StrValue1>
        <StrValue2>sample string 19</StrValue2>
        <StrValue3>sample string 20</StrValue3>
        <StrValue4>sample string 21</StrValue4>
        <StrValue5>sample string 22</StrValue5>
        <StrValue6>sample string 23</StrValue6>
        <StrValue7>sample string 24</StrValue7>
        <StrValue8>sample string 25</StrValue8>
        <Tax>15</Tax>
        <TaxRate>14</TaxRate>
        <UnitId>6</UnitId>
        <WhId>5</WhId>
      </PurchaseOrderEntryEditModel>
    </_x003C_Items_x003E_k__BackingField>
    <_x003C_No_x003E_k__BackingField>sample string 2</_x003C_No_x003E_k__BackingField>
    <_x003C_Note_x003E_k__BackingField>sample string 23</_x003C_Note_x003E_k__BackingField>
    <_x003C_PoeId_x003E_k__BackingField>11</_x003C_PoeId_x003E_k__BackingField>
    <_x003C_PriceTax_x003E_k__BackingField>18</_x003C_PriceTax_x003E_k__BackingField>
    <_x003C_Price_x003E_k__BackingField>17</_x003C_Price_x003E_k__BackingField>
    <_x003C_PrintCount_x003E_k__BackingField>6</_x003C_PrintCount_x003E_k__BackingField>
    <_x003C_ProdId_x003E_k__BackingField>12</_x003C_ProdId_x003E_k__BackingField>
    <_x003C_QTY_x003E_k__BackingField>16</_x003C_QTY_x003E_k__BackingField>
    <_x003C_SoId_x003E_k__BackingField>8</_x003C_SoId_x003E_k__BackingField>
    <_x003C_SoNo_x003E_k__BackingField>sample string 9</_x003C_SoNo_x003E_k__BackingField>
    <_x003C_SoeId_x003E_k__BackingField>10</_x003C_SoeId_x003E_k__BackingField>
    <_x003C_StrValue1_x003E_k__BackingField>sample string 24</_x003C_StrValue1_x003E_k__BackingField>
    <_x003C_StrValue2_x003E_k__BackingField>sample string 25</_x003C_StrValue2_x003E_k__BackingField>
    <_x003C_StrValue3_x003E_k__BackingField>sample string 26</_x003C_StrValue3_x003E_k__BackingField>
    <_x003C_StrValue4_x003E_k__BackingField>sample string 27</_x003C_StrValue4_x003E_k__BackingField>
    <_x003C_StrValue5_x003E_k__BackingField>sample string 28</_x003C_StrValue5_x003E_k__BackingField>
    <_x003C_StrValue6_x003E_k__BackingField>sample string 29</_x003C_StrValue6_x003E_k__BackingField>
    <_x003C_StrValue7_x003E_k__BackingField>sample string 30</_x003C_StrValue7_x003E_k__BackingField>
    <_x003C_StrValue8_x003E_k__BackingField>sample string 31</_x003C_StrValue8_x003E_k__BackingField>
    <_x003C_TaxRate_x003E_k__BackingField>20</_x003C_TaxRate_x003E_k__BackingField>
    <_x003C_Tax_x003E_k__BackingField>21</_x003C_Tax_x003E_k__BackingField>
    <_x003C_UnitId_x003E_k__BackingField>15</_x003C_UnitId_x003E_k__BackingField>
    <_x003C_VendId_x003E_k__BackingField>3</_x003C_VendId_x003E_k__BackingField>
    <_x003C_WhId_x003E_k__BackingField>14</_x003C_WhId_x003E_k__BackingField>
  </POForOBSCreateModel>
  <POForOBSCreateModel>
    <_x003C_AmountFirst_x003E_k__BackingField>7</_x003C_AmountFirst_x003E_k__BackingField>
    <_x003C_AmountTax_x003E_k__BackingField>22</_x003C_AmountTax_x003E_k__BackingField>
    <_x003C_Amount_x003E_k__BackingField>19</_x003C_Amount_x003E_k__BackingField>
    <_x003C_ApId_x003E_k__BackingField>13</_x003C_ApId_x003E_k__BackingField>
    <_x003C_BType_x003E_k__BackingField>Purchase</_x003C_BType_x003E_k__BackingField>
    <_x003C_Date_x003E_k__BackingField>2024-11-25T02:23:41.2405579+08:00</_x003C_Date_x003E_k__BackingField>
    <_x003C_DeliveryDate_x003E_k__BackingField>2024-11-25T02:23:41.2405579+08:00</_x003C_DeliveryDate_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
    <_x003C_Items_x003E_k__BackingField>
      <PurchaseOrderEntryEditModel>
        <Amount>13</Amount>
        <AmountTax>16</AmountTax>
        <ApId>4</ApId>
        <DiscAllocation>12</DiscAllocation>
        <DiscAmount>11</DiscAmount>
        <DiscRate>10</DiscRate>
        <Id>1</Id>
        <Note>sample string 17</Note>
        <PoId>2</PoId>
        <Price>8</Price>
        <PriceTax>9</PriceTax>
        <ProdId>3</ProdId>
        <QTY>7</QTY>
        <SoId>26</SoId>
        <SoNo>sample string 27</SoNo>
        <SoeId>28</SoeId>
        <StrValue1>sample string 18</StrValue1>
        <StrValue2>sample string 19</StrValue2>
        <StrValue3>sample string 20</StrValue3>
        <StrValue4>sample string 21</StrValue4>
        <StrValue5>sample string 22</StrValue5>
        <StrValue6>sample string 23</StrValue6>
        <StrValue7>sample string 24</StrValue7>
        <StrValue8>sample string 25</StrValue8>
        <Tax>15</Tax>
        <TaxRate>14</TaxRate>
        <UnitId>6</UnitId>
        <WhId>5</WhId>
      </PurchaseOrderEntryEditModel>
      <PurchaseOrderEntryEditModel>
        <Amount>13</Amount>
        <AmountTax>16</AmountTax>
        <ApId>4</ApId>
        <DiscAllocation>12</DiscAllocation>
        <DiscAmount>11</DiscAmount>
        <DiscRate>10</DiscRate>
        <Id>1</Id>
        <Note>sample string 17</Note>
        <PoId>2</PoId>
        <Price>8</Price>
        <PriceTax>9</PriceTax>
        <ProdId>3</ProdId>
        <QTY>7</QTY>
        <SoId>26</SoId>
        <SoNo>sample string 27</SoNo>
        <SoeId>28</SoeId>
        <StrValue1>sample string 18</StrValue1>
        <StrValue2>sample string 19</StrValue2>
        <StrValue3>sample string 20</StrValue3>
        <StrValue4>sample string 21</StrValue4>
        <StrValue5>sample string 22</StrValue5>
        <StrValue6>sample string 23</StrValue6>
        <StrValue7>sample string 24</StrValue7>
        <StrValue8>sample string 25</StrValue8>
        <Tax>15</Tax>
        <TaxRate>14</TaxRate>
        <UnitId>6</UnitId>
        <WhId>5</WhId>
      </PurchaseOrderEntryEditModel>
    </_x003C_Items_x003E_k__BackingField>
    <_x003C_No_x003E_k__BackingField>sample string 2</_x003C_No_x003E_k__BackingField>
    <_x003C_Note_x003E_k__BackingField>sample string 23</_x003C_Note_x003E_k__BackingField>
    <_x003C_PoeId_x003E_k__BackingField>11</_x003C_PoeId_x003E_k__BackingField>
    <_x003C_PriceTax_x003E_k__BackingField>18</_x003C_PriceTax_x003E_k__BackingField>
    <_x003C_Price_x003E_k__BackingField>17</_x003C_Price_x003E_k__BackingField>
    <_x003C_PrintCount_x003E_k__BackingField>6</_x003C_PrintCount_x003E_k__BackingField>
    <_x003C_ProdId_x003E_k__BackingField>12</_x003C_ProdId_x003E_k__BackingField>
    <_x003C_QTY_x003E_k__BackingField>16</_x003C_QTY_x003E_k__BackingField>
    <_x003C_SoId_x003E_k__BackingField>8</_x003C_SoId_x003E_k__BackingField>
    <_x003C_SoNo_x003E_k__BackingField>sample string 9</_x003C_SoNo_x003E_k__BackingField>
    <_x003C_SoeId_x003E_k__BackingField>10</_x003C_SoeId_x003E_k__BackingField>
    <_x003C_StrValue1_x003E_k__BackingField>sample string 24</_x003C_StrValue1_x003E_k__BackingField>
    <_x003C_StrValue2_x003E_k__BackingField>sample string 25</_x003C_StrValue2_x003E_k__BackingField>
    <_x003C_StrValue3_x003E_k__BackingField>sample string 26</_x003C_StrValue3_x003E_k__BackingField>
    <_x003C_StrValue4_x003E_k__BackingField>sample string 27</_x003C_StrValue4_x003E_k__BackingField>
    <_x003C_StrValue5_x003E_k__BackingField>sample string 28</_x003C_StrValue5_x003E_k__BackingField>
    <_x003C_StrValue6_x003E_k__BackingField>sample string 29</_x003C_StrValue6_x003E_k__BackingField>
    <_x003C_StrValue7_x003E_k__BackingField>sample string 30</_x003C_StrValue7_x003E_k__BackingField>
    <_x003C_StrValue8_x003E_k__BackingField>sample string 31</_x003C_StrValue8_x003E_k__BackingField>
    <_x003C_TaxRate_x003E_k__BackingField>20</_x003C_TaxRate_x003E_k__BackingField>
    <_x003C_Tax_x003E_k__BackingField>21</_x003C_Tax_x003E_k__BackingField>
    <_x003C_UnitId_x003E_k__BackingField>15</_x003C_UnitId_x003E_k__BackingField>
    <_x003C_VendId_x003E_k__BackingField>3</_x003C_VendId_x003E_k__BackingField>
    <_x003C_WhId_x003E_k__BackingField>14</_x003C_WhId_x003E_k__BackingField>
  </POForOBSCreateModel>
</ArrayOfPOForOBSCreateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>