POST api/PurchaseOrders
Request Information
URI Parameters
None.
Body Parameters
PurchaseOrderName | Description | Type | Additional information |
---|---|---|---|
DocEntry | integer |
None. |
|
DocNum | integer |
None. |
|
CardCode | string |
None. |
|
PriceList | integer |
None. |
|
CardName | string |
None. |
|
DocDate | date |
None. |
|
Comments | string |
None. |
|
DocTotal | decimal number |
None. |
|
SalesPersonCode | integer |
None. |
|
DocCurrency | string |
None. |
|
DocumentLines | Collection of PurchaseOrderRows |
None. |
|
Udfs | Collection of Udf |
None. |
|
DocStatus | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocEntry": 1, "DocNum": 2, "CardCode": "sample string 3", "PriceList": 4, "CardName": "sample string 5", "DocDate": "2025-04-03T20:35:39.981848-06:00", "Comments": "sample string 7", "DocTotal": 8.0, "SalesPersonCode": 9, "DocCurrency": "sample string 10", "DocumentLines": [ { "ItemCode": "sample string 1", "ItemDescription": "sample string 2", "UnitPrice": 3.0, "Quantity": 4.0, "DiscountPercent": 5.0, "WarehouseCode": "sample string 6", "TaxCode": "sample string 7", "TaxOnly": "sample string 8", "TaxRate": 9.0, "UoMEntry": 10, "BaseType": 11, "BaseEntry": 1, "BaseLine": 1, "LineNum": 12, "LineStatus": "sample string 13", "Udfs": [ { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" }, { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" } ], "UoMMasterData": [ { "UoMEntry": 1, "UomCode": "sample string 2", "UomName": "sample string 3", "UnitPrice": 4.0, "UnitPriceFC": 5.0 }, { "UoMEntry": 1, "UomCode": "sample string 2", "UomName": "sample string 3", "UnitPrice": 4.0, "UnitPriceFC": 5.0 } ] }, { "ItemCode": "sample string 1", "ItemDescription": "sample string 2", "UnitPrice": 3.0, "Quantity": 4.0, "DiscountPercent": 5.0, "WarehouseCode": "sample string 6", "TaxCode": "sample string 7", "TaxOnly": "sample string 8", "TaxRate": 9.0, "UoMEntry": 10, "BaseType": 11, "BaseEntry": 1, "BaseLine": 1, "LineNum": 12, "LineStatus": "sample string 13", "Udfs": [ { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" }, { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" } ], "UoMMasterData": [ { "UoMEntry": 1, "UomCode": "sample string 2", "UomName": "sample string 3", "UnitPrice": 4.0, "UnitPriceFC": 5.0 }, { "UoMEntry": 1, "UomCode": "sample string 2", "UomName": "sample string 3", "UnitPrice": 4.0, "UnitPriceFC": 5.0 } ] } ], "Udfs": [ { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" }, { "Name": "sample string 1", "FieldType": "sample string 2", "Value": "sample string 3" } ], "DocStatus": "sample string 11" }
application/xml, text/xml
Sample:
<PurchaseOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLMLTEMA.MODELS.SAP"> <CardCode>sample string 3</CardCode> <CardName>sample string 5</CardName> <Comments>sample string 7</Comments> <DocCurrency>sample string 10</DocCurrency> <DocDate>2025-04-03T20:35:39.981848-06:00</DocDate> <DocEntry>1</DocEntry> <DocNum>2</DocNum> <DocStatus>sample string 11</DocStatus> <DocTotal>8</DocTotal> <DocumentLines> <PurchaseOrderRows> <BaseEntry>1</BaseEntry> <BaseLine>1</BaseLine> <BaseType>11</BaseType> <DiscountPercent>5</DiscountPercent> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <LineNum>12</LineNum> <LineStatus>sample string 13</LineStatus> <Quantity>4</Quantity> <TaxCode>sample string 7</TaxCode> <TaxOnly>sample string 8</TaxOnly> <TaxRate>9</TaxRate> <Udfs xmlns:d4p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf"> <d4p1:Udf> <d4p1:FieldType>sample string 2</d4p1:FieldType> <d4p1:Name>sample string 1</d4p1:Name> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:Udf> <d4p1:Udf> <d4p1:FieldType>sample string 2</d4p1:FieldType> <d4p1:Name>sample string 1</d4p1:Name> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:Udf> </Udfs> <UnitPrice>3</UnitPrice> <UoMEntry>10</UoMEntry> <UoMMasterData> <UoMMasterData> <UnitPrice>4</UnitPrice> <UnitPriceFC>5</UnitPriceFC> <UoMEntry>1</UoMEntry> <UomCode>sample string 2</UomCode> <UomName>sample string 3</UomName> </UoMMasterData> <UoMMasterData> <UnitPrice>4</UnitPrice> <UnitPriceFC>5</UnitPriceFC> <UoMEntry>1</UoMEntry> <UomCode>sample string 2</UomCode> <UomName>sample string 3</UomName> </UoMMasterData> </UoMMasterData> <WarehouseCode>sample string 6</WarehouseCode> </PurchaseOrderRows> <PurchaseOrderRows> <BaseEntry>1</BaseEntry> <BaseLine>1</BaseLine> <BaseType>11</BaseType> <DiscountPercent>5</DiscountPercent> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <LineNum>12</LineNum> <LineStatus>sample string 13</LineStatus> <Quantity>4</Quantity> <TaxCode>sample string 7</TaxCode> <TaxOnly>sample string 8</TaxOnly> <TaxRate>9</TaxRate> <Udfs xmlns:d4p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf"> <d4p1:Udf> <d4p1:FieldType>sample string 2</d4p1:FieldType> <d4p1:Name>sample string 1</d4p1:Name> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:Udf> <d4p1:Udf> <d4p1:FieldType>sample string 2</d4p1:FieldType> <d4p1:Name>sample string 1</d4p1:Name> <d4p1:Value>sample string 3</d4p1:Value> </d4p1:Udf> </Udfs> <UnitPrice>3</UnitPrice> <UoMEntry>10</UoMEntry> <UoMMasterData> <UoMMasterData> <UnitPrice>4</UnitPrice> <UnitPriceFC>5</UnitPriceFC> <UoMEntry>1</UoMEntry> <UomCode>sample string 2</UomCode> <UomName>sample string 3</UomName> </UoMMasterData> <UoMMasterData> <UnitPrice>4</UnitPrice> <UnitPriceFC>5</UnitPriceFC> <UoMEntry>1</UoMEntry> <UomCode>sample string 2</UomCode> <UomName>sample string 3</UomName> </UoMMasterData> </UoMMasterData> <WarehouseCode>sample string 6</WarehouseCode> </PurchaseOrderRows> </DocumentLines> <PriceList>4</PriceList> <SalesPersonCode>9</SalesPersonCode> <Udfs xmlns:d2p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf"> <d2p1:Udf> <d2p1:FieldType>sample string 2</d2p1:FieldType> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:Value>sample string 3</d2p1:Value> </d2p1:Udf> <d2p1:Udf> <d2p1:FieldType>sample string 2</d2p1:FieldType> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:Value>sample string 3</d2p1:Value> </d2p1:Udf> </Udfs> </PurchaseOrder>
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. |