POST api/calPointByProducts
Request Information
URI Parameters
None.
Body Parameters
EarnPointRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| crmCode | string |
None. |
|
| orderDate | date |
None. |
|
| orderHId | string |
None. |
|
| branchCode | string |
None. |
|
| sourceCode | string |
None. |
|
| serviceCharge | decimal number |
None. |
|
| calPointStatus | string |
None. |
|
| serviceType | string |
None. |
|
| calPointType | string |
None. |
|
| discountAll | decimal number |
None. |
|
| productLists | Collection of ProductDetail |
None. |
|
| extDiscounts | Collection of ExtDiscountsEarnPoint |
None. |
Request Formats
application/json, text/json
Sample:
{
"crmCode": "sample string 1",
"orderDate": "2026-01-13T18:24:22.3973842+07:00",
"orderHId": "sample string 2",
"branchCode": "sample string 3",
"sourceCode": "sample string 4",
"serviceCharge": 1.0,
"calPointStatus": "sample string 5",
"serviceType": "sample string 6",
"calPointType": "sample string 7",
"discountAll": 1.0,
"productLists": [
{
"productSeq": "sample string 1",
"productCode": "sample string 2",
"productName": "sample string 3",
"pricePerUnit": 1.0,
"qty": 1,
"totalPrice": 1.0,
"discountTotal": 1.0,
"totalNetPriceForCal": 1.0,
"promotionCode": "sample string 4"
},
{
"productSeq": "sample string 1",
"productCode": "sample string 2",
"productName": "sample string 3",
"pricePerUnit": 1.0,
"qty": 1,
"totalPrice": 1.0,
"discountTotal": 1.0,
"totalNetPriceForCal": 1.0,
"promotionCode": "sample string 4"
}
],
"extDiscounts": [
{
"discountType": "sample string 1",
"discountCode": "sample string 2",
"promotionName": "sample string 3",
"totalDiscount": 1.0
},
{
"discountType": "sample string 1",
"discountCode": "sample string 2",
"promotionName": "sample string 3",
"totalDiscount": 1.0
}
]
}
application/xml, text/xml
Sample:
<EarnPointRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VentilatorAPI.HTTP.Request">
<branchCode>sample string 3</branchCode>
<calPointStatus>sample string 5</calPointStatus>
<calPointType>sample string 7</calPointType>
<crmCode>sample string 1</crmCode>
<discountAll>1</discountAll>
<extDiscounts>
<ExtDiscountsEarnPoint>
<discountCode>sample string 2</discountCode>
<discountType>sample string 1</discountType>
<promotionName>sample string 3</promotionName>
<totalDiscount>1</totalDiscount>
</ExtDiscountsEarnPoint>
<ExtDiscountsEarnPoint>
<discountCode>sample string 2</discountCode>
<discountType>sample string 1</discountType>
<promotionName>sample string 3</promotionName>
<totalDiscount>1</totalDiscount>
</ExtDiscountsEarnPoint>
</extDiscounts>
<orderDate>2026-01-13T18:24:22.3973842+07:00</orderDate>
<orderHId>sample string 2</orderHId>
<productLists>
<ProductDetail>
<discountTotal>1</discountTotal>
<pricePerUnit>1</pricePerUnit>
<productCode>sample string 2</productCode>
<productName>sample string 3</productName>
<productSeq>sample string 1</productSeq>
<promotionCode>sample string 4</promotionCode>
<qty>1</qty>
<totalNetPriceForCal>1</totalNetPriceForCal>
<totalPrice>1</totalPrice>
</ProductDetail>
<ProductDetail>
<discountTotal>1</discountTotal>
<pricePerUnit>1</pricePerUnit>
<productCode>sample string 2</productCode>
<productName>sample string 3</productName>
<productSeq>sample string 1</productSeq>
<promotionCode>sample string 4</promotionCode>
<qty>1</qty>
<totalNetPriceForCal>1</totalNetPriceForCal>
<totalPrice>1</totalPrice>
</ProductDetail>
</productLists>
<serviceCharge>1</serviceCharge>
<serviceType>sample string 6</serviceType>
<sourceCode>sample string 4</sourceCode>
</EarnPointRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.