POST jxc_api/SmartReplenishment/CreatePO

Request Information

URI Parameters

None.

Body Parameters

Collection of SoGeneratePoModel
NameDescriptionTypeAdditional information
Id

integer

None.

No

string

None.

VendId

integer

None.

Date

date

None.

DeliveryDate

date

None.

BType

BillType

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-05-03 15:06:10",
    "DeliveryDate": "2024-05-03 15:06:10",
    "BType": 1010,
    "ProdId": 6,
    "ApId": 7,
    "WhId": 8,
    "UnitId": 9,
    "QTY": 10.0,
    "Price": 11.0,
    "PriceTax": 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"
  },
  {
    "Id": 1,
    "No": "sample string 2",
    "VendId": 3,
    "Date": "2024-05-03 15:06:10",
    "DeliveryDate": "2024-05-03 15:06:10",
    "BType": 1010,
    "ProdId": 6,
    "ApId": 7,
    "WhId": 8,
    "UnitId": 9,
    "QTY": 10.0,
    "Price": 11.0,
    "PriceTax": 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"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSoGeneratePoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Purchase.Models">
  <SoGeneratePoModel>
    <Amount>13</Amount>
    <AmountTax>16</AmountTax>
    <ApId>7</ApId>
    <BType>Purchase</BType>
    <Date>2024-05-03T15:06:10.021716+08:00</Date>
    <DeliveryDate>2024-05-03T15:06:10.021716+08:00</DeliveryDate>
    <Id>1</Id>
    <No>sample string 2</No>
    <Note>sample string 17</Note>
    <Price>11</Price>
    <PriceTax>12</PriceTax>
    <ProdId>6</ProdId>
    <QTY>10</QTY>
    <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>9</UnitId>
    <VendId>3</VendId>
    <WhId>8</WhId>
  </SoGeneratePoModel>
  <SoGeneratePoModel>
    <Amount>13</Amount>
    <AmountTax>16</AmountTax>
    <ApId>7</ApId>
    <BType>Purchase</BType>
    <Date>2024-05-03T15:06:10.021716+08:00</Date>
    <DeliveryDate>2024-05-03T15:06:10.021716+08:00</DeliveryDate>
    <Id>1</Id>
    <No>sample string 2</No>
    <Note>sample string 17</Note>
    <Price>11</Price>
    <PriceTax>12</PriceTax>
    <ProdId>6</ProdId>
    <QTY>10</QTY>
    <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>9</UnitId>
    <VendId>3</VendId>
    <WhId>8</WhId>
  </SoGeneratePoModel>
</ArrayOfSoGeneratePoModel>

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>