Get Statement List

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.

DealerStatementRequest

Parameter Explanation
StatementStartDate (datetime) Statement start date (yyyy-MM-dd ) (optional)
StatementEndDate (datetime) Statement end date (yyyy-MM-dd ) (optional)
AccountingId (integer) Accounting id of the relevant transaction. (optional)
StatementId (integer) Extract id. (optional)

Returns

Parameter Explanation
StatementList (Array)

DealerStatementId (integer)Dealer statement id.
CurrencyId (integer)Currency id.
StatementStartDate (datetime)Statement start date
StatementEndDate (datetime)Statement expiry date.
WillBePaidOn (datetime)Information on when the payment will be credited to the dealer.
StatementStatus (integer)State of the extract.
SalesCount (integer)Number of sales.
SalesTotal (decimal)Total of sales.
SalesCommissionTotal (decimal)Total commission of sales.
RefundCount (integer)Number of returns.
RefundTotal (decimal)Total of returns.
RefundCommissionTotal (decimal)Total return commissions.
DealerAccountingId (integer)Dealer accounting id.
Status (integer)Situation.
PaymentList (Array)

DealerPaymentId (integer)Payment id
OtherTrxCode (string)counter transaction number
CardHolderFullName (string)Card owner's name and last name
CardNumberFirstSix (string)The first 6 digits of the card number
CardNumberLastFour (string)Last 4 digits of card number
PaymentDate (datetime) Payment date
Amount (decimal)Payment total
RefAmount (decimal)Refund amount
CurrencyCode(string)Currency unit
InstallmentNumber (integer)Number of installments
DealerCommissionAmount (decimal)Dealer commission amount
IsThreeD (bool)3D Payment?
Description (string)Payment description
PaymentStatus (string)Payment status
TrxStatus (string)Transaction status
Software (string)The platform from which the payment is sent
PaymentTrxList (Array)

DealerPaymentTrxId(integer)Payment transaction id
DealerPaymentId (integer) Payment id
TrxCode (string)Transaction code between the bank and Moka
TrxDate (datetime)Transaction date
Amount (decimal)Payment total
TrxType (integer)Type of payment transaction
TrxStatus (integer)Status of the payment transaction
PaymentReason (integer)Payment status (cancellation, refund, regular payment, etc.)
VoidRefundReason(integer)Code showing the reason for cancellation or refund
VirtualPosOrderId (string)virtual pos transaction number
ResultMessage (string)Error message returned from bank

Sample Request (JSON)


{
   "DealerAuthentication":{
      "DealerCode":"XXX",
      "Username":"XXX",
      "Password":"XXX",
      "CheckKey":"28ba1f316e661ee7a0477a13aa30613da548c94a8098829af9255b04d7e916e3"
   },
   "DealerStatementRequest":{
      "StatementStartDate":"",
      "StatementEndDate":"",
      "AccountingId":"",
      "StatementId":"731"
   }
}

Successful Request Result

Successful Result Example


{
   "Data":{
      "IsSuccessful":true,
      "ResultCode":"",
      "ResultMessage":"",
      "ListItemCount":1,
      "StatementList":[
         {
            "DealerStatementId":731,
            "CurrencyId":0,
            "StatementStartDate":"2020-04-05T00:00:00",
            "StatementEndDate":"2020-04-06T00:00:00",
            "WillBePaidOn":"2020-04-07T00:00:00",
            "StatementStatus":3,
            "SalesCount":3,
            "SalesTotal":300.00,
            "SalesCommissionTotal":17.10,
            "RefundCount":0,
            "RefundTotal":0.00,
            "RefundCommissionTotal":0.00,
            "DealerAccountingId":0,
            "Status":0,
            "PaymentList":[
               {
                  "DealerPaymentId":56125,
                  "OtherTrxCode":"20200406105805",
                  "CardHolderFullName":"Zeynep HASHAN",
                  "CardNumberFirstSix":"526955",
                  "CardNumberLastFour":"4444",
                  "PaymentDate":"2020-04-06T10:58:05.417",
                  "Amount":100.00,
                  "RefAmount":0.00,
                  "CurrencyCode":"TL",
                  "InstallmentNumber":2,
                  "DealerCommissionAmount":5.70,
                  "IsThreeD":false,
                  "Description":"",
                  "PaymentStatus":2,
                  "TrxStatus":1,
                  "Software":"Possimulation",
                  "PaymentTrxList":[
                     {
                        "DealerPaymentTrxId":37247,
                        "DealerPaymentId":56125,
                        "TrxCode":"25f0192d-d6f2-4230-bf42-851ca0163646",
                        "TrxDate":"2020-04-06T10:58:05.513",
                        "Amount":100.00,
                        "TrxType":2,
                        "TrxStatus":1,
                        "PaymentReason":1,
                        "VoidRefundReason":0,
                        "VirtualPosOrderId":"Test-169bb9bf-9d70-4008-a35c-81e59cd2a018",
                        "ResultMessage":""
                     }
                  ]
               },
               {
                  "DealerPaymentId":56126,
                  "OtherTrxCode":"20200406105808",
                  "CardHolderFullName":"Zeynep HASHAN ",
                  "CardNumberFirstSix":"526955",
                  "CardNumberLastFour":"4444",
                  "PaymentDate":"2020-04-06T10:58:08.26",
                  "Amount":100.00,
                  "RefAmount":0.00,
                  "CurrencyCode":"TL",
                  "InstallmentNumber":2,
                  "DealerCommissionAmount":5.70,
                  "IsThreeD":false,
                  "Description":"",
                  "PaymentStatus":2,
                  "TrxStatus":1,
                  "Software":"Possimulation",
                  "PaymentTrxList":[
                     {
                        "DealerPaymentTrxId":37248,
                        "DealerPaymentId":56126,
                        "TrxCode":"8a092cca-40c8-4393-bd70-49b64166b2e3",
                        "TrxDate":"2020-04-06T10:58:08.29",
                        "Amount":100.00,
                        "TrxType":2,
                        "TrxStatus":1,
                        "PaymentReason":1,
                        "VoidRefundReason":0,
                        "VirtualPosOrderId":"Test-03f20fef-63d4-4ca8-93c6-0b3c2ba331b3",
                        "ResultMessage":""
                     }
                  ]
               },
               {
                  "DealerPaymentId":56127,
                  "OtherTrxCode":"20200406105812",
                  "CardHolderFullName":"Zeynep HASHAN ",
                  "CardNumberFirstSix":"526955",
                  "CardNumberLastFour":"4444",
                  "PaymentDate":"2020-04-06T10:58:12.213",
                  "Amount":100.00,
                  "RefAmount":0.00,
                  "CurrencyCode":"TL",
                  "InstallmentNumber":2,
                  "DealerCommissionAmount":5.70,
                  "IsThreeD":false,
                  "Description":"",
                  "PaymentStatus":2,
                  "TrxStatus":1,
                  "Software":"Possimulation",
                  "PaymentTrxList":[
                     {
                        "DealerPaymentTrxId":37249,
                        "DealerPaymentId":56127,
                        "TrxCode":"70d8e65c-adc8-4aef-9953-d8e9c195618e",
                        "TrxDate":"2020-04-06T10:58:12.23",
                        "Amount":100.00,
                        "TrxType":2,
                        "TrxStatus":1,
                        "PaymentReason":1,
                        "VoidRefundReason":0,
                        "VirtualPosOrderId":"Test-2bc95853-ba6d-44f6-875e-d7946fd27c70",
                        "ResultMessage":""
                     }
                  ]
               }
            ]
         }
      ]
   },
   "ResultCode":"Success",
   "ResultMessage":"",
   "Exception":null
}

Failed Request Result

ResultCodeExplanation
Dealer.CheckDealerAuthentication.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
Dealer.CheckDealerAuthentication.InvalidAccountNo such dealer was found.
Dealer.GetStatementList.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt..
Dealer.GetStatementList.InvalidDateFormatThe date format is invalid
Dealer.GetStatementList.StatementNotFoundExtract not found.
Dealer.GetStatementList.InvalidStatementIdOrAccountingIdStatement id or accounting id is invalid.
EX An unexpected error has occurred

Example of Failed Result


{
   "Data":null,
   "ResultCode":"Dealer.GetStatementList.InvalidStatementIdOrAccountingId",
   "ResultMessage":"",
   "Exception":null
}