POST jxc_api/Warehousing/GenerateWhsFromPo

Request Information

URI Parameters

None.

Body Parameters

GenerateWhsRequest
NameDescriptionTypeAdditional information
RIds

Collection of integer

None.

RDetails

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RIds": [
    1,
    2
  ],
  "RDetails": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<GenerateWhsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Purchase.Models">
  <RDetails xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RDetails>
  <RIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RIds>
</GenerateWhsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BatchWarehousingResult
NameDescriptionTypeAdditional information
WhsBills

Collection of WarehousingModel

None.

BillIds

string

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "WhsBills": [
    {
      "AsId": 1,
      "Id": 2,
      "No": "sample string 3",
      "PoNo": "sample string 4",
      "PoId": 5,
      "WhsNo": "sample string 6",
      "WhsId": 7,
      "BType": 1010,
      "Date": "2024-11-25 02:59:41",
      "DateFmt": "2024-11-25",
      "SettlePeriodId": 9,
      "SettlePeriodName": "sample string 10",
      "SettlePeriodValue": 11,
      "SettlePeriodType": 12,
      "SettlePeriodDate": "2024-11-25 02:59:41",
      "SettlePeriodDateFmt": "2024-11-25",
      "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-11-25 02:59:41",
      "ModifiedByName": "sample string 33",
      "ModifiedDate": "2024-11-25 02:59:41",
      "PayStatus": 1010,
      "IsChecked": 35,
      "CheckedByName": "sample string 36",
      "CheckedDate": "2024-11-25 02:59:41",
      "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-11-25 02:59:41",
          "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,
          "ExpDateCalMethodType": 0,
          "LifeTimeUnitName": "",
          "ExpirationDate": null,
          "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
        }
      ],
      "RelatedBills": [
        {
          "Id": 1,
          "No": "sample string 2",
          "BType": 1010
        },
        {
          "Id": 1,
          "No": "sample string 2",
          "BType": 1010
        }
      ],
      "ShareExpense": 47
    },
    {
      "AsId": 1,
      "Id": 2,
      "No": "sample string 3",
      "PoNo": "sample string 4",
      "PoId": 5,
      "WhsNo": "sample string 6",
      "WhsId": 7,
      "BType": 1010,
      "Date": "2024-11-25 02:59:41",
      "DateFmt": "2024-11-25",
      "SettlePeriodId": 9,
      "SettlePeriodName": "sample string 10",
      "SettlePeriodValue": 11,
      "SettlePeriodType": 12,
      "SettlePeriodDate": "2024-11-25 02:59:41",
      "SettlePeriodDateFmt": "2024-11-25",
      "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-11-25 02:59:41",
      "ModifiedByName": "sample string 33",
      "ModifiedDate": "2024-11-25 02:59:41",
      "PayStatus": 1010,
      "IsChecked": 35,
      "CheckedByName": "sample string 36",
      "CheckedDate": "2024-11-25 02:59:41",
      "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-11-25 02:59:41",
          "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,
          "ExpDateCalMethodType": 0,
          "LifeTimeUnitName": "",
          "ExpirationDate": null,
          "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
        }
      ],
      "RelatedBills": [
        {
          "Id": 1,
          "No": "sample string 2",
          "BType": 1010
        },
        {
          "Id": 1,
          "No": "sample string 2",
          "BType": 1010
        }
      ],
      "ShareExpense": 47
    }
  ],
  "BillIds": "2,2",
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.