POST api/Orders
Request Information
URI Parameters
None.
Body Parameters
SalesOrderName | Description | Type | Additional information |
---|---|---|---|
DocEntry | integer |
None. |
|
DocNum | integer |
None. |
|
CardCode | string |
None. |
|
CardName | string |
None. |
|
DocDate | date |
None. |
|
DocDueDate | date |
None. |
|
Comments | string |
None. |
|
DocTotal | decimal number |
None. |
|
SalesPersonCode | integer |
None. |
|
PaymentGroupCode | integer |
None. |
|
PriceList | integer |
None. |
|
Series | integer |
None. |
|
DocCurrency | string |
None. |
|
DocumentLines | Collection of SalesOrderRows |
None. |
|
Udfs | Collection of Udf |
None. |
|
DocStatus | string |
None. |
|
TipoDocE | string |
None. |
|
IdType | string |
None. |
|
Identification | string |
None. |
|
string |
None. |
||
ConfirmationEntry | integer |
None. |
|
DocObjectCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocEntry": 1, "DocNum": 2, "CardCode": "sample string 3", "CardName": "sample string 4", "DocDate": "2025-04-03T20:19:53.8211505-06:00", "DocDueDate": "2025-04-03T20:19:53.8211505-06:00", "Comments": "sample string 7", "DocTotal": 8.0, "SalesPersonCode": 9, "PaymentGroupCode": 10, "PriceList": 11, "Series": 12, "DocCurrency": "sample string 13", "DocumentLines": [ { "LineNum": 1, "LineTotal": 2.0, "ItemCode": "sample string 3", "ItemDescription": "sample string 4", "UnitPrice": 5.0, "Quantity": 6.0, "TaxCode": "sample string 7", "TaxRate": "sample string 8", "TreeType": "sample string 9", "TaxOnly": "sample string 10", "BaseType": 11, "Currency": "sample string 12", "BaseEntry": 1, "BaseLine": 1, "WarehouseCode": "sample string 13", "DiscountPercent": 14.0, "CostingCode": "sample string 15", "UoMEntry": "sample string 16", "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" } ], "ManBtchNum": "sample string 17", "ManSerNum": "sample string 18", "FatherCode": "sample string 19", "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 } ], "BatchNumbers": [ { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 }, { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 } ], "SerialNumbers": [ { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" }, { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" } ], "DistNumber": "sample string 20", "SysNumber": 21, "LineStatus": "sample string 22", "WhsName": "sample string 23", "LinesCurrenciesList": [ { "Id": "sample string 1", "DocCurrency": "sample string 2", "Description": "sample string 3", "Price": 4.0 }, { "Id": "sample string 1", "DocCurrency": "sample string 2", "Description": "sample string 3", "Price": 4.0 } ], "OnHand": 24.1, "InventoryItem": "sample string 25" }, { "LineNum": 1, "LineTotal": 2.0, "ItemCode": "sample string 3", "ItemDescription": "sample string 4", "UnitPrice": 5.0, "Quantity": 6.0, "TaxCode": "sample string 7", "TaxRate": "sample string 8", "TreeType": "sample string 9", "TaxOnly": "sample string 10", "BaseType": 11, "Currency": "sample string 12", "BaseEntry": 1, "BaseLine": 1, "WarehouseCode": "sample string 13", "DiscountPercent": 14.0, "CostingCode": "sample string 15", "UoMEntry": "sample string 16", "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" } ], "ManBtchNum": "sample string 17", "ManSerNum": "sample string 18", "FatherCode": "sample string 19", "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 } ], "BatchNumbers": [ { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 }, { "BatchNumber": "sample string 1", "SystemSerialNumber": 2, "Quantity": 3.0 } ], "SerialNumbers": [ { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" }, { "SystemSerialNumber": 1, "Quantity": 2.0, "DistNumber": "sample string 3" } ], "DistNumber": "sample string 20", "SysNumber": 21, "LineStatus": "sample string 22", "WhsName": "sample string 23", "LinesCurrenciesList": [ { "Id": "sample string 1", "DocCurrency": "sample string 2", "Description": "sample string 3", "Price": 4.0 }, { "Id": "sample string 1", "DocCurrency": "sample string 2", "Description": "sample string 3", "Price": 4.0 } ], "OnHand": 24.1, "InventoryItem": "sample string 25" } ], "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 14", "TipoDocE": "sample string 15", "IdType": "sample string 16", "Identification": "sample string 17", "Email": "sample string 18", "ConfirmationEntry": 19, "DocObjectCode": "sample string 20" }
application/xml, text/xml
Sample:
<SalesOrder 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 4</CardName> <Comments>sample string 7</Comments> <ConfirmationEntry>19</ConfirmationEntry> <DocCurrency>sample string 13</DocCurrency> <DocDate>2025-04-03T20:19:53.8211505-06:00</DocDate> <DocDueDate>2025-04-03T20:19:53.8211505-06:00</DocDueDate> <DocEntry>1</DocEntry> <DocNum>2</DocNum> <DocObjectCode>sample string 20</DocObjectCode> <DocStatus>sample string 14</DocStatus> <DocTotal>8</DocTotal> <DocumentLines> <SalesOrderRows> <BaseEntry>1</BaseEntry> <BaseLine>1</BaseLine> <BaseType>11</BaseType> <BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> </BatchNumbers> <CostingCode>sample string 15</CostingCode> <Currency>sample string 12</Currency> <DiscountPercent>14</DiscountPercent> <DistNumber>sample string 20</DistNumber> <FatherCode>sample string 19</FatherCode> <InventoryItem>sample string 25</InventoryItem> <ItemCode>sample string 3</ItemCode> <ItemDescription>sample string 4</ItemDescription> <LineNum>1</LineNum> <LineStatus>sample string 22</LineStatus> <LineTotal>2</LineTotal> <LinesCurrenciesList> <LinesCurrencies> <Description>sample string 3</Description> <DocCurrency>sample string 2</DocCurrency> <Id>sample string 1</Id> <Price>4</Price> </LinesCurrencies> <LinesCurrencies> <Description>sample string 3</Description> <DocCurrency>sample string 2</DocCurrency> <Id>sample string 1</Id> <Price>4</Price> </LinesCurrencies> </LinesCurrenciesList> <ManBtchNum>sample string 17</ManBtchNum> <ManSerNum>sample string 18</ManSerNum> <OnHand>24.1</OnHand> <Quantity>6</Quantity> <SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> </SerialNumbers> <SysNumber>21</SysNumber> <TaxCode>sample string 7</TaxCode> <TaxOnly>sample string 10</TaxOnly> <TaxRate>sample string 8</TaxRate> <TreeType>sample string 9</TreeType> <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>5</UnitPrice> <UoMEntry>sample string 16</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 13</WarehouseCode> <WhsName>sample string 23</WhsName> </SalesOrderRows> <SalesOrderRows> <BaseEntry>1</BaseEntry> <BaseLine>1</BaseLine> <BaseType>11</BaseType> <BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> <BatchNumbers> <BatchNumber>sample string 1</BatchNumber> <Quantity>3</Quantity> <SystemSerialNumber>2</SystemSerialNumber> </BatchNumbers> </BatchNumbers> <CostingCode>sample string 15</CostingCode> <Currency>sample string 12</Currency> <DiscountPercent>14</DiscountPercent> <DistNumber>sample string 20</DistNumber> <FatherCode>sample string 19</FatherCode> <InventoryItem>sample string 25</InventoryItem> <ItemCode>sample string 3</ItemCode> <ItemDescription>sample string 4</ItemDescription> <LineNum>1</LineNum> <LineStatus>sample string 22</LineStatus> <LineTotal>2</LineTotal> <LinesCurrenciesList> <LinesCurrencies> <Description>sample string 3</Description> <DocCurrency>sample string 2</DocCurrency> <Id>sample string 1</Id> <Price>4</Price> </LinesCurrencies> <LinesCurrencies> <Description>sample string 3</Description> <DocCurrency>sample string 2</DocCurrency> <Id>sample string 1</Id> <Price>4</Price> </LinesCurrencies> </LinesCurrenciesList> <ManBtchNum>sample string 17</ManBtchNum> <ManSerNum>sample string 18</ManSerNum> <OnHand>24.1</OnHand> <Quantity>6</Quantity> <SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> <SerialNumbers> <DistNumber>sample string 3</DistNumber> <Quantity>2</Quantity> <SystemSerialNumber>1</SystemSerialNumber> </SerialNumbers> </SerialNumbers> <SysNumber>21</SysNumber> <TaxCode>sample string 7</TaxCode> <TaxOnly>sample string 10</TaxOnly> <TaxRate>sample string 8</TaxRate> <TreeType>sample string 9</TreeType> <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>5</UnitPrice> <UoMEntry>sample string 16</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 13</WarehouseCode> <WhsName>sample string 23</WhsName> </SalesOrderRows> </DocumentLines> <Email>sample string 18</Email> <IdType>sample string 16</IdType> <Identification>sample string 17</Identification> <PaymentGroupCode>10</PaymentGroupCode> <PriceList>11</PriceList> <SalesPersonCode>9</SalesPersonCode> <Series>12</Series> <TipoDocE>sample string 15</TipoDocE> <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> </SalesOrder>
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. |