POST api/SalesReturn?Warhouseid={Warhouseid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Warhouseid | integer |
Required |
Body Parameters
Z_S_SalesReturnRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| salesReturnHeader | S_SalesReturnHeader |
None. |
|
| salesReturnLine | Collection of S_SalesReturnLine |
None. |
|
| salesReturnTax | Collection of S_SalesReturnTax |
None. |
|
| inventBatchTrans | Collection of C_InventBatchTrans |
None. |
|
| inventBatchTransDetail | Collection of C_InventBatchTransDetail |
None. |
Request Formats
application/json, text/json
Sample:
{
"salesReturnHeader": {
"Id": 1,
"SRId": "sample string 2",
"SRDate": "2025-12-17T18:52:19.5457613+00:00",
"CustomerCode": "sample string 3",
"InvoiceNo": "sample string 4",
"TransporterId": "sample string 5",
"Remarks": "sample string 6",
"CreditNoteNo": "sample string 7",
"BranchCode": 8,
"Reason": 9,
"CreatedBy": 10,
"CreatedOn": "2025-12-17T18:52:19.5457613+00:00",
"SRInvoiceNo": "sample string 11",
"SRInvoiceDate": "2025-12-17T18:52:19.5457613+00:00"
},
"salesReturnLine": [
{
"Id": 1,
"LineNumber": 2,
"SRId": "sample string 3",
"ItemCode": "sample string 4",
"Unit": 1,
"Rate": 1.0,
"ReturnQty": 1.0,
"TaxCode": "sample string 5",
"BatchNo": "sample string 6",
"SupplierCode": "sample string 7",
"InvoiceNo": "sample string 8",
"BranchCode": 9,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T18:52:19.5613326+00:00"
},
{
"Id": 1,
"LineNumber": 2,
"SRId": "sample string 3",
"ItemCode": "sample string 4",
"Unit": 1,
"Rate": 1.0,
"ReturnQty": 1.0,
"TaxCode": "sample string 5",
"BatchNo": "sample string 6",
"SupplierCode": "sample string 7",
"InvoiceNo": "sample string 8",
"BranchCode": 9,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T18:52:19.5613326+00:00"
}
],
"salesReturnTax": [
{
"Id": 1,
"LedgerCode": "sample string 2",
"TransType": "sample string 3",
"TaxCode": "sample string 4",
"CRDRFlag": "sample string 5",
"Amt": 1.0,
"SRId": "sample string 6",
"SRLineNo": 7,
"EffectiveDate": "2025-12-17T18:52:19.5613326+00:00",
"TaxLineNo": 1,
"BranchCode": 8,
"Createdby": 1,
"CreatedOn": "2025-12-17T18:52:19.5613326+00:00"
},
{
"Id": 1,
"LedgerCode": "sample string 2",
"TransType": "sample string 3",
"TaxCode": "sample string 4",
"CRDRFlag": "sample string 5",
"Amt": 1.0,
"SRId": "sample string 6",
"SRLineNo": 7,
"EffectiveDate": "2025-12-17T18:52:19.5613326+00:00",
"TaxLineNo": 1,
"BranchCode": 8,
"Createdby": 1,
"CreatedOn": "2025-12-17T18:52:19.5613326+00:00"
}
],
"inventBatchTrans": [
{
"Id": 1,
"TransId": "sample string 2",
"ItemCode": "sample string 3",
"VoucherNo": "sample string 4",
"TransType": "sample string 5",
"BatchNo": "sample string 6",
"BatchOpeningQty": 1.0,
"BatchTransQty": 1.0,
"BatchClosingQty": 1.0,
"TransDate": "2025-12-17T18:52:19.5613326+00:00",
"WarehouseId": 7,
"SupplierCode": "sample string 8",
"STSupplierCode": "sample string 9",
"FinalStockFlag": "sample string 10",
"ActualRate": 1.0,
"ExciseRate": 1.0,
"CostRate": 1.0,
"TotalRate": 11.0,
"PostTransId": "sample string 12",
"BranchCode": 13,
"PurchaseDate": "2025-12-17T18:52:19.5613326+00:00",
"UpdatedByIT": "sample string 14"
},
{
"Id": 1,
"TransId": "sample string 2",
"ItemCode": "sample string 3",
"VoucherNo": "sample string 4",
"TransType": "sample string 5",
"BatchNo": "sample string 6",
"BatchOpeningQty": 1.0,
"BatchTransQty": 1.0,
"BatchClosingQty": 1.0,
"TransDate": "2025-12-17T18:52:19.5613326+00:00",
"WarehouseId": 7,
"SupplierCode": "sample string 8",
"STSupplierCode": "sample string 9",
"FinalStockFlag": "sample string 10",
"ActualRate": 1.0,
"ExciseRate": 1.0,
"CostRate": 1.0,
"TotalRate": 11.0,
"PostTransId": "sample string 12",
"BranchCode": 13,
"PurchaseDate": "2025-12-17T18:52:19.5613326+00:00",
"UpdatedByIT": "sample string 14"
}
],
"inventBatchTransDetail": [
{
"Id": 1,
"TransId": "sample string 2",
"ItemCode": "sample string 3",
"BatchNo": "sample string 4",
"Qty": 1.0,
"Barcode": "sample string 5",
"OuterNo": "sample string 6",
"PalletNo": "sample string 7",
"UnitId": 1,
"BarcodeCreatedDate": "2025-12-17T18:52:19.5613326+00:00",
"OuterCreatedDate": "2025-12-17T18:52:19.5613326+00:00",
"PalletCreatedDate": "2025-12-17T18:52:19.5613326+00:00",
"SOID": "sample string 9",
"InvoiceNo": "sample string 10",
"PackingSlipId": "sample string 11",
"BarcodePrint": "sample string 12",
"OuterPrint": "sample string 13",
"PalletPrint": "sample string 14",
"TransDate": "2025-12-17T18:52:19.5613326+00:00",
"BranchCode": 15,
"VoucherNo": "sample string 16",
"InventBatchId": 17,
"SupplierGRNNo": "sample string 18",
"UpdatedByIT": "sample string 19"
},
{
"Id": 1,
"TransId": "sample string 2",
"ItemCode": "sample string 3",
"BatchNo": "sample string 4",
"Qty": 1.0,
"Barcode": "sample string 5",
"OuterNo": "sample string 6",
"PalletNo": "sample string 7",
"UnitId": 1,
"BarcodeCreatedDate": "2025-12-17T18:52:19.5613326+00:00",
"OuterCreatedDate": "2025-12-17T18:52:19.5613326+00:00",
"PalletCreatedDate": "2025-12-17T18:52:19.5613326+00:00",
"SOID": "sample string 9",
"InvoiceNo": "sample string 10",
"PackingSlipId": "sample string 11",
"BarcodePrint": "sample string 12",
"OuterPrint": "sample string 13",
"PalletPrint": "sample string 14",
"TransDate": "2025-12-17T18:52:19.5613326+00:00",
"BranchCode": 15,
"VoucherNo": "sample string 16",
"InventBatchId": 17,
"SupplierGRNNo": "sample string 18",
"UpdatedByIT": "sample string 19"
}
]
}
application/xml, text/xml
Sample:
<Z_S_SalesReturnRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
<inventBatchTrans>
<C_InventBatchTrans>
<ActualRate>1</ActualRate>
<BatchClosingQty>1</BatchClosingQty>
<BatchNo>sample string 6</BatchNo>
<BatchOpeningQty>1</BatchOpeningQty>
<BatchTransQty>1</BatchTransQty>
<BranchCode>13</BranchCode>
<CostRate>1</CostRate>
<ExciseRate>1</ExciseRate>
<FinalStockFlag>sample string 10</FinalStockFlag>
<Id>1</Id>
<ItemCode>sample string 3</ItemCode>
<PostTransId>sample string 12</PostTransId>
<PurchaseDate>2025-12-17T18:52:19.5613326+00:00</PurchaseDate>
<STSupplierCode>sample string 9</STSupplierCode>
<SupplierCode>sample string 8</SupplierCode>
<TotalRate>11</TotalRate>
<TransDate>2025-12-17T18:52:19.5613326+00:00</TransDate>
<TransId>sample string 2</TransId>
<TransType>sample string 5</TransType>
<UpdatedByIT>sample string 14</UpdatedByIT>
<VoucherNo>sample string 4</VoucherNo>
<WarehouseId>7</WarehouseId>
</C_InventBatchTrans>
<C_InventBatchTrans>
<ActualRate>1</ActualRate>
<BatchClosingQty>1</BatchClosingQty>
<BatchNo>sample string 6</BatchNo>
<BatchOpeningQty>1</BatchOpeningQty>
<BatchTransQty>1</BatchTransQty>
<BranchCode>13</BranchCode>
<CostRate>1</CostRate>
<ExciseRate>1</ExciseRate>
<FinalStockFlag>sample string 10</FinalStockFlag>
<Id>1</Id>
<ItemCode>sample string 3</ItemCode>
<PostTransId>sample string 12</PostTransId>
<PurchaseDate>2025-12-17T18:52:19.5613326+00:00</PurchaseDate>
<STSupplierCode>sample string 9</STSupplierCode>
<SupplierCode>sample string 8</SupplierCode>
<TotalRate>11</TotalRate>
<TransDate>2025-12-17T18:52:19.5613326+00:00</TransDate>
<TransId>sample string 2</TransId>
<TransType>sample string 5</TransType>
<UpdatedByIT>sample string 14</UpdatedByIT>
<VoucherNo>sample string 4</VoucherNo>
<WarehouseId>7</WarehouseId>
</C_InventBatchTrans>
</inventBatchTrans>
<inventBatchTransDetail>
<C_InventBatchTransDetail>
<Barcode>sample string 5</Barcode>
<BarcodeCreatedDate>2025-12-17T18:52:19.5613326+00:00</BarcodeCreatedDate>
<BarcodePrint>sample string 12</BarcodePrint>
<BatchNo>sample string 4</BatchNo>
<BranchCode>15</BranchCode>
<Id>1</Id>
<InventBatchId>17</InventBatchId>
<InvoiceNo>sample string 10</InvoiceNo>
<ItemCode>sample string 3</ItemCode>
<OuterCreatedDate>2025-12-17T18:52:19.5613326+00:00</OuterCreatedDate>
<OuterNo>sample string 6</OuterNo>
<OuterPrint>sample string 13</OuterPrint>
<PackingSlipId>sample string 11</PackingSlipId>
<PalletCreatedDate>2025-12-17T18:52:19.5613326+00:00</PalletCreatedDate>
<PalletNo>sample string 7</PalletNo>
<PalletPrint>sample string 14</PalletPrint>
<Qty>1</Qty>
<SOID>sample string 9</SOID>
<SupplierGRNNo>sample string 18</SupplierGRNNo>
<TransDate>2025-12-17T18:52:19.5613326+00:00</TransDate>
<TransId>sample string 2</TransId>
<UnitId>1</UnitId>
<UpdatedByIT>sample string 19</UpdatedByIT>
<VoucherNo>sample string 16</VoucherNo>
</C_InventBatchTransDetail>
<C_InventBatchTransDetail>
<Barcode>sample string 5</Barcode>
<BarcodeCreatedDate>2025-12-17T18:52:19.5613326+00:00</BarcodeCreatedDate>
<BarcodePrint>sample string 12</BarcodePrint>
<BatchNo>sample string 4</BatchNo>
<BranchCode>15</BranchCode>
<Id>1</Id>
<InventBatchId>17</InventBatchId>
<InvoiceNo>sample string 10</InvoiceNo>
<ItemCode>sample string 3</ItemCode>
<OuterCreatedDate>2025-12-17T18:52:19.5613326+00:00</OuterCreatedDate>
<OuterNo>sample string 6</OuterNo>
<OuterPrint>sample string 13</OuterPrint>
<PackingSlipId>sample string 11</PackingSlipId>
<PalletCreatedDate>2025-12-17T18:52:19.5613326+00:00</PalletCreatedDate>
<PalletNo>sample string 7</PalletNo>
<PalletPrint>sample string 14</PalletPrint>
<Qty>1</Qty>
<SOID>sample string 9</SOID>
<SupplierGRNNo>sample string 18</SupplierGRNNo>
<TransDate>2025-12-17T18:52:19.5613326+00:00</TransDate>
<TransId>sample string 2</TransId>
<UnitId>1</UnitId>
<UpdatedByIT>sample string 19</UpdatedByIT>
<VoucherNo>sample string 16</VoucherNo>
</C_InventBatchTransDetail>
</inventBatchTransDetail>
<salesReturnHeader>
<BranchCode>8</BranchCode>
<CreatedBy>10</CreatedBy>
<CreatedOn>2025-12-17T18:52:19.5457613+00:00</CreatedOn>
<CreditNoteNo>sample string 7</CreditNoteNo>
<CustomerCode>sample string 3</CustomerCode>
<Id>1</Id>
<InvoiceNo>sample string 4</InvoiceNo>
<Reason>9</Reason>
<Remarks>sample string 6</Remarks>
<SRDate>2025-12-17T18:52:19.5457613+00:00</SRDate>
<SRId>sample string 2</SRId>
<SRInvoiceDate>2025-12-17T18:52:19.5457613+00:00</SRInvoiceDate>
<SRInvoiceNo>sample string 11</SRInvoiceNo>
<TransporterId>sample string 5</TransporterId>
</salesReturnHeader>
<salesReturnLine>
<S_SalesReturnLine>
<BatchNo>sample string 6</BatchNo>
<BranchCode>9</BranchCode>
<CreatedBy>1</CreatedBy>
<CreatedOn>2025-12-17T18:52:19.5613326+00:00</CreatedOn>
<Id>1</Id>
<InvoiceNo>sample string 8</InvoiceNo>
<ItemCode>sample string 4</ItemCode>
<LineNumber>2</LineNumber>
<Rate>1</Rate>
<ReturnQty>1</ReturnQty>
<SRId>sample string 3</SRId>
<SupplierCode>sample string 7</SupplierCode>
<TaxCode>sample string 5</TaxCode>
<Unit>1</Unit>
</S_SalesReturnLine>
<S_SalesReturnLine>
<BatchNo>sample string 6</BatchNo>
<BranchCode>9</BranchCode>
<CreatedBy>1</CreatedBy>
<CreatedOn>2025-12-17T18:52:19.5613326+00:00</CreatedOn>
<Id>1</Id>
<InvoiceNo>sample string 8</InvoiceNo>
<ItemCode>sample string 4</ItemCode>
<LineNumber>2</LineNumber>
<Rate>1</Rate>
<ReturnQty>1</ReturnQty>
<SRId>sample string 3</SRId>
<SupplierCode>sample string 7</SupplierCode>
<TaxCode>sample string 5</TaxCode>
<Unit>1</Unit>
</S_SalesReturnLine>
</salesReturnLine>
<salesReturnTax>
<S_SalesReturnTax>
<Amt>1</Amt>
<BranchCode>8</BranchCode>
<CRDRFlag>sample string 5</CRDRFlag>
<CreatedOn>2025-12-17T18:52:19.5613326+00:00</CreatedOn>
<Createdby>1</Createdby>
<EffectiveDate>2025-12-17T18:52:19.5613326+00:00</EffectiveDate>
<Id>1</Id>
<LedgerCode>sample string 2</LedgerCode>
<SRId>sample string 6</SRId>
<SRLineNo>7</SRLineNo>
<TaxCode>sample string 4</TaxCode>
<TaxLineNo>1</TaxLineNo>
<TransType>sample string 3</TransType>
</S_SalesReturnTax>
<S_SalesReturnTax>
<Amt>1</Amt>
<BranchCode>8</BranchCode>
<CRDRFlag>sample string 5</CRDRFlag>
<CreatedOn>2025-12-17T18:52:19.5613326+00:00</CreatedOn>
<Createdby>1</Createdby>
<EffectiveDate>2025-12-17T18:52:19.5613326+00:00</EffectiveDate>
<Id>1</Id>
<LedgerCode>sample string 2</LedgerCode>
<SRId>sample string 6</SRId>
<SRLineNo>7</SRLineNo>
<TaxCode>sample string 4</TaxCode>
<TaxLineNo>1</TaxLineNo>
<TransType>sample string 3</TransType>
</S_SalesReturnTax>
</salesReturnTax>
</Z_S_SalesReturnRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | 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. |