POST api/PurchaseInvoices
Request Information
URI Parameters
None.
Body Parameters
APInvoiceName | Description | Type | Additional information |
---|---|---|---|
DocEntry | integer |
None. |
|
DocNum | integer |
None. |
|
CardCode | string |
None. |
|
CardName | string |
None. |
|
DocCurrency | string |
None. |
|
DocDate | date |
None. |
|
DocDueDate | date |
None. |
|
PaymentGroupCode | integer |
None. |
|
SalesPersonCode | integer |
None. |
|
DocType | string |
None. |
|
Comments | string |
None. |
|
Series | integer |
None. |
|
DocumentLines | Collection of APInvoiceRows |
None. |
|
Udfs | Collection of Udf |
None. |
|
DocTotal | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocEntry": 1, "DocNum": 2, "CardCode": "sample string 3", "CardName": "sample string 4", "DocCurrency": "sample string 5", "DocDate": "2025-04-03T20:40:22.5564958-06:00", "DocDueDate": "2025-04-03T20:40:22.5564958-06:00", "PaymentGroupCode": 8, "SalesPersonCode": 9, "DocType": "sample string 10", "Comments": "sample string 11", "Series": 12, "DocumentLines": [ { "ItemCode": "sample string 1", "ItemDescription": "sample string 2", "UnitPrice": 3.0, "Quantity": 4.0, "TaxCode": "sample string 5", "TaxOnly": "sample string 6", "DiscountPercent": 7.0, "WarehouseCode": "sample string 8", "UoMEntry": 9, "CostingCode": "sample string 10", "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" } ] }, { "ItemCode": "sample string 1", "ItemDescription": "sample string 2", "UnitPrice": 3.0, "Quantity": 4.0, "TaxCode": "sample string 5", "TaxOnly": "sample string 6", "DiscountPercent": 7.0, "WarehouseCode": "sample string 8", "UoMEntry": 9, "CostingCode": "sample string 10", "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" } ] } ], "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" } ], "DocTotal": 13.0 }
application/xml, text/xml
Sample:
<APInvoice 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 11</Comments> <DocCurrency>sample string 5</DocCurrency> <DocDate>2025-04-03T20:40:22.5564958-06:00</DocDate> <DocDueDate>2025-04-03T20:40:22.5564958-06:00</DocDueDate> <DocEntry>1</DocEntry> <DocNum>2</DocNum> <DocTotal>13</DocTotal> <DocType>sample string 10</DocType> <DocumentLines> <APInvoiceRows> <CostingCode>sample string 10</CostingCode> <DiscountPercent>7</DiscountPercent> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <Quantity>4</Quantity> <TaxCode>sample string 5</TaxCode> <TaxOnly>sample string 6</TaxOnly> <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>9</UoMEntry> <WarehouseCode>sample string 8</WarehouseCode> </APInvoiceRows> <APInvoiceRows> <CostingCode>sample string 10</CostingCode> <DiscountPercent>7</DiscountPercent> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <Quantity>4</Quantity> <TaxCode>sample string 5</TaxCode> <TaxOnly>sample string 6</TaxOnly> <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>9</UoMEntry> <WarehouseCode>sample string 8</WarehouseCode> </APInvoiceRows> </DocumentLines> <PaymentGroupCode>8</PaymentGroupCode> <SalesPersonCode>9</SalesPersonCode> <Series>12</Series> <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> </APInvoice>
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. |