POST api/SOHeader/GetSchemeDiscountDetail?CustomerCode={CustomerCode}&Group={Group}&Type={Type}&SplDiscountFlag={SplDiscountFlag}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerCode | string |
Required |
|
| Group | integer |
Required |
|
| Type | string |
Required |
|
| SplDiscountFlag | boolean |
Default value is False |
Body Parameters
Z_SOCalculation| Name | Description | Type | Additional information |
|---|---|---|---|
| soline | Collection of S_SOLineView |
None. |
|
| schememaster | Collection of S_SchemeMaster |
None. |
Request Formats
application/json, text/json
Sample:
{
"soline": [
{
"Id": 1,
"LineNumber": 2,
"SOId": "sample string 3",
"ItemCode": "sample string 4",
"UnitId": 1,
"Rate": 1.0,
"OrderQty": 1.0,
"SalesQty": 1.0,
"PendingQty": 1.0,
"DiscountAmt": 1.0,
"DiscountPercentage": 1.0,
"ExpectedDate": "2025-12-17T23:49:05.7238668+00:00",
"WarehouseId": 1,
"Taxcode": "sample string 5",
"AssValue": 1.0,
"ProductMainGroupId": 1,
"BranchCode": 1,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T23:49:05.7238668+00:00",
"ModifiedBy": 1,
"ModifiedOn": "2025-12-17T23:49:05.7238668+00:00",
"SODate": "2025-12-17T23:49:05.7238668+00:00",
"PSId": "sample string 7",
"PSDate": "2025-12-17T23:49:05.7238668+00:00",
"SoRefNo": "sample string 8",
"CustomerCode": "sample string 9",
"BatchClosingQty": 1.0,
"ItemName": "sample string 10",
"PSOId": "sample string 11",
"SchemeDiscount": 12.0,
"UnitName": "sample string 13",
"DiscountPer1": 1.0,
"DiscountAmt1": 1.0,
"DiscountRemark1": "sample string 14",
"DiscountPer2": 1.0,
"DiscountAmt2": 1.0,
"DiscountRemark2": "sample string 15",
"DiscountPer3": 1.0,
"DiscountAmt3": 1.0,
"DiscountRemark3": "sample string 16",
"DiscountPer4": 1.0,
"DiscountAmt4": 1.0
},
{
"Id": 1,
"LineNumber": 2,
"SOId": "sample string 3",
"ItemCode": "sample string 4",
"UnitId": 1,
"Rate": 1.0,
"OrderQty": 1.0,
"SalesQty": 1.0,
"PendingQty": 1.0,
"DiscountAmt": 1.0,
"DiscountPercentage": 1.0,
"ExpectedDate": "2025-12-17T23:49:05.7238668+00:00",
"WarehouseId": 1,
"Taxcode": "sample string 5",
"AssValue": 1.0,
"ProductMainGroupId": 1,
"BranchCode": 1,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T23:49:05.7238668+00:00",
"ModifiedBy": 1,
"ModifiedOn": "2025-12-17T23:49:05.7238668+00:00",
"SODate": "2025-12-17T23:49:05.7238668+00:00",
"PSId": "sample string 7",
"PSDate": "2025-12-17T23:49:05.7238668+00:00",
"SoRefNo": "sample string 8",
"CustomerCode": "sample string 9",
"BatchClosingQty": 1.0,
"ItemName": "sample string 10",
"PSOId": "sample string 11",
"SchemeDiscount": 12.0,
"UnitName": "sample string 13",
"DiscountPer1": 1.0,
"DiscountAmt1": 1.0,
"DiscountRemark1": "sample string 14",
"DiscountPer2": 1.0,
"DiscountAmt2": 1.0,
"DiscountRemark2": "sample string 15",
"DiscountPer3": 1.0,
"DiscountAmt3": 1.0,
"DiscountRemark3": "sample string 16",
"DiscountPer4": 1.0,
"DiscountAmt4": 1.0
}
],
"schememaster": [
{
"Id": 1,
"SchemeId": 2,
"SchemeName": "sample string 3",
"Description": "sample string 4",
"FromDate": "2025-12-17T23:49:05.7238668+00:00",
"ToDate": "2025-12-17T23:49:05.7238668+00:00",
"SchemeType": "sample string 5",
"ProductMainGroupId": 6,
"Active": "sample string 7",
"ApplyOn": "sample string 8",
"SchemeImagePath": "QEA=",
"BranchCode": 9,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T23:49:05.7238668+00:00",
"ModifiedBy": 1,
"ModifiedOn": "2025-12-17T23:49:05.7238668+00:00",
"PerUnitFlag": "sample string 10"
},
{
"Id": 1,
"SchemeId": 2,
"SchemeName": "sample string 3",
"Description": "sample string 4",
"FromDate": "2025-12-17T23:49:05.7238668+00:00",
"ToDate": "2025-12-17T23:49:05.7238668+00:00",
"SchemeType": "sample string 5",
"ProductMainGroupId": 6,
"Active": "sample string 7",
"ApplyOn": "sample string 8",
"SchemeImagePath": "QEA=",
"BranchCode": 9,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T23:49:05.7238668+00:00",
"ModifiedBy": 1,
"ModifiedOn": "2025-12-17T23:49:05.7238668+00:00",
"PerUnitFlag": "sample string 10"
}
]
}
application/xml, text/xml
Sample:
<Z_SOCalculation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
<schememaster>
<S_SchemeMaster>
<Active>sample string 7</Active>
<ApplyOn>sample string 8</ApplyOn>
<BranchCode>9</BranchCode>
<CreatedBy>1</CreatedBy>
<CreatedOn>2025-12-17T23:49:05.7238668+00:00</CreatedOn>
<Description>sample string 4</Description>
<FromDate>2025-12-17T23:49:05.7238668+00:00</FromDate>
<Id>1</Id>
<ModifiedBy>1</ModifiedBy>
<ModifiedOn>2025-12-17T23:49:05.7238668+00:00</ModifiedOn>
<PerUnitFlag>sample string 10</PerUnitFlag>
<ProductMainGroupId>6</ProductMainGroupId>
<SchemeId>2</SchemeId>
<SchemeImagePath>QEA=</SchemeImagePath>
<SchemeName>sample string 3</SchemeName>
<SchemeType>sample string 5</SchemeType>
<ToDate>2025-12-17T23:49:05.7238668+00:00</ToDate>
</S_SchemeMaster>
<S_SchemeMaster>
<Active>sample string 7</Active>
<ApplyOn>sample string 8</ApplyOn>
<BranchCode>9</BranchCode>
<CreatedBy>1</CreatedBy>
<CreatedOn>2025-12-17T23:49:05.7238668+00:00</CreatedOn>
<Description>sample string 4</Description>
<FromDate>2025-12-17T23:49:05.7238668+00:00</FromDate>
<Id>1</Id>
<ModifiedBy>1</ModifiedBy>
<ModifiedOn>2025-12-17T23:49:05.7238668+00:00</ModifiedOn>
<PerUnitFlag>sample string 10</PerUnitFlag>
<ProductMainGroupId>6</ProductMainGroupId>
<SchemeId>2</SchemeId>
<SchemeImagePath>QEA=</SchemeImagePath>
<SchemeName>sample string 3</SchemeName>
<SchemeType>sample string 5</SchemeType>
<ToDate>2025-12-17T23:49:05.7238668+00:00</ToDate>
</S_SchemeMaster>
</schememaster>
<soline xmlns:d2p1="http://schemas.datacontract.org/2004/07/RREL.Data.Models.Views">
<d2p1:S_SOLineView>
<d2p1:AssValue>1</d2p1:AssValue>
<d2p1:BatchClosingQty>1</d2p1:BatchClosingQty>
<d2p1:BranchCode>1</d2p1:BranchCode>
<d2p1:CreatedBy>1</d2p1:CreatedBy>
<d2p1:CreatedOn>2025-12-17T23:49:05.7238668+00:00</d2p1:CreatedOn>
<d2p1:CustomerCode>sample string 9</d2p1:CustomerCode>
<d2p1:DiscountAmt>1</d2p1:DiscountAmt>
<d2p1:DiscountAmt1>1</d2p1:DiscountAmt1>
<d2p1:DiscountAmt2>1</d2p1:DiscountAmt2>
<d2p1:DiscountAmt3>1</d2p1:DiscountAmt3>
<d2p1:DiscountAmt4>1</d2p1:DiscountAmt4>
<d2p1:DiscountPer1>1</d2p1:DiscountPer1>
<d2p1:DiscountPer2>1</d2p1:DiscountPer2>
<d2p1:DiscountPer3>1</d2p1:DiscountPer3>
<d2p1:DiscountPer4>1</d2p1:DiscountPer4>
<d2p1:DiscountPercentage>1</d2p1:DiscountPercentage>
<d2p1:DiscountRemark1>sample string 14</d2p1:DiscountRemark1>
<d2p1:DiscountRemark2>sample string 15</d2p1:DiscountRemark2>
<d2p1:DiscountRemark3>sample string 16</d2p1:DiscountRemark3>
<d2p1:ExpectedDate>2025-12-17T23:49:05.7238668+00:00</d2p1:ExpectedDate>
<d2p1:Id>1</d2p1:Id>
<d2p1:ItemCode>sample string 4</d2p1:ItemCode>
<d2p1:ItemName>sample string 10</d2p1:ItemName>
<d2p1:LineNumber>2</d2p1:LineNumber>
<d2p1:ModifiedBy>1</d2p1:ModifiedBy>
<d2p1:ModifiedOn>2025-12-17T23:49:05.7238668+00:00</d2p1:ModifiedOn>
<d2p1:OrderQty>1</d2p1:OrderQty>
<d2p1:PSDate>2025-12-17T23:49:05.7238668+00:00</d2p1:PSDate>
<d2p1:PSId>sample string 7</d2p1:PSId>
<d2p1:PSOId>sample string 11</d2p1:PSOId>
<d2p1:PendingQty>1</d2p1:PendingQty>
<d2p1:ProductMainGroupId>1</d2p1:ProductMainGroupId>
<d2p1:Rate>1</d2p1:Rate>
<d2p1:SODate>2025-12-17T23:49:05.7238668+00:00</d2p1:SODate>
<d2p1:SOId>sample string 3</d2p1:SOId>
<d2p1:SalesQty>1</d2p1:SalesQty>
<d2p1:SchemeDiscount>12</d2p1:SchemeDiscount>
<d2p1:SoRefNo>sample string 8</d2p1:SoRefNo>
<d2p1:Taxcode>sample string 5</d2p1:Taxcode>
<d2p1:UnitId>1</d2p1:UnitId>
<d2p1:UnitName>sample string 13</d2p1:UnitName>
<d2p1:WarehouseId>1</d2p1:WarehouseId>
</d2p1:S_SOLineView>
<d2p1:S_SOLineView>
<d2p1:AssValue>1</d2p1:AssValue>
<d2p1:BatchClosingQty>1</d2p1:BatchClosingQty>
<d2p1:BranchCode>1</d2p1:BranchCode>
<d2p1:CreatedBy>1</d2p1:CreatedBy>
<d2p1:CreatedOn>2025-12-17T23:49:05.7238668+00:00</d2p1:CreatedOn>
<d2p1:CustomerCode>sample string 9</d2p1:CustomerCode>
<d2p1:DiscountAmt>1</d2p1:DiscountAmt>
<d2p1:DiscountAmt1>1</d2p1:DiscountAmt1>
<d2p1:DiscountAmt2>1</d2p1:DiscountAmt2>
<d2p1:DiscountAmt3>1</d2p1:DiscountAmt3>
<d2p1:DiscountAmt4>1</d2p1:DiscountAmt4>
<d2p1:DiscountPer1>1</d2p1:DiscountPer1>
<d2p1:DiscountPer2>1</d2p1:DiscountPer2>
<d2p1:DiscountPer3>1</d2p1:DiscountPer3>
<d2p1:DiscountPer4>1</d2p1:DiscountPer4>
<d2p1:DiscountPercentage>1</d2p1:DiscountPercentage>
<d2p1:DiscountRemark1>sample string 14</d2p1:DiscountRemark1>
<d2p1:DiscountRemark2>sample string 15</d2p1:DiscountRemark2>
<d2p1:DiscountRemark3>sample string 16</d2p1:DiscountRemark3>
<d2p1:ExpectedDate>2025-12-17T23:49:05.7238668+00:00</d2p1:ExpectedDate>
<d2p1:Id>1</d2p1:Id>
<d2p1:ItemCode>sample string 4</d2p1:ItemCode>
<d2p1:ItemName>sample string 10</d2p1:ItemName>
<d2p1:LineNumber>2</d2p1:LineNumber>
<d2p1:ModifiedBy>1</d2p1:ModifiedBy>
<d2p1:ModifiedOn>2025-12-17T23:49:05.7238668+00:00</d2p1:ModifiedOn>
<d2p1:OrderQty>1</d2p1:OrderQty>
<d2p1:PSDate>2025-12-17T23:49:05.7238668+00:00</d2p1:PSDate>
<d2p1:PSId>sample string 7</d2p1:PSId>
<d2p1:PSOId>sample string 11</d2p1:PSOId>
<d2p1:PendingQty>1</d2p1:PendingQty>
<d2p1:ProductMainGroupId>1</d2p1:ProductMainGroupId>
<d2p1:Rate>1</d2p1:Rate>
<d2p1:SODate>2025-12-17T23:49:05.7238668+00:00</d2p1:SODate>
<d2p1:SOId>sample string 3</d2p1:SOId>
<d2p1:SalesQty>1</d2p1:SalesQty>
<d2p1:SchemeDiscount>12</d2p1:SchemeDiscount>
<d2p1:SoRefNo>sample string 8</d2p1:SoRefNo>
<d2p1:Taxcode>sample string 5</d2p1:Taxcode>
<d2p1:UnitId>1</d2p1:UnitId>
<d2p1:UnitName>sample string 13</d2p1:UnitName>
<d2p1:WarehouseId>1</d2p1:WarehouseId>
</d2p1:S_SOLineView>
</soline>
</Z_SOCalculation>
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. |