POST api/Purchase/AddManualPurchaseForDataReset
Request Information
URI Parameters
None.
Body Parameters
ManualPurchaseModelName | Description | Type | Additional information |
---|---|---|---|
SupplierID | integer |
None. |
|
PurchasesDetails | Collection of ManualPurchaseDetailModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "SupplierID": 1, "PurchasesDetails": [ { "ProductID": 1, "ProductVariantID": 1, "Quantity": 1, "dTotalAmount": 1.0 }, { "ProductID": 1, "ProductVariantID": 1, "Quantity": 1, "dTotalAmount": 1.0 } ] }
application/xml, text/xml
Sample:
<ManualPurchaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <PurchasesDetails> <ManualPurchaseDetailModel> <ProductID>1</ProductID> <ProductVariantID>1</ProductVariantID> <Quantity>1</Quantity> <dTotalAmount>1</dTotalAmount> </ManualPurchaseDetailModel> <ManualPurchaseDetailModel> <ProductID>1</ProductID> <ProductVariantID>1</ProductVariantID> <Quantity>1</Quantity> <dTotalAmount>1</dTotalAmount> </ManualPurchaseDetailModel> </PurchasesDetails> <SupplierID>1</SupplierID> </ManualPurchaseModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PurchaseResponseName | Description | Type | Additional information |
---|---|---|---|
PurchaseID | integer |
None. |
|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "PurchaseID": 1, "ResponseCode": 2, "ResponseText": "sample string 3" }
application/xml, text/xml
Sample:
<PurchaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">2</ResponseCode> <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 3</ResponseText> <PurchaseID>1</PurchaseID> </PurchaseResponse>