POST api/PostSale/ConsumePointsAgainstOrder
Request Information
URI Parameters
None.
Body Parameters
PointDetailName | Description | Type | Additional information |
---|---|---|---|
AppId | string |
None. |
|
AppKey | string |
None. |
|
CustomerCode | string |
None. |
|
OrderType | string |
None. |
|
RedeemedPoints | decimal number |
None. |
|
RedemptionDate | date |
None. |
|
OrderId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AppId": "sample string 1", "AppKey": "sample string 2", "CustomerCode": "sample string 3", "OrderType": "sample string 4", "RedeemedPoints": 5.1, "RedemptionDate": "2025-04-05T23:58:03.0338181+08:00", "OrderId": "sample string 7" }
text/xml
Sample:
<PointDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models"> <AppId>sample string 1</AppId> <AppKey>sample string 2</AppKey> <CustomerCode>sample string 3</CustomerCode> <OrderId>sample string 7</OrderId> <OrderType>sample string 4</OrderType> <RedeemedPoints>5.1</RedeemedPoints> <RedemptionDate>2025-04-05T23:58:03.0338181+08:00</RedemptionDate> </PointDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CustomerPointsResponseName | Description | Type | Additional information |
---|---|---|---|
code | string |
None. |
|
msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "msg": "sample string 2" }
text/xml
Sample:
<CustomerPointsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models"> <code>sample string 1</code> <msg>sample string 2</msg> </CustomerPointsResponse>