POST api/Orders
Recibe un jSon con los parametros necesarios para crear una Orden de Venta en SAP B1.
Request Information
URI Parameters
None.
Body Parameters
OrderName | Description | Type | Additional information |
---|---|---|---|
CardCode | string |
Required |
|
DocDate | date |
Required |
|
DocDueDate | date |
Required |
|
Address | string |
None. |
|
Comments | string |
None. |
|
NumAtCard | string |
None. |
|
Series | integer |
None. |
|
DocCur | string |
None. |
|
Lines | Collection of OrderLines |
Required |
|
Origen | string |
None. |
|
FPago | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CardCode": "sample string 1", "DocDate": "2025-01-22T09:51:34.1903051-05:00", "DocDueDate": "2025-01-22T09:51:34.1903051-05:00", "Address": "sample string 4", "Comments": "sample string 5", "NumAtCard": "sample string 6", "Series": 7, "DocCur": "sample string 8", "Lines": [ { "ItemCode": "sample string 1", "Quantity": 2, "PriceBefDi": 3.1, "TaxCode": "sample string 4", "DiscPrcnt": 5.1, "LineTotal": 6.1 }, { "ItemCode": "sample string 1", "Quantity": 2, "PriceBefDi": 3.1, "TaxCode": "sample string 4", "DiscPrcnt": 5.1, "LineTotal": 6.1 } ], "Origen": "sample string 9", "FPago": "sample string 10" }
application/xml, text/xml
Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_GLOBAL.Models"> <Address>sample string 4</Address> <CardCode>sample string 1</CardCode> <Comments>sample string 5</Comments> <DocCur>sample string 8</DocCur> <DocDate>2025-01-22T09:51:34.1903051-05:00</DocDate> <DocDueDate>2025-01-22T09:51:34.1903051-05:00</DocDueDate> <FPago>sample string 10</FPago> <Lines> <OrderLines> <DiscPrcnt>5.1</DiscPrcnt> <ItemCode>sample string 1</ItemCode> <LineTotal>6.1</LineTotal> <PriceBefDi>3.1</PriceBefDi> <Quantity>2</Quantity> <TaxCode>sample string 4</TaxCode> </OrderLines> <OrderLines> <DiscPrcnt>5.1</DiscPrcnt> <ItemCode>sample string 1</ItemCode> <LineTotal>6.1</LineTotal> <PriceBefDi>3.1</PriceBefDi> <Quantity>2</Quantity> <TaxCode>sample string 4</TaxCode> </OrderLines> </Lines> <NumAtCard>sample string 6</NumAtCard> <Origen>sample string 9</Origen> <Series>7</Series> </Order>
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. |