POST jxc_api/SmartReplenishment/CreateWHS

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 21:04:51",
    "DeliveryDate": "2024-05-03 21:04:51",
    "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 21:04:51",
    "DeliveryDate": "2024-05-03 21:04:51",
    "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-03T21:04:51.0775923+08:00</Date>
    <DeliveryDate>2024-05-03T21:04:51.0775923+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-03T21:04:51.0775923+08:00</Date>
    <DeliveryDate>2024-05-03T21:04:51.0775923+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

WarehousingModel
NameDescriptionTypeAdditional information
AsId

integer

None.

Id

integer

None.

No

string

None.

PoNo

string

None.

PoId

integer

None.

WhsNo

string

None.

WhsId

integer

None.

BType

BillType

None.

Date

date

None.

DateFmt

string

None.

SettlePeriodId

integer

None.

SettlePeriodName

string

None.

SettlePeriodValue

integer

None.

SettlePeriodType

integer

None.

SettlePeriodDate

date

None.

SettlePeriodDateFmt

string

None.

VendId

integer

None.

VendName

string

None.

VendTaxRate

decimal number

None.

Purchaser

integer

None.

PurchaserName

string

None.

DiscRate

decimal number

None.

DiscAmount

decimal number

None.

Amount

decimal number

None.

QTY

decimal number

None.

AmountFirst

decimal number

None.

Expense

decimal number

None.

AcId

integer

None.

AcName

string

None.

PrintCount

integer

None.

Note

string

None.

OfAmount

decimal number

None.

OfStatus

integer

None.

CreatedByName

string

None.

CreatedDate

date

None.

ModifiedByName

string

None.

ModifiedDate

date

None.

PayStatus

BillStatus

None.

IsChecked

integer

None.

CheckedByName

string

None.

CheckedDate

date

None.

AccountingItemId

integer

None.

AccountingItemName

string

None.

DepartmentId

integer

None.

DepartmentName

string

None.

InvoiceTypeName

string

None.

InvoiceType

integer

None.

Items

Collection of WarehousingEntryModel

None.

ExpenseItems

Collection of ExpenseModel

None.

PayInfoItems

Collection of PayModel

None.

PId

integer

None.

VId

integer

None.

RelaBills

Collection of IdNoPair

None.

CanCreateRelaBills

boolean

None.

RelaPo

IdNoPair

None.

RelaPos

Collection of IdNoPair

None.

RelaWhs

IdNoPair

None.

RelaWhses

Collection of IdNoPair

None.

ShareExpense

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "AsId": 1,
  "Id": 2,
  "No": "sample string 3",
  "PoNo": "sample string 4",
  "PoId": 5,
  "WhsNo": "sample string 6",
  "WhsId": 7,
  "BType": 1010,
  "Date": "2024-05-03 21:04:51",
  "DateFmt": "2024-05-03",
  "SettlePeriodId": 9,
  "SettlePeriodName": "sample string 10",
  "SettlePeriodValue": 11,
  "SettlePeriodType": 12,
  "SettlePeriodDate": "2024-05-03 21:04:51",
  "SettlePeriodDateFmt": "2024-05-03",
  "VendId": 14,
  "VendName": "sample string 15",
  "VendTaxRate": 16.0,
  "Purchaser": 17,
  "PurchaserName": "sample string 18",
  "DiscRate": 19.0,
  "DiscAmount": 20.0,
  "Amount": 21.0,
  "QTY": 22.0,
  "AmountFirst": 23.0,
  "Expense": 24.0,
  "AcId": 25,
  "AcName": "sample string 26",
  "PrintCount": 27,
  "Note": "sample string 28",
  "OfAmount": 29.0,
  "OfStatus": 30,
  "CreatedByName": "sample string 31",
  "CreatedDate": "2024-05-03 21:04:51",
  "ModifiedByName": "sample string 33",
  "ModifiedDate": "2024-05-03 21:04:51",
  "PayStatus": 1010,
  "IsChecked": 35,
  "CheckedByName": "sample string 36",
  "CheckedDate": "2024-05-03 21:04:51",
  "AccountingItemId": 38,
  "AccountingItemName": "sample string 39",
  "DepartmentId": 40,
  "DepartmentName": "sample string 41",
  "InvoiceTypeName": "sample string 42",
  "InvoiceType": 43,
  "Items": [
    null,
    {
      "AsId": 1,
      "Id": 2,
      "RId": 3,
      "WhsId": 4,
      "WhsRId": 5,
      "ProdId": 6,
      "ProdName": "sample string 7",
      "ProdNo": "sample string 8",
      "ProdTaxRate": 1.0,
      "UseMultiUnits": true,
      "UseAp": true,
      "Spec": "sample string 11",
      "ApId": 12,
      "ApName": "sample string 13",
      "CatName": "sample string 14",
      "Brand": "sample string 15",
      "ProdLocation": "sample string 16",
      "WhId": 17,
      "WhName": "sample string 18",
      "RegNo": "sample string 19",
      "LicenseNo": "sample string 20",
      "UnitId": 21,
      "UnitName": "sample string 22",
      "Rate": 23.0,
      "QTY": 24.0,
      "StandardQTY": 25.0,
      "Price": 26.0,
      "PriceTax": 27.0,
      "DiscRate": 28.0,
      "DiscAmount": 29.0,
      "DiscAllocation": 30.0,
      "Amount": 31.0,
      "TaxRate": 32.0,
      "Tax": 33.0,
      "AmountTax": 34.0,
      "Expense": 35.0,
      "Note": "sample string 36",
      "WhsQTY": 37.0,
      "PoId": 38,
      "PoNo": "sample string 39",
      "PoeId": 40,
      "IsNotRelated": true,
      "WhsNo": "sample string 42",
      "BType": 1010,
      "Date": "2024-05-03 21:04:51",
      "VendId": 44,
      "WhsRNo": "sample string 45",
      "QTYR": 46.0,
      "IsChecked": 47,
      "Image": "sample string 48",
      "StrValue1": "sample string 49",
      "StrValue2": "sample string 50",
      "StrValue3": "sample string 51",
      "StrValue4": "sample string 52",
      "StrValue5": "sample string 53",
      "StrValue6": "sample string 54",
      "StrValue7": "sample string 55",
      "StrValue8": "sample string 56",
      "SoId": 57,
      "SoNo": "sample string 58",
      "SoeId": 59,
      "BatchNo": "sample string 60",
      "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": "",
      "LifeTime": 0,
      "LifeTimeUnit": 0,
      "LifeTimeUnitName": "",
      "ExpirationDate": "",
      "SerialEnabled": false,
      "BatchEnabled": false,
      "LifeTimeEnabled": false
    }
  ],
  "ExpenseItems": [
    {
      "ExpId": 1,
      "VendId": 2,
      "VendName": "sample string 3",
      "ExpType": 4,
      "ExpTypeName": "sample string 5",
      "Amount": 6.0,
      "Note": "sample string 7",
      "ShareRule": 1001,
      "PayeeType": 1010,
      "PayeeTypeName": "sample string 8",
      "TaxRate": 9.0,
      "Tax": 10.0,
      "AmountTax": 11.0,
      "CustPayment": 12.0,
      "Id": 1,
      "OrpNo": "sample string 13",
      "PayeeId": 14,
      "PayeeName": "sample string 15",
      "ExpPid": 16,
      "SumCustAmount": 17.0,
      "SumAmount": 18.0,
      "IsCustPayment": true,
      "OrpeId": 20
    },
    {
      "ExpId": 1,
      "VendId": 2,
      "VendName": "sample string 3",
      "ExpType": 4,
      "ExpTypeName": "sample string 5",
      "Amount": 6.0,
      "Note": "sample string 7",
      "ShareRule": 1001,
      "PayeeType": 1010,
      "PayeeTypeName": "sample string 8",
      "TaxRate": 9.0,
      "Tax": 10.0,
      "AmountTax": 11.0,
      "CustPayment": 12.0,
      "Id": 1,
      "OrpNo": "sample string 13",
      "PayeeId": 14,
      "PayeeName": "sample string 15",
      "ExpPid": 16,
      "SumCustAmount": 17.0,
      "SumAmount": 18.0,
      "IsCustPayment": true,
      "OrpeId": 20
    }
  ],
  "PayInfoItems": [
    {
      "Id": 1,
      "AcId": 2,
      "AcName": "sample string 3",
      "Amount": 4.0,
      "PayMethod": 5,
      "PayMethodName": "sample string 6",
      "RefNo": "sample string 7"
    },
    {
      "Id": 1,
      "AcId": 2,
      "AcName": "sample string 3",
      "Amount": 4.0,
      "PayMethod": 5,
      "PayMethodName": "sample string 6",
      "RefNo": "sample string 7"
    }
  ],
  "PId": 44,
  "VId": 45,
  "RelaBills": [
    {
      "Id": 1,
      "No": "sample string 2",
      "BType": 1010
    },
    {
      "Id": 1,
      "No": "sample string 2",
      "BType": 1010
    }
  ],
  "CanCreateRelaBills": true,
  "RelaPo": {
    "Id": 1,
    "No": "sample string 2",
    "BType": 1010
  },
  "RelaPos": [
    {
      "Id": 1,
      "No": "sample string 2",
      "BType": 1010
    },
    {
      "Id": 1,
      "No": "sample string 2",
      "BType": 1010
    }
  ],
  "RelaWhs": {
    "Id": 1,
    "No": "sample string 2",
    "BType": 1010
  },
  "RelaWhses": [
    {
      "Id": 1,
      "No": "sample string 2",
      "BType": 1010
    },
    {
      "Id": 1,
      "No": "sample string 2",
      "BType": 1010
    }
  ],
  "ShareExpense": 47
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.