Undo Approve Pool Payment

Service Address

Request Parameters

PaymentDealerAuthentication

Parameter Explanation
DealerCode(string) Dealer code issued by the Moka system
Username (string) Api username given by Moka system
Password (string) Api password given by Moka system
CheckKey (string) The control key (DealerCode + "MK" + Username + "PD" + Password) is created by passing this information, combined as a String, through the SHA-256 hash algorithm.
Click here to go to the trial screen.

PaymentDealerRequest

Parameter Explanation
VirtualPosOrderId (string) It is the transaction number information returned as a result of the payment transaction. It is the number returned with the name trxCode in 3D payments.
Key: trxCode     Value : ORDER-17131QQFG04026575
OtherTrxCode (string) It is the unique transaction number given by the dealer when sending the payment transaction. If VirtualPosOrderId is given, you can send this number blank. Or if you want to use your own Unique number, you can send the VirtualPosOrderId field blank.
SubDealer (Array-List)(zorunlu)
DealerId (integer)It is the dealer number of the sub-dealer that will receive the payment.

Sample Request (JSON)


{
   "PaymentDealerAuthentication":{
      "DealerCode":"xxx",
      "Username":"xxx",
      "Password":"xxx",
      "CheckKey":"7c662eb7d85e9ec954ba3265d2fff6204e05d878de828ed2cdb3f0627acf4cc8"
   },
   "PaymentDealerRequest":{
      "VirtualPosOrderId":"Test-fa80dffc-64be-4771-a9b3-c4527982a735",
      "OtherTrxCode":"",
      "SubDealer":[
         {
            "DealerId":1787
         },
         {
            "DealerId":1788
         }
      ]
   }
}

Successful Request Result

Successful Result Example


{
   "Data":{
      "IsSuccessful":true,
      "ResultCode":"",
      "ResultMessage":"",
      "VirtualPosOrderId":"ORDER-17131QMlH04026199"
   },
   "ResultCode":"Success",
   "ResultMessage":"",
   "Exception":null
}

Failed Request Result

ResultCodeExplanation
PaymentDealer.CheckPaymentDealerAuthentication.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
PaymentDealer.CheckPaymentDealerAuthentication.InvalidAccountNo such dealer was found.
PaymentDealer.UndoApprovePoolPayment.OtherTrxCodeOrVirtualPosOrderIdMustGivenIncomplete data sent. OrderId or OtherTrxCode must be entered.
PaymentDealer.UndoApprovePoolPayment.OtherTrxCodeAndVirtualPosOrderIdNotMatchOtherTrxCode and VirtualPosOrderId do not match.
PaymentDealer.UndoApprovePoolPayment.DealerPaymentNotFoundNo payment record was found for the information entered to be confirmed.
PaymentDealer.UndoApprovePoolPayment.PaymentNotApprovedYet This payment has not yet been confirmed.
PaymentDealer.UndoApprovePoolPayment.PaymentNotApprovedYetForSubDealerThe pool payment for the sub-dealer has not yet been approved.
PaymentDealer.UndoApprovePoolPayment.PaymentIsNotPoolPayment This payment is not a pool payment.
EX An unexpected error has occurred

Example of Failed Result


{
   "Data":null,
   "ResultCode":"PaymentDealer.CheckPaymentDealerAuthentication.InvalidAccount ",
   "ResultMessage":"",
   "Exception":null
}