POST api/PurchaseReturns
Request Information
URI Parameters
None.
Body Parameters
GoodsReturnName | Description | Type | Additional information |
---|---|---|---|
DocEntry | integer |
None. |
|
DocNum | integer |
None. |
|
Series | integer |
None. |
|
CardCode | string |
None. |
|
CardName | string |
None. |
|
Comments | string |
None. |
|
DocDate | date |
None. |
|
DocCurrency | string |
None. |
|
SalesPersonCode | integer |
None. |
|
DocumentLines | Collection of GoodsReturnRows |
None. |
|
Udfs | Collection of Udf |
None. |
|
DocTotal | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "DocEntry": 1, "DocNum": 2, "Series": 3, "CardCode": "sample string 4", "CardName": "sample string 5", "Comments": "sample string 6", "DocDate": "2025-04-03T20:38:32.9743418-06:00", "DocCurrency": "sample string 8", "SalesPersonCode": 9, "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", "UoMEntry": 9, "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, "DiscountPercent": 5.0, "WarehouseCode": "sample string 6", "TaxCode": "sample string 7", "TaxOnly": "sample string 8", "UoMEntry": 9, "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": 10.0 }
application/xml, text/xml
Sample:
<GoodsReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CLMLTEMA.MODELS.SAP"> <CardCode>sample string 4</CardCode> <CardName>sample string 5</CardName> <Comments>sample string 6</Comments> <DocCurrency>sample string 8</DocCurrency> <DocDate>2025-04-03T20:38:32.9743418-06:00</DocDate> <DocEntry>1</DocEntry> <DocNum>2</DocNum> <DocTotal>10</DocTotal> <DocumentLines> <GoodsReturnRows> <DiscountPercent>5</DiscountPercent> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <Quantity>4</Quantity> <TaxCode>sample string 7</TaxCode> <TaxOnly>sample string 8</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 6</WarehouseCode> </GoodsReturnRows> <GoodsReturnRows> <DiscountPercent>5</DiscountPercent> <ItemCode>sample string 1</ItemCode> <ItemDescription>sample string 2</ItemDescription> <Quantity>4</Quantity> <TaxCode>sample string 7</TaxCode> <TaxOnly>sample string 8</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 6</WarehouseCode> </GoodsReturnRows> </DocumentLines> <SalesPersonCode>9</SalesPersonCode> <Series>3</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> </GoodsReturn>
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. |