POST api/Payment/ReceiveResult
Request Information
URI Parameters
None.
Body Parameters
ReceiveResultRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| orderId | string |
None. |
|
| merchantCode | string |
None. |
|
| transAmount | decimal number |
None. |
|
| fee | decimal number |
None. |
|
| discount | decimal number |
None. |
|
| totalAmount | decimal number |
None. |
|
| vtRequestId | integer |
None. |
|
| transactionStatus | integer |
None. |
|
| errorCode | string |
None. |
|
| paymentInstrument | PaymentInstrument |
None. |
Request Formats
application/json, text/json
Sample:
{
"orderId": "sample string 1",
"merchantCode": "sample string 2",
"transAmount": 3.0,
"fee": 4.0,
"discount": 5.0,
"totalAmount": 6.0,
"vtRequestId": 7,
"transactionStatus": 8,
"errorCode": "sample string 9",
"paymentInstrument": {
"paymentInstrumentId": "sample string 1",
"phoneNumber": "sample string 2",
"customerName": "sample string 3",
"effectiveDate": "sample string 4"
}
}
application/xml, text/xml
Sample:
<ReceiveResultRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NST.Viettel.Api.Models">
<discount>5</discount>
<errorCode>sample string 9</errorCode>
<fee>4</fee>
<merchantCode>sample string 2</merchantCode>
<orderId>sample string 1</orderId>
<paymentInstrument>
<customerName>sample string 3</customerName>
<effectiveDate>sample string 4</effectiveDate>
<paymentInstrumentId>sample string 1</paymentInstrumentId>
<phoneNumber>sample string 2</phoneNumber>
</paymentInstrument>
<totalAmount>6</totalAmount>
<transAmount>3</transAmount>
<transactionStatus>8</transactionStatus>
<vtRequestId>7</vtRequestId>
</ReceiveResultRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VerifyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
None. |
|
| orderId | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "sample string 1",
"orderId": "sample string 2"
}
application/xml, text/xml
Sample:
<VerifyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NST.Viettel.Api.Models"> <code>sample string 1</code> <orderId>sample string 2</orderId> </VerifyResponse>