POST api/PurchaseOrder/UpdatePurchaseOrder
Request Information
URI Parameters
None.
Body Parameters
SLPurchaseModelName | Description | Type | Additional information |
---|---|---|---|
DocNum | integer |
None. |
|
DocEntry | integer |
None. |
|
CardCode | string |
None. |
|
DocDate | date |
None. |
|
Comments | string |
None. |
|
U_CLVS_POS_UniqueInvId | string |
None. |
|
DocumentLines | Collection of SLInventoryLinesModel |
None. |
|
U_ListNum | integer |
None. |
|
UdfTarget | Collection of UdfTarget |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocNum": 1, "DocEntry": 2, "CardCode": "sample string 3", "DocDate": "2025-04-04T00:11:16.1580398-06:00", "Comments": "sample string 5", "U_CLVS_POS_UniqueInvId": "sample string 6", "DocumentLines": [ { "ItemCode": "sample string 1", "UnitPrice": 2.1, "Quantity": 3.1, "WarehouseCode": "sample string 4", "TaxCode": "sample string 5", "DiscountPercent": 6.1, "TaxOnly": "sample string 7", "U_DescriptionItemXml": "sample string 8", "UoMEntry": 9, "UdfLinesTarget": [ { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" }, { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" } ] }, { "ItemCode": "sample string 1", "UnitPrice": 2.1, "Quantity": 3.1, "WarehouseCode": "sample string 4", "TaxCode": "sample string 5", "DiscountPercent": 6.1, "TaxOnly": "sample string 7", "U_DescriptionItemXml": "sample string 8", "UoMEntry": 9, "UdfLinesTarget": [ { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" }, { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" } ] } ], "U_ListNum": 7, "UdfTarget": [ { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" }, { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" } ] }
application/xml, text/xml
Sample:
<SLPurchaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLVSSUPER.MODELS"> <CardCode>sample string 3</CardCode> <Comments>sample string 5</Comments> <DocDate>2025-04-04T00:11:16.1580398-06:00</DocDate> <DocEntry>2</DocEntry> <DocNum>1</DocNum> <DocumentLines> <SLInventoryLinesModel> <DiscountPercent>6.1</DiscountPercent> <ItemCode>sample string 1</ItemCode> <Quantity>3.1</Quantity> <TaxCode>sample string 5</TaxCode> <TaxOnly>sample string 7</TaxOnly> <U_DescriptionItemXml>sample string 8</U_DescriptionItemXml> <UdfLinesTarget> <UdfTarget> <FieldType>sample string 2</FieldType> <Name>sample string 1</Name> <Value>sample string 3</Value> </UdfTarget> <UdfTarget> <FieldType>sample string 2</FieldType> <Name>sample string 1</Name> <Value>sample string 3</Value> </UdfTarget> </UdfLinesTarget> <UnitPrice>2.1</UnitPrice> <UoMEntry>9</UoMEntry> <WarehouseCode>sample string 4</WarehouseCode> </SLInventoryLinesModel> <SLInventoryLinesModel> <DiscountPercent>6.1</DiscountPercent> <ItemCode>sample string 1</ItemCode> <Quantity>3.1</Quantity> <TaxCode>sample string 5</TaxCode> <TaxOnly>sample string 7</TaxOnly> <U_DescriptionItemXml>sample string 8</U_DescriptionItemXml> <UdfLinesTarget> <UdfTarget> <FieldType>sample string 2</FieldType> <Name>sample string 1</Name> <Value>sample string 3</Value> </UdfTarget> <UdfTarget> <FieldType>sample string 2</FieldType> <Name>sample string 1</Name> <Value>sample string 3</Value> </UdfTarget> </UdfLinesTarget> <UnitPrice>2.1</UnitPrice> <UoMEntry>9</UoMEntry> <WarehouseCode>sample string 4</WarehouseCode> </SLInventoryLinesModel> </DocumentLines> <U_CLVS_POS_UniqueInvId>sample string 6</U_CLVS_POS_UniqueInvId> <U_ListNum>7</U_ListNum> <UdfTarget> <UdfTarget> <FieldType>sample string 2</FieldType> <Name>sample string 1</Name> <Value>sample string 3</Value> </UdfTarget> <UdfTarget> <FieldType>sample string 2</FieldType> <Name>sample string 1</Name> <Value>sample string 3</Value> </UdfTarget> </UdfTarget> </SLPurchaseModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |