POST api/Cart/Validate
Documentation for 'Validate'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| req | Documentation for 'req'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"PublicKey": "sample string 1",
"Signature": "sample string 2",
"ShoppingCartID": "sample string 3",
"TimeStamp": "2026-06-06T04:25:18.0895353+07:00",
"TransactionCode": "sample string 5",
"TotalAmount": 6.0,
"SalesOrderNo": "sample string 7",
"PaymentTypeCode": "sample string 8",
"PaymentAdminFee": 9.0,
"AdminFee": [
{
"$id": "2",
"No": 1,
"MinPaymentLayer": "sample string 2",
"RpPaymentLayer": "sample string 3",
"PercentPaymentLayer": "sample string 4"
},
{
"$ref": "2"
},
{
"$ref": "2"
}
],
"paymentAccountID": "sample string 10",
"Longitude": "sample string 11",
"Latitude": "sample string 12",
"Source": "sample string 13",
"PartialPayment": {
"$id": "3",
"TransactionPartialCode": "sample string 1",
"TransactionPartialAmount": 2.0
},
"DeviceID": "sample string 14"
}
application/xml, text/xml
Sample:
<RequestValidatePayment xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PublicKey>sample string 1</PublicKey>
<Signature>sample string 2</Signature>
<ShoppingCartID>sample string 3</ShoppingCartID>
<TimeStamp>2026-06-06T04:25:18.0895353+07:00</TimeStamp>
<TransactionCode>sample string 5</TransactionCode>
<TotalAmount>6</TotalAmount>
<SalesOrderNo>sample string 7</SalesOrderNo>
<PaymentTypeCode>sample string 8</PaymentTypeCode>
<PaymentAdminFee>9</PaymentAdminFee>
<AdminFee>
<AdminFee>
<No>1</No>
<MinPaymentLayer>sample string 2</MinPaymentLayer>
<RpPaymentLayer>sample string 3</RpPaymentLayer>
<PercentPaymentLayer>sample string 4</PercentPaymentLayer>
</AdminFee>
<AdminFee>
<No>1</No>
<MinPaymentLayer>sample string 2</MinPaymentLayer>
<RpPaymentLayer>sample string 3</RpPaymentLayer>
<PercentPaymentLayer>sample string 4</PercentPaymentLayer>
</AdminFee>
<AdminFee>
<No>1</No>
<MinPaymentLayer>sample string 2</MinPaymentLayer>
<RpPaymentLayer>sample string 3</RpPaymentLayer>
<PercentPaymentLayer>sample string 4</PercentPaymentLayer>
</AdminFee>
</AdminFee>
<paymentAccountID>sample string 10</paymentAccountID>
<Longitude>sample string 11</Longitude>
<Latitude>sample string 12</Latitude>
<Source>sample string 13</Source>
<PartialPayment>
<TransactionPartialCode>sample string 1</TransactionPartialCode>
<TransactionPartialAmount>2</TransactionPartialAmount>
</PartialPayment>
<DeviceID>sample string 14</DeviceID>
</RequestValidatePayment>
Response Information
Response body formats
application/json, text/json
Sample:
{
"ResponseCode": "sample string 1",
"ResponseMessage": "sample string 2",
"ReturnUrl": "sample string 3",
"TimeStamp": "sample string 4",
"LastTimePay": "sample string 5",
"ExpiredDateTime": "sample string 6",
"GAModel": {
"$id": "2",
"PaymentID": "sample string 1",
"TotalAmount": 2.0,
"ShippingAmount": 3.0,
"ProductDetailList": [
{
"$id": "3",
"ProductID": "sample string 1",
"Amount": 2.0,
"Quantity": 3
},
{
"$ref": "3"
},
{
"$ref": "3"
}
]
},
"EmailModel": {
"$id": "4",
"IsHaveEmail": true,
"EmailTo": "sample string 2",
"FromNameDisplay": "sample string 3",
"ToNameDisplay": "sample string 4",
"Subject": "sample string 5",
"Body": "sample string 6",
"BarcodeUrl": "sample string 7",
"CustomerMobileNo": "sample string 8"
},
"PartialSalesOrderNo": [
"sample string 1",
"sample string 2",
"sample string 3"
]
}
application/xml, text/xml
Sample:
<ResponseValidatePayment xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResponseCode>sample string 1</ResponseCode>
<ResponseMessage>sample string 2</ResponseMessage>
<ReturnUrl>sample string 3</ReturnUrl>
<TimeStamp>sample string 4</TimeStamp>
<LastTimePay>sample string 5</LastTimePay>
<ExpiredDateTime>sample string 6</ExpiredDateTime>
<GAModel>
<PaymentID>sample string 1</PaymentID>
<TotalAmount>2</TotalAmount>
<ShippingAmount>3</ShippingAmount>
<ProductDetailList>
<ProductDetail>
<ProductID>sample string 1</ProductID>
<Amount>2</Amount>
<Quantity>3</Quantity>
</ProductDetail>
<ProductDetail>
<ProductID>sample string 1</ProductID>
<Amount>2</Amount>
<Quantity>3</Quantity>
</ProductDetail>
<ProductDetail>
<ProductID>sample string 1</ProductID>
<Amount>2</Amount>
<Quantity>3</Quantity>
</ProductDetail>
</ProductDetailList>
</GAModel>
<EmailModel>
<IsHaveEmail>true</IsHaveEmail>
<EmailTo>sample string 2</EmailTo>
<FromNameDisplay>sample string 3</FromNameDisplay>
<ToNameDisplay>sample string 4</ToNameDisplay>
<Subject>sample string 5</Subject>
<Body>sample string 6</Body>
<BarcodeUrl>sample string 7</BarcodeUrl>
<CustomerMobileNo>sample string 8</CustomerMobileNo>
</EmailModel>
<PartialSalesOrderNo>
<string>sample string 1</string>
<string>sample string 2</string>
<string>sample string 3</string>
</PartialSalesOrderNo>
</ResponseValidatePayment>