CancelOrder
This method is used to cancel a payment order which had been upload before.
Request
This method is used to cancel a payment order which had been upload before
POST https://{SERVER}/Api/SBR/CancelOrder
Request Body
Name
Type
Description
AuthID*
Text
UserID assigned by SBR
ProtocolData*
Object
Data request
Reference*
Text
ID of payment order
Note
Text
Cancel note
{
// Response
}{
// Response
}Response
Parameters
Data type
Description
Status
Number
Return status of request:
0;Fail;1;Success
Error
Text
Error description
Request Example
//Request Cancel
{
"AuthID": “123”,
"ProtocolData": {
"Reference": "AGENT100013"
}
}//Request Cancel
{
"AuthID": “123”,
"ProtocolData": {
"Reference": "REF123456"
"Note":"Customer has been Canceled"
}
}Response Example
{
"Status": 1,
"Error": ""
}{
"Status": 0,
"Error": "Payment has been canceled!"
}//Note: Only cancel new transaction, not allow to cancel processing transaction
{
"Status": 0,
"Error": "Payment not allow update! "
}Last updated