POST api/v1/notify-trans
Request Information
URI Parameters
None.
Body Parameters
PaymentRequestNotifyName | Description | Type | Additional information |
---|---|---|---|
header | PaymentRequestNotifyHeader |
None. |
|
data | PaymentRequestNotifyDaTa |
None. |
Request Formats
application/json, text/json
Sample:
{ "header": { "msgId": "sample string 1", "msgType": "sample string 2", "channelId": "sample string 3", "providerId": "sample string 4", "merchantId": "sample string 5", "productId": "sample string 6", "timestamp": "sample string 7", "recordNum": "sample string 8", "signature": "sample string 9", "encrypt": "sample string 10" }, "data": { "records": [ { "transId": "sample string 1", "originalId": "sample string 2", "channelId": "sample string 3", "priority": "sample string 4", "recordNo": "sample string 5", "transTime": "sample string 6", "transType": "sample string 7", "serviceType": "sample string 8", "paymentType": "sample string 9", "paymentMethod": "sample string 10", "custCode": "sample string 11", "custName": "sample string 12", "custAcct": "sample string 13", "idCard": "sample string 14", "phoneNo": "sample string 15", "email": "sample string 16", "sendBankId": "sample string 17", "sendBranchId": "sample string 18", "sendAcctId": "sample string 19", "sendAcctName": "sample string 20", "sendVirtualAcctId": "sample string 21", "sendVirtualAcctName": "sample string 22", "sendAddr": "sample string 23", "sendCity": "sample string 24", "sendCountry": "sample string 25", "recvBankId": "sample string 26", "recvBranchId": "sample string 27", "recvAcctId": "sample string 28", "recvAcctName": "sample string 29", "recvVirtualAcctId": "sample string 30", "recvVirtualAcctName": "sample string 31", "recvAddr": "sample string 32", "recvCity": "sample string 33", "recvCountry": "sample string 34", "billId": "sample string 35", "billTerm": "sample string 36", "amount": "sample string 37", "fee": "sample string 38", "vat": "sample string 39", "balance": "sample string 40", "payRefNo": "sample string 41", "payRefInfo": "sample string 42", "bankTransId": "sample string 43", "remark": "sample string 44", "status": { "code": "sample string 1", "message": "sample string 2" }, "currencyCode": "sample string 45" }, { "transId": "sample string 1", "originalId": "sample string 2", "channelId": "sample string 3", "priority": "sample string 4", "recordNo": "sample string 5", "transTime": "sample string 6", "transType": "sample string 7", "serviceType": "sample string 8", "paymentType": "sample string 9", "paymentMethod": "sample string 10", "custCode": "sample string 11", "custName": "sample string 12", "custAcct": "sample string 13", "idCard": "sample string 14", "phoneNo": "sample string 15", "email": "sample string 16", "sendBankId": "sample string 17", "sendBranchId": "sample string 18", "sendAcctId": "sample string 19", "sendAcctName": "sample string 20", "sendVirtualAcctId": "sample string 21", "sendVirtualAcctName": "sample string 22", "sendAddr": "sample string 23", "sendCity": "sample string 24", "sendCountry": "sample string 25", "recvBankId": "sample string 26", "recvBranchId": "sample string 27", "recvAcctId": "sample string 28", "recvAcctName": "sample string 29", "recvVirtualAcctId": "sample string 30", "recvVirtualAcctName": "sample string 31", "recvAddr": "sample string 32", "recvCity": "sample string 33", "recvCountry": "sample string 34", "billId": "sample string 35", "billTerm": "sample string 36", "amount": "sample string 37", "fee": "sample string 38", "vat": "sample string 39", "balance": "sample string 40", "payRefNo": "sample string 41", "payRefInfo": "sample string 42", "bankTransId": "sample string 43", "remark": "sample string 44", "status": { "code": "sample string 1", "message": "sample string 2" }, "currencyCode": "sample string 45" } ] } }
application/xml, text/xml
Sample:
<PaymentRequestNotify xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ThanhToanOnlineAPI.Models"> <data> <records> <PaymentNotifyListDaTa> <amount>sample string 37</amount> <balance>sample string 40</balance> <bankTransId>sample string 43</bankTransId> <billId>sample string 35</billId> <billTerm>sample string 36</billTerm> <channelId>sample string 3</channelId> <currencyCode>sample string 45</currencyCode> <custAcct>sample string 13</custAcct> <custCode>sample string 11</custCode> <custName>sample string 12</custName> <email>sample string 16</email> <fee>sample string 38</fee> <idCard>sample string 14</idCard> <originalId>sample string 2</originalId> <payRefInfo>sample string 42</payRefInfo> <payRefNo>sample string 41</payRefNo> <paymentMethod>sample string 10</paymentMethod> <paymentType>sample string 9</paymentType> <phoneNo>sample string 15</phoneNo> <priority>sample string 4</priority> <recordNo>sample string 5</recordNo> <recvAcctId>sample string 28</recvAcctId> <recvAcctName>sample string 29</recvAcctName> <recvAddr>sample string 32</recvAddr> <recvBankId>sample string 26</recvBankId> <recvBranchId>sample string 27</recvBranchId> <recvCity>sample string 33</recvCity> <recvCountry>sample string 34</recvCountry> <recvVirtualAcctId>sample string 30</recvVirtualAcctId> <recvVirtualAcctName>sample string 31</recvVirtualAcctName> <remark>sample string 44</remark> <sendAcctId>sample string 19</sendAcctId> <sendAcctName>sample string 20</sendAcctName> <sendAddr>sample string 23</sendAddr> <sendBankId>sample string 17</sendBankId> <sendBranchId>sample string 18</sendBranchId> <sendCity>sample string 24</sendCity> <sendCountry>sample string 25</sendCountry> <sendVirtualAcctId>sample string 21</sendVirtualAcctId> <sendVirtualAcctName>sample string 22</sendVirtualAcctName> <serviceType>sample string 8</serviceType> <status> <code>sample string 1</code> <message>sample string 2</message> </status> <transId>sample string 1</transId> <transTime>sample string 6</transTime> <transType>sample string 7</transType> <vat>sample string 39</vat> </PaymentNotifyListDaTa> <PaymentNotifyListDaTa> <amount>sample string 37</amount> <balance>sample string 40</balance> <bankTransId>sample string 43</bankTransId> <billId>sample string 35</billId> <billTerm>sample string 36</billTerm> <channelId>sample string 3</channelId> <currencyCode>sample string 45</currencyCode> <custAcct>sample string 13</custAcct> <custCode>sample string 11</custCode> <custName>sample string 12</custName> <email>sample string 16</email> <fee>sample string 38</fee> <idCard>sample string 14</idCard> <originalId>sample string 2</originalId> <payRefInfo>sample string 42</payRefInfo> <payRefNo>sample string 41</payRefNo> <paymentMethod>sample string 10</paymentMethod> <paymentType>sample string 9</paymentType> <phoneNo>sample string 15</phoneNo> <priority>sample string 4</priority> <recordNo>sample string 5</recordNo> <recvAcctId>sample string 28</recvAcctId> <recvAcctName>sample string 29</recvAcctName> <recvAddr>sample string 32</recvAddr> <recvBankId>sample string 26</recvBankId> <recvBranchId>sample string 27</recvBranchId> <recvCity>sample string 33</recvCity> <recvCountry>sample string 34</recvCountry> <recvVirtualAcctId>sample string 30</recvVirtualAcctId> <recvVirtualAcctName>sample string 31</recvVirtualAcctName> <remark>sample string 44</remark> <sendAcctId>sample string 19</sendAcctId> <sendAcctName>sample string 20</sendAcctName> <sendAddr>sample string 23</sendAddr> <sendBankId>sample string 17</sendBankId> <sendBranchId>sample string 18</sendBranchId> <sendCity>sample string 24</sendCity> <sendCountry>sample string 25</sendCountry> <sendVirtualAcctId>sample string 21</sendVirtualAcctId> <sendVirtualAcctName>sample string 22</sendVirtualAcctName> <serviceType>sample string 8</serviceType> <status> <code>sample string 1</code> <message>sample string 2</message> </status> <transId>sample string 1</transId> <transTime>sample string 6</transTime> <transType>sample string 7</transType> <vat>sample string 39</vat> </PaymentNotifyListDaTa> </records> </data> <header> <channelId>sample string 3</channelId> <encrypt>sample string 10</encrypt> <merchantId>sample string 5</merchantId> <msgId>sample string 1</msgId> <msgType>sample string 2</msgType> <productId>sample string 6</productId> <providerId>sample string 4</providerId> <recordNum>sample string 8</recordNum> <signature>sample string 9</signature> <timestamp>sample string 7</timestamp> </header> </PaymentRequestNotify>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PaymentResponseNotifyName | Description | Type | Additional information |
---|---|---|---|
header | PaymentRequestNotifyHeader |
None. |
|
data | PaymentResponseNotifyDaTa |
None. |
Response Formats
application/json, text/json
Sample:
{ "header": { "msgId": "sample string 1", "msgType": "sample string 2", "channelId": "sample string 3", "providerId": "sample string 4", "merchantId": "sample string 5", "productId": "sample string 6", "timestamp": "sample string 7", "recordNum": "sample string 8", "signature": "sample string 9", "encrypt": "sample string 10" }, "data": { "errors": { "errorCode": "sample string 1", "errorDesc": "sample string 2" }, "records": [ { "transId": "sample string 1", "originalId": "sample string 2", "channelId": "sample string 3", "priority": "sample string 4", "recordNo": "sample string 5", "transTime": "sample string 6", "transType": "sample string 7", "serviceType": "sample string 8", "paymentType": "sample string 9", "paymentMethod": "sample string 10", "custCode": "sample string 11", "custName": "sample string 12", "custAcct": "sample string 13", "idCard": "sample string 14", "phoneNo": "sample string 15", "email": "sample string 16", "sendBankId": "sample string 17", "sendBranchId": "sample string 18", "sendAcctId": "sample string 19", "sendAcctName": "sample string 20", "sendVirtualAcctId": "sample string 21", "sendVirtualAcctName": "sample string 22", "sendAddr": "sample string 23", "sendCity": "sample string 24", "sendCountry": "sample string 25", "recvBankId": "sample string 26", "recvBranchId": "sample string 27", "recvAcctId": "sample string 28", "recvAcctName": "sample string 29", "recvVirtualAcctId": "sample string 30", "recvVirtualAcctName": "sample string 31", "recvAddr": "sample string 32", "recvCity": "sample string 33", "recvCountry": "sample string 34", "billId": "sample string 35", "billTerm": "sample string 36", "amount": "sample string 37", "fee": "sample string 38", "vat": "sample string 39", "balance": "sample string 40", "payRefNo": "sample string 41", "payRefInfo": "sample string 42", "bankTransId": "sample string 43", "remark": "sample string 44", "status": { "code": "sample string 1", "message": "sample string 2" }, "currencyCode": "sample string 45" }, { "transId": "sample string 1", "originalId": "sample string 2", "channelId": "sample string 3", "priority": "sample string 4", "recordNo": "sample string 5", "transTime": "sample string 6", "transType": "sample string 7", "serviceType": "sample string 8", "paymentType": "sample string 9", "paymentMethod": "sample string 10", "custCode": "sample string 11", "custName": "sample string 12", "custAcct": "sample string 13", "idCard": "sample string 14", "phoneNo": "sample string 15", "email": "sample string 16", "sendBankId": "sample string 17", "sendBranchId": "sample string 18", "sendAcctId": "sample string 19", "sendAcctName": "sample string 20", "sendVirtualAcctId": "sample string 21", "sendVirtualAcctName": "sample string 22", "sendAddr": "sample string 23", "sendCity": "sample string 24", "sendCountry": "sample string 25", "recvBankId": "sample string 26", "recvBranchId": "sample string 27", "recvAcctId": "sample string 28", "recvAcctName": "sample string 29", "recvVirtualAcctId": "sample string 30", "recvVirtualAcctName": "sample string 31", "recvAddr": "sample string 32", "recvCity": "sample string 33", "recvCountry": "sample string 34", "billId": "sample string 35", "billTerm": "sample string 36", "amount": "sample string 37", "fee": "sample string 38", "vat": "sample string 39", "balance": "sample string 40", "payRefNo": "sample string 41", "payRefInfo": "sample string 42", "bankTransId": "sample string 43", "remark": "sample string 44", "status": { "code": "sample string 1", "message": "sample string 2" }, "currencyCode": "sample string 45" } ] } }
application/xml, text/xml
Sample:
<PaymentResponseNotify xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ThanhToanOnlineAPI.Models"> <data> <errors> <errorCode>sample string 1</errorCode> <errorDesc>sample string 2</errorDesc> </errors> <records> <PaymentNotifyListDaTa> <amount>sample string 37</amount> <balance>sample string 40</balance> <bankTransId>sample string 43</bankTransId> <billId>sample string 35</billId> <billTerm>sample string 36</billTerm> <channelId>sample string 3</channelId> <currencyCode>sample string 45</currencyCode> <custAcct>sample string 13</custAcct> <custCode>sample string 11</custCode> <custName>sample string 12</custName> <email>sample string 16</email> <fee>sample string 38</fee> <idCard>sample string 14</idCard> <originalId>sample string 2</originalId> <payRefInfo>sample string 42</payRefInfo> <payRefNo>sample string 41</payRefNo> <paymentMethod>sample string 10</paymentMethod> <paymentType>sample string 9</paymentType> <phoneNo>sample string 15</phoneNo> <priority>sample string 4</priority> <recordNo>sample string 5</recordNo> <recvAcctId>sample string 28</recvAcctId> <recvAcctName>sample string 29</recvAcctName> <recvAddr>sample string 32</recvAddr> <recvBankId>sample string 26</recvBankId> <recvBranchId>sample string 27</recvBranchId> <recvCity>sample string 33</recvCity> <recvCountry>sample string 34</recvCountry> <recvVirtualAcctId>sample string 30</recvVirtualAcctId> <recvVirtualAcctName>sample string 31</recvVirtualAcctName> <remark>sample string 44</remark> <sendAcctId>sample string 19</sendAcctId> <sendAcctName>sample string 20</sendAcctName> <sendAddr>sample string 23</sendAddr> <sendBankId>sample string 17</sendBankId> <sendBranchId>sample string 18</sendBranchId> <sendCity>sample string 24</sendCity> <sendCountry>sample string 25</sendCountry> <sendVirtualAcctId>sample string 21</sendVirtualAcctId> <sendVirtualAcctName>sample string 22</sendVirtualAcctName> <serviceType>sample string 8</serviceType> <status> <code>sample string 1</code> <message>sample string 2</message> </status> <transId>sample string 1</transId> <transTime>sample string 6</transTime> <transType>sample string 7</transType> <vat>sample string 39</vat> </PaymentNotifyListDaTa> <PaymentNotifyListDaTa> <amount>sample string 37</amount> <balance>sample string 40</balance> <bankTransId>sample string 43</bankTransId> <billId>sample string 35</billId> <billTerm>sample string 36</billTerm> <channelId>sample string 3</channelId> <currencyCode>sample string 45</currencyCode> <custAcct>sample string 13</custAcct> <custCode>sample string 11</custCode> <custName>sample string 12</custName> <email>sample string 16</email> <fee>sample string 38</fee> <idCard>sample string 14</idCard> <originalId>sample string 2</originalId> <payRefInfo>sample string 42</payRefInfo> <payRefNo>sample string 41</payRefNo> <paymentMethod>sample string 10</paymentMethod> <paymentType>sample string 9</paymentType> <phoneNo>sample string 15</phoneNo> <priority>sample string 4</priority> <recordNo>sample string 5</recordNo> <recvAcctId>sample string 28</recvAcctId> <recvAcctName>sample string 29</recvAcctName> <recvAddr>sample string 32</recvAddr> <recvBankId>sample string 26</recvBankId> <recvBranchId>sample string 27</recvBranchId> <recvCity>sample string 33</recvCity> <recvCountry>sample string 34</recvCountry> <recvVirtualAcctId>sample string 30</recvVirtualAcctId> <recvVirtualAcctName>sample string 31</recvVirtualAcctName> <remark>sample string 44</remark> <sendAcctId>sample string 19</sendAcctId> <sendAcctName>sample string 20</sendAcctName> <sendAddr>sample string 23</sendAddr> <sendBankId>sample string 17</sendBankId> <sendBranchId>sample string 18</sendBranchId> <sendCity>sample string 24</sendCity> <sendCountry>sample string 25</sendCountry> <sendVirtualAcctId>sample string 21</sendVirtualAcctId> <sendVirtualAcctName>sample string 22</sendVirtualAcctName> <serviceType>sample string 8</serviceType> <status> <code>sample string 1</code> <message>sample string 2</message> </status> <transId>sample string 1</transId> <transTime>sample string 6</transTime> <transType>sample string 7</transType> <vat>sample string 39</vat> </PaymentNotifyListDaTa> </records> </data> <header> <channelId>sample string 3</channelId> <encrypt>sample string 10</encrypt> <merchantId>sample string 5</merchantId> <msgId>sample string 1</msgId> <msgType>sample string 2</msgType> <productId>sample string 6</productId> <providerId>sample string 4</providerId> <recordNum>sample string 8</recordNum> <signature>sample string 9</signature> <timestamp>sample string 7</timestamp> </header> </PaymentResponseNotify>