参数说明

请求参数类型JSON

返回参数类型JSON

boolean isSuccess 是否成功
String message 响应信息
JSON\JSON数组 data 成功时返回数据

登录

request url (POST)

http://localhost:8080/HazeAppTMS/out/login2

request data

{"password":"nihaopay2019","username":"develop@nihaopay.com","validateCode":"wnny2","validateCodeToken":"324324"}

response data

{
    "data": {
        "merCode": "M001100001",
        "token": "87e09c0e686d39a7e9f70767e0ef8157a20678715967df2c5afba36a5776ef77",
        "txnToken": "1be62e0a0ab2c331918091734200e89bf03777c6e88c66864da25889921ad9f4",
        "userEmail": "develop@nihaopay.com",
        "subMerCode": null,
        "userRole": "Admin",
        "merName": "nihaopay",
        "currency": "USD,HKD,JPY,EUR,GBP,CAD"
    },
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

验证码

request url (GET)

http://localhost:8080/HazeAppTMS/out/captchaCode/{token}

首页图表

request url (GET)

http://localhost:8080/HazeAppTMS/out/index/chart

response data

{
    "data": {
        "chartData": [
            {
                "y": "2019-02-26",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-02-27",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-02-28",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-01",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-02",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-03",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-04",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-05",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-06",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-07",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-08",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-09",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-10",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-11",
                "usd": 47.96,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            },
            {
                "y": "2019-03-12",
                "usd": 0,
                "jpy": 0,
                "eur": 0,
                "cad": 0,
                "hkd": 0,
                "gbp": 0
            }
        ],
        "reportData": [
            {
                "currency": "USD",
                "dailyAmount": 0,
                "weeklyAmount": 47.96,
                "monthlyAmount": 47.96,
                "dailyNum": 0,
                "weeklyNum": 18,
                "monthlyNum": 18
            }
        ]
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

交易查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/search

参数说明

卡组织
    UNIONPAY("unionpay", "3"),

    ALIPAY("alipay", "4"),

    WECHAT("wechatpay", "5");

交易类型

    /**
     * Purchase 消费 01  显示  正向交易,序号0
     */
    PURCHASE("Purchase","01","i18n.key.PURCHASE"),

    /**
     * Authorization 预授权 02
     */
    PRE_AUTH("Authorization","02","i18n.key.PRE_AUTH"),

    /**
     * Authorization Capture 预授权完成 03  显示    正向交易,序号2
     */
    PRE_AUTH_COMPLETE("Authorization Capture","03","i18n.key.PRE_AUTH_COMPLETE"),
    /**
     * 消费撤销 31   反向交易,序号3
     */
    PURCHASE_CANCEL("Purchase Cancellation","31","i18n.key.PURCHASE_CANCEL"),

    /**
     * Authorization Cancellation 预授权取消 32
     */
    PRE_AUTH_CANCEL("Authorization Cancellation","32","i18n.key.PRE_AUTH_CANCEL"),
    /**
     * 预授权完成撤销 33   反向交易,序号5
     */
    PRE_AUTH_COMPLETE_CANCEL("Authorization Complete Cancellation","33","i18n.key.PRE_AUTH_COMPLETE_CANCEL"),



    /**
     * Refund 消费退款 41  显示     反向交易,序号6
     */
    PURCHASE_REFUND("Refund Purchase","41","i18n.key.PURCHASE_REFUND"),

    /**
     * 预授权完成的退款 43  显示     反向交易,序号7
     */
    PRE_AUTH_COMPLETE_REFUND("Refund Authorization Capture","43","i18n.key.PRE_AUTH_COMPLETE_REFUND"),

交易状态

/**
     * pay in progress
     */
    PENDING("0", "pending","i18n.key.PENDING"),
    /**
     * paid order
     */
    SUCCESS("1", "success","i18n.key.SUCCESS"),
    /**
     * unsuccessful paid order
     */
    FAIL("2", "failure","i18n.key.FAIL"),
    /**
     * 交易已经全额撤销
     */
    CANCELED("4","cancelled","i18n.key.CANCELED"),
    /**
     * 交易关闭,在指定的时间段内未支付成功的交易,将会被置为交易关闭
     */
    CLOSED("5","closed","i18n.key.CLOSED"),

request data

{
    "cardOrg": null,
    "currency": null,
    "description": null,

    "id": null,
    "merCode": null,
    "note": null,
    "orderId": null,
    "pageNum": null,
    "pageSize": null,
    "receiveBankTraceNo": null,
    "refundStatus": null,
    "searchDate": null,
    "startDate": "2018-01-02",
    "endDate": "2019-01-02",
    "subMerCode": null,
    "txnStatus": null,
    "txnType": null
}

response data

{
    "data": {
        "pagination": {
            "totalRows": 667,
            "pageSize": 10,
            "currPageNum": 1,
            "totalPages": 67,
            "startRow": 0,
            "endRow": 10,
            "pageData": [
                {
                    "createDate": null,
                    "updateDate": null,
                    "txnDate": "2018-12-24 21:14:48",
                    "merCode": "M001100001",
                    "subMerCode": null,
                    "txnType": "Purchase",
                    "bizCode": "Show QRCode",
                    "orderId": "20181224131437906649",
                    "amount": 0.02,
                    "txnStatus": "pending",
                    "originTxnId": null,
                    "txnFinishDate": null,
                    "paymentRefundAmount": null,
                    "countTxnStatus": null,
                    "amountVO": "0.02",
                    "cardOrg": "alipay",
                    "startTxnDate": null,
                    "endTxnDate": null,
                    "branchId": "a2532b43-cd01-46bf-bbdb-57c3bd16dcb2",
                    "orderDescriptionVO": null,
                    "merCodes": null,
                    "clientIpVO": null,
                    "merPrivate1VO": null,
                    "maxAmount": null,
                    "minAmount": null,
                    "cancellationFlag": "INITIAL",
                    "cutoffStatus": "INITIAL_STATE",
                    "merOrderCurrency": null,
                    "merOrderAmount": null,
                    "merName": null,
                    "currencyName": "USD",
                    "id": "20181224131447000032"
                }
            ],
            "totalAmount": 587585.33,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

正向交易查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/searchForRefund

request data

{
    "cardOrg": null,
    "currency": null,
    "description": null,

    "id": null,
    "merCode": null,
    "note": null,
    "orderId": null,
    "pageNum": null,
    "pageSize": null,
    "receiveBankTraceNo": null,
    "refundStatus": null,
    "searchDate": null,
    "startDate": "2018-01-02",
    "endDate": "2019-01-02",
    "subMerCode": null,
    "txnType": null
}

response data

{
    "data": {
        "pagination": {
            "totalRows": 667,
            "pageSize": 10,
            "currPageNum": 1,
            "totalPages": 67,
            "startRow": 0,
            "endRow": 10,
            "pageData": [
                {
                    "createDate": null,
                    "updateDate": null,
                    "txnDate": "2018-12-24 21:14:48",
                    "merCode": "M001100001",
                    "subMerCode": null,
                    "txnType": "Purchase",
                    "bizCode": "Show QRCode",
                    "orderId": "20181224131437906649",
                    "amount": 0.02,
                    "txnStatus": "pending",
                    "originTxnId": null,
                    "txnFinishDate": null,
                    "paymentRefundAmount": null,
                    "countTxnStatus": null,
                    "amountVO": "0.02",
                    "cardOrg": "alipay",
                    "startTxnDate": null,
                    "endTxnDate": null,
                    "branchId": "a2532b43-cd01-46bf-bbdb-57c3bd16dcb2",
                    "orderDescriptionVO": null,
                    "merCodes": null,
                    "clientIpVO": null,
                    "merPrivate1VO": null,
                    "maxAmount": null,
                    "minAmount": null,
                    "cancellationFlag": "INITIAL",
                    "cutoffStatus": "INITIAL_STATE",
                    "merOrderCurrency": null,
                    "merOrderAmount": null,
                    "merName": null,
                    "currencyName": "USD",
                    "id": "20181224131447000032"
                }
            ],
            "totalAmount": 587585.33,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

交易日期下载初始化

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/initCalendar

request data

{"month":"01","year":"2019"}

response data

{
    "data": {
        "date": [
            "2019/01/03",
            "2019/01/04",
            "2019/01/07",
            "2019/01/08",
            "2019/01/09",
            "2019/01/10",
            "2019/01/11",
            "2019/01/14",
            "2019/01/15",
            "2019/01/16",
            "2019/01/25",
            "2019/01/31"
        ]
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

交易单日下载

request url (GET)

http://localhost:8080/HazeAppTMS/out/txn/download/{date}

参数说明

date 2019-01-01

交易区间下载

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/downloads

参数说明

区间时间不能超过10天

request data

{


    "startDate": "2018-01-02",
    "endDate": "2019-01-02"

}

获取子商户号

request url (GET)

http://localhost:8080/HazeAppTMS/out/merchant/getsubcode

response data

{
    "data": [
        {
            "name": "池袋店",
            "merchantCode": "M001100127"
        },
        {
            "name": "sherry",
            "merchantCode": "M001100125"
        },
        {
            "name": "test11",
            "merchantCode": "M001100123"
        }
    ],
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

获取交易详情

request url (GET)

http://localhost:8080/HazeAppTMS/out/txn/detail/{id}

response data

{
    "data": {
        "merTxn": {
            "createDate": null,
            "updateDate": null,
            "txnDate": "2018-12-24 21:14:48",
            "merCode": "M001100001",
            "subMerCode": null,
            "bizCode": "Show QRCode",
            "orderId": "20181224131437906649",
            "amount": 0.02,
            "originTxnId": null,
            "txnFinishDate": null,
            "paymentRefundAmount": null,
            "countTxnStatus": null,
            "amountVO": "0.02",
            "cardOrg": "alipay",
            "startTxnDate": null,
            "endTxnDate": null,
            "branchId": "a2532b43-cd01-46bf-bbdb-57c3bd16dcb2",
            "orderDescriptionVO": null,
            "merCodes": null,
            "clientIpVO": null,
            "merPrivate1VO": null,
            "maxAmount": null,
            "minAmount": null,
            "cancellationFlag": null,
            "cutoffStatus": null,
            "merOrderCurrency": null,
            "merOrderAmount": null,
            "merName": "nihaopay",
            "currencyName": "USD",
            "txnTypeVO": "Purchase",
            "txnStatusVO": "pending",
            "id": "20181224131447000032"
        },
        "merTxnSale": {
            "createDate": "2018-12-24 13:15:46",
            "updateDate": null,
            "txnDate": "2018-12-24 21:14:48",
            "version": "1.2",
            "charset": null,
            "language": "English",
            "txnType": "Purchase",
            "merCode": "M001100001",
            "subMerCode": null,
            "merOrderId": "20181224131437906649",
            "merOrderDate": "20181224",
            "merOrderTime": "131447",
            "merOrderAmount": 0.02,
            "bizCode": "Show QRCode",
            "txnAmount": 0.02,
            "exchangeRate": 1,
            "txnStatus": "pending",
            "merPrivate1": null,
            "merPrivate2": null,
            "merReserved": null,
            "originalTxnId": null,
            "accessURL": null,
            "paySite": null,
            "clientIP": "180.167.25.154",
            "merOrderDescription": null,
            "browserReturnURL": "http://nihaopay.com",
            "serverNotifyURL": "http://demo.aurfy.cn:8007/ipn",
            "deliveryAddressId": null,
            "orderTimeZone": "CN",
            "orderTimeOut": "30",
            "signature": "nosignature",
            "branchId": "a2532b43-cd01-46bf-bbdb-57c3bd16dcb2",
            "saleId": "006654d3ca984d91b856da738d818d8b",
            "agentId": "a3d5edca8760466bb9952af5e592f11d",
            "pspId": "95675e4198b14390863d12b6fad86113",
            "cardOrg": "alipay",
            "receiveBankTraceNo": null,
            "sendBankOrderId": null,
            "startTxnDate": null,
            "endTxnDate": null,
            "countIp": null,
            "sumAmount": null,
            "txnFinishDate": null,
            "rmbAmount": null,
            "mappedRespCode": null,
            "merCodes": null,
            "maxAmount": null,
            "minAmount": null,
            "goodsAmount": 0,
            "platformAmount": 0,
            "cancellationFlag": null,
            "paymentRefundAmount": null,
            "cutoffStatus": null,
            "bizCategory": null,
            "storeNo": null,
            "storeName": null,
            "terminalID": "QR",
            "currencyName": "USD",
            "id": "20181224131447000032"
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

退款查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/searchRefund

request data

{
    "cardOrg": null,
    "currency": null,
    "description": null,

    "id": null,
    "merCode": null,
    "merOrderDescription": null,
    "note": null,
    "orderId": null,
    "pageNum": null,
    "pageSize": null,
    "receiveBankTraceNo": null,
    "refundStatus": null,
    "searchDate": null,
    "startDate": "2018-01-02",
    "endDate": "2019-01-02",
    "subMerCode": null,
    "txnStatus": "",
    "txnType": null
}

response data

{
    "data": {
        "pagination": {
            "totalRows": 1,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 1,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2018-02-26",
                    "updateDate": null,
                    "merCode": "M001100001",
                    "subMerCode": null,
                    "origOrderId": "20180226041747472601",
                    "refundAmount": 0.02,
                    "refundReason": "",
                    "origTxnID": "20180226041754105973",
                    "origTxnType": "Purchase",
                    "txnType": "Purchase Cancellation",
                    "origTxnDate": "2018-02-26",
                    "origTxnAmount": 0.02,
                    "cardOrg": "alipay",
                    "txnRefundAmount": 0.02,
                    "exchangeRate": 1,
                    "refundFee": 0,
                    "refundStatus": "Apply",
                    "memo": null,
                    "channelID": "31bc61f2efd7487fa169afbd8f3a715f",
                    "providerID": "a03e9ef101834c9fb0df9b82da591ddd",
                    "bgwSalePaymentID": null,
                    "bgwRefundID": null,
                    "applyID": "M001100001",
                    "approveID": null,
                    "merCodes": null,
                    "goodsAmount": 0,
                    "platformAmount": 0,
                    "merReserved": null,
                    "refundCurrencyName": "USD",
                    "originTxnCurrencyName": "USD",
                    "id": "20180226121939001007"
                }
            ],
            "totalAmount": 0,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

申请退款详情

request url (GET)

http://localhost:8080/HazeAppTMS/out/txn/toRefund/{id}

response data

{
    "data": {
        "merTxn": {
            "createDate": null,
            "updateDate": "2018-02-26",
            "txnDate": "2018-02-26 12:17:55",
            "merCode": "M001100001",
            "subMerCode": null,
            "bizCode": "SecurePay",
            "orderId": "20180226041747472601",
            "amount": 0.02,
            "originTxnId": null,
            "txnFinishDate": "2018-02-26 12:50:51",
            "paymentRefundAmount": "0.00",
            "countTxnStatus": null,
            "amountVO": "0.02",
            "cardOrg": "alipay",
            "startTxnDate": null,
            "endTxnDate": null,
            "branchId": "a2532b43-cd01-46bf-bbdb-57c3bd16dcb2",
            "orderDescriptionVO": null,
            "merCodes": null,
            "clientIpVO": null,
            "merPrivate1VO": null,
            "maxAmount": null,
            "minAmount": null,
            "cancellationFlag": null,
            "cutoffStatus": null,
            "merOrderAmount": 0.02,
            "merName": null,
            "txnTypeVO": "Purchase",
            "currencyName": "USD",
            "txnStatusVO": "closed",
            "id": "20180226041754105973"
        },
        "rmbRefundTotalBefore": 0
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

申请退款

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/refundApply

request data

{
    "txnId":"20190318092148000144",
    "refundAmount":"1",
    "refundReason":"sss"
}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

申请退款审核详情

request url (GET)

http://localhost:8080/HazeAppTMS/out/txn/toCheckRefund/{id}

response data

{
    "data": {
        "createDate": "2019-03-18",
        "updateDate": null,
        "merCode": "M001100001",
        "subMerCode": null,
        "origOrderId": "20190318092028743086",
        "refundAmount": 1,
        "refundReason": "sss",
        "origTxnID": "20190318092148000144",
        "origTxnType": "Purchase",
        "txnType": "Refund Purchase",
        "origTxnDate": "2019-03-18",
        "origTxnAmount": 0.02,
        "cardOrg": "wechatpay",
        "txnRefundAmount": 1,
        "exchangeRate": 1,
        "refundFee": 0,
        "refundStatus": "Apply",
        "memo": null,
        "channelID": "f6a8a682988545fbb95037387e4d6a27",
        "providerID": "31115e995aef4f6b8f0ce131d4243222",
        "bgwSalePaymentID": "7f3f0ce3e1034778a45cadcaf7b9a412",
        "bgwRefundID": null,
        "applyID": "5e6c41e365ad480f9f4588d23d356ab0",
        "approveID": null,
        "merCodes": null,
        "goodsAmount": 0,
        "platformAmount": 0,
        "merReserved": null,
        "refundCurrencyName": "USD",
        "originTxnCurrencyName": "USD",
        "id": "20190318091838001095"
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

同意退款

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/refundApprove

request data

{
    "txnId":"20190318092148000144",
    "approveReason":"sss"
}

response data

{
    "data": null,
    "isSuccess": false,
    "message": "Refund failed. Refund amount exceeds original transaction amount or refundable amount.",
    "success": false
}

取消退款

request url (POST)

http://localhost:8080/HazeAppTMS/out/txn/refundCancel

request data

{
    "txnId":"20190318092148000144"
}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "operation success"

}

结算搜索

request url (POST)

http://localhost:8080/HazeAppTMS/out/settle/search

request data

{
    "id": null,

    "orderId": null,
    "pageNum": null,
    "pageSize": null,

    "startDate": "2018-01-02 00:00:00",
    "endDate": "2019-01-02 00:00:00"

}

response data

{
    "data": {
        "pagination": {
            "totalRows": 166,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 166,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2018-12-24 22:57:26",
                    "updateDate": null,
                    "txnId": "20181224131105000031",
                    "txnStartDate": "2018-12-24 21:11:06",
                    "orderId": "20181224131056837243",
                    "originalTxnId": null,
                    "txnType": "Purchase",
                    "txnAmount": 0.02,
                    "txnStatus": "success",
                    "txnFinishDate": "2018-12-24 21:12:15",
                    "stlExchangeRate": 1,
                    "stlExchangeDate": "2018-12-24",
                    "stlAmount": 0.02,
                    "merCode": "M001100001",
                    "subMerCode": null,
                    "branchId": "a2532b43-cd01-46bf-bbdb-57c3bd16dcb2",
                    "branchName": null,
                    "salesId": "006654d3ca984d91b856da738d818d8b",
                    "salesName": null,
                    "pspId": "95675e4198b14390863d12b6fad86113",
                    "pspName": null,
                    "agentId": "a3d5edca8760466bb9952af5e592f11d",
                    "agentName": null,
                    "bizCode": "SecurePay",
                    "cardOrg": "alipay",
                    "terminalId": "ONLINE",
                    "channelId": "31bc61f2efd7487fa169afbd8f3a715f",
                    "acqId": "e9d8e52a12794764bba869382b56bcb2",
                    "acqName": null,
                    "channelProviderId": "a03e9ef101834c9fb0df9b82da591ddd",
                    "channelProviderName": null,
                    "feeConfigId": "d14560db53054a72a262c61bd228f368",
                    "feeRatio": 2,
                    "feeService": 0,
                    "feeAdditional": 0,
                    "marginPolicy": null,
                    "marginRatio": 0,
                    "marginAmount": 0,
                    "expectedReturnDate": null,
                    "marginStatus": null,
                    "marginChargeDate": null,
                    "marginChargeId": null,
                    "marginReturnDate": null,
                    "marginReturnId": null,
                    "clearStatus": "NotRequired",
                    "clearId": "20181224145726002616",
                    "clearDate": "2018-12-24",
                    "settlePolicy": "Cycle",
                    "netSettleAmount": 0.02,
                    "expectedSettleDate": "2018-12-25",
                    "settleStatus": "Settled",
                    "actualSettleDate": "2018-12-25",
                    "settleBatchId": "20181225145730002618",
                    "settleCondition": "T+2",
                    "agentType": "Normal",
                    "agentLevel": "ONE",
                    "agentFeeConfigId": "0e222f6e01b84b6180dc0fe1433ad302",
                    "agentFeeRatio": 1.8,
                    "agentFeeService": 0,
                    "agentFeeRebate": 0,
                    "rateAlgorithm": "Percentage",
                    "queryStartDate": null,
                    "queryEndDate": null,
                    "txnAmountVO": "0.02",
                    "merName": "nihaopay",
                    "agentSettleAmountVO": null,
                    "withdrawalId": null,
                    "txnCurrencyName": "USD",
                    "stlCurrencyName": "USD",
                    "id": null
                }
            ],
            "totalAmount": 558653.78,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

结算下载

request url (POST)

http://localhost:8080/HazeAppTMS/out/settle/download

request data

{
    "id": null,
    "orderId": null,
    "pageNum": null,
    "pageSize": null,
     "startDate": "2018-01-02",
    "endDate": "2019-01-02"

}

结算汇总搜索

request url (POST)

http://localhost:8080/HazeAppTMS/out/settle/searchSummary

request data

{
    "id": null,

    "orderId": null,
    "pageNum": null,
    "pageSize": null,

    "startDate": "2018-01-02 00:00:00",
    "endDate": "2019-01-02 00:00:00"

}

response data

{
    "data": {
        "pagination": {
            "totalRows": 15,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 15,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": null,
                    "updateDate": null,
                    "settleBatchId": "20190321145745002712",
                    "settleDate": "2019-03-21",
                    "merCode": "M001100001",
                    "settleCurrency": "USD",
                    "paymentCount": 0,
                    "paymentAmount": 0,
                    "paymentFee": 0,
                    "paymentMargin": 0,
                    "paymentNetAmount": 0,
                    "refundCount": 1,
                    "refundAmount": 0.01,
                    "refundFee": 0,
                    "refundNetAmount": 0.01,
                    "chargebackCount": 0,
                    "chargebackAmount": 0,
                    "chargebackFee": 0,
                    "chargebackNetAmount": 0,
                    "marginReturnCount": 0,
                    "marginReturnAmount": 0,
                    "netSettleAmount": -0.01,
                    "queryStartDate": null,
                    "queryEndDate": null,
                    "id": null
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

结算汇总下载

request url (GET)

http://localhost:8080/HazeAppTMS/out/settle/download/{settleBatchId}

账户搜索

request url (POST)

http://localhost:8080/HazeAppTMS/out/account/search

response data

{
    "data": {
        "pagination": {
            "totalRows": 6,
            "pageSize": 100,
            "currPageNum": 1,
            "totalPages": 1,
            "startRow": 0,
            "endRow": 6,
            "pageData": [
                {
                    "createDate": "2018-03-01",
                    "updateDate": "2018-03-01",
                    "merCode": "M001100001",
                    "accCurrency": "CAD",
                    "refConfigId": "80894ba5a84c4c198f267314042e8293",
                    "accBalance": 0,
                    "freezeAmonut": 0,
                    "pendingAmonut": 0,
                    "marginAmonut": 0,
                    "status": "Normal",
                    "ownerId": "10b4cf9f8db6446fb3aad402eb310b70",
                    "branchId": null,
                    "accBalanceVO": "0.00",
                    "antiStatus": null,
                    "agentId": null,
                    "id": "8b801db6d50c497588444205ab4964dd"
                },
                {
                    "createDate": "2017-03-30",
                    "updateDate": "2018-03-01",
                    "merCode": "M001100001",
                    "accCurrency": "EUR",
                    "refConfigId": "80894ba5a84c4c198f267314042e8293",
                    "accBalance": 1.98,
                    "freezeAmonut": 0,
                    "pendingAmonut": 0,
                    "marginAmonut": 0,
                    "status": "Normal",
                    "ownerId": "2c18d62fdece400394baa28483b09242",
                    "branchId": null,
                    "accBalanceVO": "1.98",
                    "antiStatus": null,
                    "agentId": null,
                    "id": "b51725c4f6184999b2d12ffcf5665e9c"
                },
                {
                    "createDate": "2017-03-30",
                    "updateDate": "2018-03-01",
                    "merCode": "M001100001",
                    "accCurrency": "HKD",
                    "refConfigId": "80894ba5a84c4c198f267314042e8293",
                    "accBalance": 0,
                    "freezeAmonut": 0,
                    "pendingAmonut": 0,
                    "marginAmonut": 0,
                    "status": "Normal",
                    "ownerId": "2c18d62fdece400394baa28483b09242",
                    "branchId": null,
                    "accBalanceVO": "0.00",
                    "antiStatus": null,
                    "agentId": null,
                    "id": "fcab255dbcc249a2ab6a88792e3cfd17"
                },
                {
                    "createDate": "2016-12-20",
                    "updateDate": "2018-03-01",
                    "merCode": "M001100001",
                    "accCurrency": "GBP",
                    "refConfigId": "80894ba5a84c4c198f267314042e8293",
                    "accBalance": 0.02,
                    "freezeAmonut": 0,
                    "pendingAmonut": 0,
                    "marginAmonut": 0,
                    "status": "Normal",
                    "ownerId": "2c18d62fdece400394baa28483b09242",
                    "branchId": null,
                    "accBalanceVO": "0.02",
                    "antiStatus": null,
                    "agentId": null,
                    "id": "6b3e53a377eb494da443ab35955a6784"
                },
                {
                    "createDate": "2016-05-14",
                    "updateDate": "2018-03-01",
                    "merCode": "M001100001",
                    "accCurrency": "USD",
                    "refConfigId": "80894ba5a84c4c198f267314042e8293",
                    "accBalance": 21431.66,
                    "freezeAmonut": 2.99,
                    "pendingAmonut": 62294.86,
                    "marginAmonut": 0,
                    "status": "Normal",
                    "ownerId": "d4b4966ca3944e79b40543cbbc060699",
                    "branchId": null,
                    "accBalanceVO": "21431.66",
                    "antiStatus": null,
                    "agentId": null,
                    "id": "6f7cebb89ffd47d7adfcfa0ef76be011"
                },
                {
                    "createDate": "2016-05-14",
                    "updateDate": "2018-03-01",
                    "merCode": "M001100001",
                    "accCurrency": "JPY",
                    "refConfigId": "80894ba5a84c4c198f267314042e8293",
                    "accBalance": 565240.32,
                    "freezeAmonut": 235200,
                    "pendingAmonut": 7530986.4,
                    "marginAmonut": 0,
                    "status": "Normal",
                    "ownerId": "d4b4966ca3944e79b40543cbbc060699",
                    "branchId": null,
                    "accBalanceVO": "565240.32",
                    "antiStatus": null,
                    "agentId": null,
                    "id": "da792ae1e0a74562920cf67aff695cd5"
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

账户详情

request url (GET)

http://localhost:8080/HazeAppTMS/out/account/detail/{id}

response data

{
    "data": {
        "account": {
            "createDate": "2018-01-30",
            "updateDate": "2018-01-30",
            "merCode": "M001100315",
            "accCurrency": "USD",
            "refConfigId": "0f40a149abac4bb1946d9fc933009b33",
            "accBalance": 0,
            "freezeAmonut": 0,
            "pendingAmonut": 0,
            "marginAmonut": 0,
            "status": "Normal",
            "ownerId": "M001100315",
            "branchId": null,
            "accBalanceVO": null,
            "antiStatus": null,
            "agentId": null,
            "id": "dff0d7ab5669492483803f06dd70025e"
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

账户明细搜索

request url (POST)

http://localhost:8080/HazeAppTMS/out/account/searchStatement

参数说明

账户记账科目

     /**
     * 非实时结算(结算账户)
     */
    SETTLE("Settlement", "0","acc.subject.enum.settle"),
    /**
     * 提款(结算账户)
     */
    WITHDRAW("Withdraw", "1","acc.subject.enum.withdraw"),
    /**
     * 调账(结算账户)
     */
    ADJUST("Adjustment", "2","acc.subject.enum.adjustment"),
    /**
     * 账户充值(结算账户)
     */
    RECHARGE("Recharge", "3","acc.subject.enum.recharge"),
    /**
     * 下发(结算账户)
     */
    DISTRIBUTION("Distribution", "4","acc.subject.enum.distribution"),
    /**
     * 收取保证金(仅针对保证金账户)
     */
    CHARGE_MARGIN("Charge margin", "5","acc.subject.enum.chargeMargin"),
    /**
     * 返还保证金(仅针对保证金账户)
     */
    RETURNED_MARGIN("Return margin", "6","acc.subject.enum.returnMargin"),
    /**
     * 交易清算(仅针对在途资金)
     */
    CLEARING("Clearing", "7","acc.subject.enum.clearing"),
    /**
     * 退款(退款操作时,临时冻结)
     */
    REFUND("Refund", "8","acc.subject.enum.refund"),
    /**
     * 争议订单(调查单,存在争议的交易,临时冻结)
     */
    DISPUTE("Dispute", "9","acc.subject.enum.dispute"),
    /**
     * 拒付(拒付交易时,临时冻结,如果该笔交易是争议订单转化的,则需要先解冻,在冻结)
     */
    CHARGEBACK("ChargeBack", "10","acc.subject.enum.chargeBack");

request data

{
    "id": "6f7cebb89ffd47d7adfcfa0ef76be011",
    "refId":null,
    "subjectId":null,
    "pageNum": null,
    "pageSize": null,

    "startDate": "2018-01-02 00:00:00",
    "endDate": "2019-01-02 00:00:00"

}

response data

{
    "data": {
        "pagination": {
            "totalRows": 59,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 59,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2018-12-25",
                    "updateDate": null,
                    "settleAccId": "6f7cebb89ffd47d7adfcfa0ef76be011",
                    "merCode": "M001100001",
                    "subjectId": "Settlement",
                    "refId": "20181225145730002618",
                    "refTime": "2018-12-25 23:00:04",
                    "withdrawalAmount": 0,
                    "depositAmount": 0.02,
                    "balance": 20205.35,
                    "subjectIdVO": 0,
                    "currencyName": "USD"
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

验证交易密码

request url (POST)

http://localhost:8080/HazeAppTMS/out/account/verifyPwd

request data

{"password":"nihaopay2019"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": ""
}

增加提款账户

request url (POST)

http://localhost:8080/HazeAppTMS/out/bankAccount/save

参数说明

    /**
     * 个人账户
     */
    INDIVIDUALACCOUNT("Individual"),

    /**
     * 公司账户
     */
    COMPANYACCOUNT("Company"),

    GROUP("Group");

request data

{
    "accountCurrency": null,
    "accountHolder": null,
    "accountNumber": null,
    "accountType": null,
    "addressBook": 
        {
        "cityCode": "",
        "cityName": "",
        "countryCode": null,
        "countryName": null,

        "fullName": null,

        "phoneNumber": null,
        "stateCode": "",
        "stateName": "",
        "streetName1": null,
        "streetName2": null,

        "zipCode": null
        },
    "addressId": null,
    "bankBranch": null,
    "bankCode": null,
    "bankName": null,
    "comments": null,
    "maxWithdrawalAmount": null,
    "merCode": null,
    "minAmount": null,
    "ownerId": null,
    "routingNumber": null,
    "status": null,
    "swiftCode": null,

    "withdrawalFee": null,
    "withdrawalFeeCurrency": null
}

response data

{
    "data": null,
    "isSuccess": true,
    "message": ""
}

银行账户列表

request url (POST)

http://localhost:8080/HazeAppTMS/out/account/list

request data

{"currency":"USD"}

response data

{
    "data": [
        {
            "createDate": "2018-11-28",
            "updateDate": null,
            "bankId": null,
            "bankCode": "000",
            "bankAbbreviation": null,
            "bankName": "test",
            "bankBranch": null,
            "bankURL": null,
            "addressId": "97ad5a7436dd4314a0451c40d0f4f461",
            "accountHolder": "123456",
            "accountNumber": "123456",
            "accountCurrency": "USD",
            "routingTransitNumber": null,
            "swiftCode": null,
            "accountOpenDate": null,
            "comments": null,
            "ownerId": "58e6857c93cd4e2a80df2d816dec81d1",
            "addressBook": null,
            "existBank": null,
            "id": "cfd09ee1e7284744b4e5e034d736cc9c"
        },
        {
            "createDate": "2017-03-30",
            "updateDate": "2018-11-28",
            "bankId": null,
            "bankCode": "000",
            "bankAbbreviation": null,
            "bankName": "test",
            "bankBranch": "test",
            "bankURL": null,
            "addressId": "f33f9bb4a2ce41a3a5d3ac5586fcb630",
            "accountHolder": "test",
            "accountNumber": "12345678",
            "accountCurrency": "USD",
            "routingTransitNumber": null,
            "swiftCode": "8567890",
            "accountOpenDate": null,
            "comments": null,
            "ownerId": "58e6857c93cd4e2a80df2d816dec81d1",
            "addressBook": null,
            "existBank": null,
            "id": "dd9e2986fea94ef5a4b88d3caeb9fad1"
        }
    ],
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

提现申请

request url (POST)

http://localhost:8080/HazeAppTMS/out/account/withdraw

request data

{"amount":200,"balance":21431.66,"bankAccountId":"cfd09ee1e7284744b4e5e034d736cc9c","settleAccId":"6f7cebb89ffd47d7adfcfa0ef76be011"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Withdrawal successfully, we'll transfer money to you in 1-3 business days.",
    "success": true
}

提现记录查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/withdraw/search

request data

{
    "agentId": null,
    "applyDate": null,
    "applyId": null,
    "approveDate": null,
    "approveId": null,
    "branchId": null,
    "createDate": null,
    "endTime": null,
    "feePayer": null,
    "fuzzyMerCode": null,
    "merCode": null,
    "pageNum": null,
    "pageSize": null,
    "payeeAccountNumber": null,
    "payeeAddress": null,
    "payeeBank": null,
    "payeeBranchBank": null,
    "payeeName": null,
    "payeeRoutingNumber": null,
    "payeeSwiftCode": null,
    "payeeType": null,
    "settleAccId": "6f7cebb89ffd47d7adfcfa0ef76be011",
    "startTime": null,
    "status": null,
    "updateDate": null,
    "withdrawalAmount": null,
    "withdrawalCurrency": null,
    "withdrawalFee": null,
    "withdrawalFeeCurrency": null,
    "withdrawalMemo": null,
    "withdrawalResult": null
}]

response data

{
    "pagination": {
        "totalRows": 35,
        "pageSize": 1,
        "currPageNum": 1,
        "totalPages": 35,
        "startRow": 0,
        "endRow": 1,
        "pageData": [
            {
                "createDate": null,
                "updateDate": "2019-03-27 11:35:11",
                "settleAccId": "6f7cebb89ffd47d7adfcfa0ef76be011",
                "merCode": "M001100001",
                "withdrawalAmount": 200,
                "withdrawalCurrency": "USD",
                "withdrawalFee": 0.3,
                "withdrawalMemo": "Withdrawal",
                "status": "Audit",
                "withdrawalResult": "Dealing",
                "payeeType": "Individual",
                "payeeName": "123456",
                "payeeAccountNumber": "123456",
                "payeeBank": "test",
                "payeeBranchBank": null,
                "payeeAddress": "97ad5a7436dd4314a0451c40d0f4f461",
                "payeeRoutingNumber": null,
                "payeeSwiftCode": null,
                "applyId": "5e6c41e365ad480f9f4588d23d356ab0",
                "applyDate": "2019-03-27 11:37:29",
                "approveId": "5e6c41e365ad480f9f4588d23d356ab0",
                "approveDate": "2019-03-27 11:37:29",
                "feePayer": "Merchant",
                "withdrawalFeeCurrency": "USD",
                "startTime": null,
                "endTime": null,
                "agentId": null,
                "branchId": null,
                "fuzzyMerCode": null,
                "pageNum": null,
                "pageSize": null,
                "id": "20190327033511002719"
            }
        ],
        "totalAmount": null,
        "totalFee": null
    }
}

提现明细下载csv

request url (GET)

http://localhost:8080/HazeAppTMS/out/withdraw/exportReportCSV/{txnId}

提现明细下载excel

request url (GET)

http://localhost:8080/HazeAppTMS/out/withdraw/exportReport/{txnId}

修改密码

request url (POST)

http://localhost:8080/HazeAppTMS/out/user/modifypwd2

参数说明

密码类型

private static final String LOGIN_PWD = "login_pwd";
    private static final String TRADING_PWD = "trading_pwd";

request data

{"newpwd":null,"oldpwd":null,"pwdtype":null}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "fse"

}

重置密码发送url

request url (POST)

http://localhost:8080/HazeAppTMS/out/user/sendRecoveryEmail

request data

{"username":"develop@nihaopay.com","validateCode":"wnny2","validateCodeToken":"324324"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

重置密码验证key

request url (POST)

http://localhost:8080/HazeAppTMS/out/user/validateAuthKey

request data

{"username":"develop@nihaopay.com","validateCode":"wnny2"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

重置密码

request url (POST)

http://localhost:8080/HazeAppTMS/out/user/resetPassword

request data

{"username":"develop@nihaopay.com","newpwd":"fesfe13212"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

证书查看

request url (POST)

http://localhost:8080/HazeAppTMS/out/cert/detail

request data

{"password":"nihaopay2018"}

response data

{
    "data": "1be62e0a0ab2c331918091734200e89bf03777c6e88c66864da25889921ad9f4",
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

证书更新

request url (POST)

http://localhost:8080/HazeAppTMS/out/cert/update

request data

{"password":"nihaopay2018"}

response data

{
    "data": "1be62e0a0ab2c331918091734200e89bf03777c6e88c66864da25889921ad9f4",
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

邮件通知

request url (GET)

http://localhost:8080/HazeAppTMS/out/mailSetting/list

response data

{
    "data": {
        "merCode": "M001100001",
        "mailAddresses": "676931854@qq.com",
        "merMailSettings": [
            {
                "settingID": "3df28fbae0504e40b57d588154233d0b",
                "merMailAddressID": "87143f6722574d9faa071d8b97b1ae2f",
                "acceptEmailType": "SYSTEM_NOTIFY",
                "status": "INACTIVE",
                "createDate": "2017-08-24",
                "updateDate": "2019-01-07"
            },
            {
                "settingID": "76e2288ee09645a08e599c9d12acc7a1",
                "merMailAddressID": "87143f6722574d9faa071d8b97b1ae2f",
                "acceptEmailType": "IPN_NOTIFY_FAIL",
                "status": "INACTIVE",
                "createDate": "2017-08-24",
                "updateDate": "2019-01-07"
            },
            {
                "settingID": "93176deea139485d95ae2c6bada96aa9",
                "merMailAddressID": "87143f6722574d9faa071d8b97b1ae2f",
                "acceptEmailType": "WITHDRAWAL_NOTIFY",
                "status": "INACTIVE",
                "createDate": "2017-08-24",
                "updateDate": "2019-01-07"
            },
            {
                "settingID": "b259512c406c4cdf9dd1d32b127c5b42",
                "merMailAddressID": "87143f6722574d9faa071d8b97b1ae2f",
                "acceptEmailType": "REFUND_SUCCESS",
                "status": "INACTIVE",
                "createDate": "2017-08-24",
                "updateDate": "2019-01-07"
            },
            {
                "settingID": "b56726fa9cbe486cb97d93fde7a418fb",
                "merMailAddressID": "87143f6722574d9faa071d8b97b1ae2f",
                "acceptEmailType": "TRANSACTION_SUCCESS",
                "status": "INACTIVE",
                "createDate": "2017-08-24",
                "updateDate": "2019-01-07"
            }
        ],
        "createDate": "2017-08-24",
        "updateDate": "2019-01-07",
        "id": "87143f6722574d9faa071d8b97b1ae2f"
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

邮件通知保存

request url (POST)

http://localhost:8080/HazeAppTMS/out/mailSetting/save

request data

{
        "mailAddresses": "676931854@qq.com",
        "merMailSettings": [
            {


                "acceptEmailType": "SYSTEM_NOTIFY",
                "status": "INACTIVE"

            },
            {

                "acceptEmailType": "IPN_NOTIFY_FAIL",
                "status": "INACTIVE"

            },
            {

                "acceptEmailType": "WITHDRAWAL_NOTIFY",
                "status": "INACTIVE"

            },
            {

                "acceptEmailType": "REFUND_SUCCESS",
                "status": "ACTIVE"

            },
            {

                "acceptEmailType": "TRANSACTION_SUCCESS",
                "status": "INACTIVE"
            }
        ]

    }

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Add Successful Transaction\t",
    "success": true
}

邮件通知更新

request url (POST)

http://localhost:8080/HazeAppTMS/out/mailSetting/update

request data

{
        "id": "619b8ab6d4684c65aaf9dd931c4dbc8f",
        "mailAddresses": "676931854@qq.com",
        "merMailSettings": [
            {


                "acceptEmailType": "SYSTEM_NOTIFY",
                "status": "INACTIVE"

            },
            {

                "acceptEmailType": "IPN_NOTIFY_FAIL",
                "status": "INACTIVE"

            },
            {

                "acceptEmailType": "WITHDRAWAL_NOTIFY",
                "status": "INACTIVE"

            },
            {

                "acceptEmailType": "REFUND_SUCCESS",
                "status": "ACTIVE"

            },
            {

                "acceptEmailType": "TRANSACTION_SUCCESS",
                "status": "INACTIVE"
            }
        ]

    }

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Add Successful Transaction\t",
    "success": true
}

QRCODE查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/qrcode/search

request data

{"pageSize":"01","pageNum":""}

response data

{
    "data": {
        "pagination": {
            "totalRows": 74,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 74,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2018-10-17 09:23:05",
                    "updateDate": null,
                    "merCode": "M001100001",
                    "sellerID": "1001",
                    "sellerName": "早上",
                    "sellerIndustry": "4816",
                    "storeName": "你好",
                    "storeNO": "吃午饭了",
                    "cardOrg": "alipay",
                    "tradeCurrency": "USD",
                    "settleCurrency": "USD",
                    "ipnURL": "http://demo.aurfy.cn:8007/ipn",
                    "channelID": "dbed30e53d734aecb6be2049a927247c",
                    "qrCodeStr": "https://qr.alipay.com/ocx07531udfdhosarjt7i35",
                    "qrCodeURL": "https://mobilecodec.alipay.com/show.htm?code=ocx07531udfdhosarjt7i35",
                    "status": "ACTIVE",
                    "cardOrgSearch": null,
                    "id": "9cbd0306cc9840d98a1084d35c9a6be3"
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

QRCODE详情

request url (POST)

http://localhost:8080/HazeAppTMS/out/qrcode/detail/{id}

response data

{
    "data": {
        "bean": {
            "createDate": "2018-10-17 09:23:05",
            "updateDate": null,
            "merCode": "M001100001",
            "sellerID": "1001",
            "sellerName": "早上",
            "sellerIndustry": "4816",
            "storeName": "你好",
            "storeNO": "吃午饭了",
            "cardOrg": "alipay",
            "tradeCurrency": "USD",
            "settleCurrency": "USD",
            "ipnURL": "http://demo.aurfy.cn:8007/ipn",
            "channelID": "dbed30e53d734aecb6be2049a927247c",
            "qrCodeStr": "https://qr.alipay.com/ocx07531udfdhosarjt7i35",
            "qrCodeURL": "https://mobilecodec.alipay.com/show.htm?code=ocx07531udfdhosarjt7i35",
            "status": "ACTIVE",
            "cardOrgSearch": null,
            "id": "9cbd0306cc9840d98a1084d35c9a6be3"
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

QRCODE图片更改

request url (POST)

http://localhost:8080/HazeAppTMS/out/qrcode/getQRCode?qrcodestr=https://qr.alipay.com/ocx07531udfdhosarjt7i35&width=256&logoImgWidth=0&logoImgHeight=500&logoCutX=&logoCutY=&logoCutWidth=&logoCutHeight=

request data

file : 文件

easypay查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/easypay/search

参数说明

status

/**
     * pay in progress
     */
    PENDING("0", "Pending", "i18n.key.PENDING"),
    /**
     * paid order
     */
    SUCCESS("1", "Completed", "i18n.key.COMPLETED");

request data

{"endDate":null,"pageNum":null,"pageSize":null,"startDate":null,"status":null}

response data

{
    "data": {
        "pagination": {
            "totalRows": 151,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 151,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2019-03-05",
                    "updateDate": null,
                    "merCode": "M001100001",
                    "reference": "20190305072741HWR8EYZN",
                    "currency": "USD",
                    "amount": 0.01,
                    "description": "test",
                    "note": null,
                    "callbackURL": null,
                    "status": "Pending",
                    "paymentCode": "YLHZT8YY5E",
                    "customerName": null,
                    "email": null,
                    "timeout": 0,
                    "merchantName": "nihaopay",
                    "id": "8c52d4f2f006427ca75725d4dec0dec3"
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

easypay新增

request url (POST)

http://localhost:8080/HazeAppTMS/out/easypay/save

request data

{
    "amount": "2",


    "currency": "JPY",
    "merchantName": "fesfefe",
    "description": "hehe",


    "note": null,


    "reference": "243243243",

    "timeout": 0
}

easypay发送邮件

request url (POST)

http://localhost:8080/HazeAppTMS/out/easypay/sendEmail

request data

{

    "id": "3adcebbbf71643fcb479d9bafc2cb88b",
    "customerName": "fesfefe",
    "email": "676931854@qq.com",

    "note": "fesff"

}

response data

{
    "data": "http://easypay.aurfy.cn:8007/pay/YE3DZBMPK2",
    "isSuccess": true,
    "message": "Add Successful Transaction\t",
    "success": true
}

自定义easypay查询

request url (POST)

http://localhost:8080/HazeAppTMS/out/customEasypay/search

request data

{"endDate":null,"pageNum":null,"pageSize":null,"startDate":null,"status":null}

response data

{
    "data": {
        "pagination": {
            "totalRows": 3,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 3,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2016-05-27",
                    "updateDate": null,
                    "merCode": "M001100001",
                    "merShowName": "China SF",
                    "merAbbrCode": "ChinaSF",
                    "enable": "Active",
                    "id": "8d67829d20e5463d897c5652c487733b"
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

自定义easypay新增

request url (POST)

http://localhost:8080/HazeAppTMS/out/customEasypay/save

request data

{

    "merShowName": "3adcebbbf71643fcb479d9bafc2cb88b",
    "merAbbrCode": "fesfefe"

}

response data

{
    "data": "http://easypay.aurfy.cn:8007/name/fesfefe",
    "isSuccess": true,
    "message": "Add Successful Transaction\t",
    "success": true
}

自定义easypay 详情

request url (POST)

http://localhost:8080/HazeAppTMS/out/customEasypay/detail/{id}

response data

{
    "data": {
        "bean": {
            "createDate": "2019-04-09",
            "updateDate": "2019-04-09",
            "merCode": "M001100001",
            "merShowName": "sasasa",
            "merAbbrCode": "a",
            "enable": "Active",
            "paymentUrl": "http://easypay.aurfy.cn:8007/name/a",
            "id": "8dfdecd0fe404976bdd1ebe4f87bb79e"
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

自定义easypay更新

request url (POST)

http://localhost:8080/HazeAppTMS/out/customEasypay/update

request data

{

     "id": "8dfdecd0fe404976bdd1ebe4f87bb79e",
    "merShowName": "3adcebbbf71643fcb479d9bafc2cb88b",
    "merAbbrCode": "fesfefe",
    "enable": "INACTIVE"


}

response data

{
    "data": "http://easypay.aurfy.cn:8007/name/fesfefe",
    "isSuccess": true,
    "message": "Add Successful Transaction\t",
    "success": true
}

子用户搜索

request url (POST)

http://localhost:8080/HazeAppTMS/out/users/search

request data

{

    "pageSize":"",
    "pageNum":""

}

response data

{
    "data": {
        "pagination": {
            "totalRows": 4,
            "pageSize": 1,
            "currPageNum": 1,
            "totalPages": 4,
            "startRow": 0,
            "endRow": 1,
            "pageData": [
                {
                    "createDate": "2017-03-27",
                    "updateDate": "2017-04-18",
                    "userEmail": "dev1.us@aurfy.com",
                    "userRole": "User",
                    "merCode": "M001100001",
                    "subMerCode": null,
                    "lastLoginIp": "180.167.25.154",
                    "loginPassword": "e3a7d478a123afc4b33644ba60ab92fde69e0a3ffb30ef1c041753ed81a3ae29aa844c4049e676bd6e6b02bea100fdb700b5c089f4477a68191b27d76716fe57",
                    "prevPassword1": null,
                    "prevPassword2": null,
                    "passwdSalt": "hBp9IvNMppeXP9Q1",
                    "pwdLastChangeDate": "2017-03-27",
                    "txnPassword": "5d0fa63957ebe04ef9f7f958129c9d3430ec4a5797a5012a827e3a37c861608146d7c542bb253b35f38771ab70fbae99ba1efc551ed07a81f160ff6f13ff80e3",
                    "lastLoginFailDate": "2017-03-27",
                    "loginFailTimes": 0,
                    "isLockLogin": false,
                    "lockTimeSpan": 0,
                    "lastLoginDate": null,
                    "isFirstLogin": false,
                    "userStatus": "Enable",
                    "machineCode": null,
                    "id": "ac3baf6989784d33b69081a69251c887"
                }
            ],
            "totalAmount": null,
            "totalFee": null
        }
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

子用户新增

request url (POST)

http://localhost:8080/HazeAppTMS/out/users/save

request data

{"email":"6769318541@qq.com","loginPassword":"sfefeseee111fe","tradePasword":"eff1111efe"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

子用户重置密码

request url (POST)

http://localhost:8080/HazeAppTMS/out/users/resetPassword

request data

{"newpwd":"fesfe13212","pwdtype":"tng_pwd", "userId":"fd7b7c70d37d475ba99b329e06b2db8d"}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

子用户删除

request url (GET)

http://localhost:8080/HazeAppTMS/out/users/delete/{id}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}

子用户权限获取

request url (GET)

http://localhost:8080/HazeAppTMS/out/users/menus/{id}

response data

{
    "data": {
        "menu": [
            {
                "id": "51",
                "label": "Dashboard\t",
                "status": "ACTIVE",
                "children": null
            },
            {
                "id": "52",
                "label": "Transaction management\t",
                "status": "INACTIVE",
                "children": [
                    {
                        "id": "5201",
                        "label": "Transaction History\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5202",
                        "label": "Download Transactions\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5203",
                        "label": "Refund and Cancel\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5204",
                        "label": "Refund Review",
                        "status": "INACTIVE",
                        "children": null
                    }
                ]
            },
            {
                "id": "53",
                "label": "Settlement\t",
                "status": "INACTIVE",
                "children": [
                    {
                        "id": "5301",
                        "label": "Settlement History\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5303",
                        "label": "TMS-SETTLE-SUMMARY",
                        "status": "INACTIVE",
                        "children": null
                    }
                ]
            },
            {
                "id": "54",
                "label": "Account\t",
                "status": "INACTIVE",
                "children": [
                    {
                        "id": "5401",
                        "label": "Account Summary\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5402",
                        "label": "Withdraw to bank\t",
                        "status": "INACTIVE",
                        "children": null
                    }
                ]
            },
            {
                "id": "55",
                "label": "Settings\t",
                "status": "ACTIVE",
                "children": [
                    {
                        "id": "5501",
                        "label": "Change password\t",
                        "status": "ACTIVE",
                        "children": null
                    },
                    {
                        "id": "5502",
                        "label": "User profile\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5503",
                        "label": "Certificate\t",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5505",
                        "label": "TMS-SETTING-MAIL",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5506",
                        "label": "TMS-SETTING-QRCODE",
                        "status": "INACTIVE",
                        "children": null
                    }
                ]
            },
            {
                "id": "56",
                "label": "EasyPay order",
                "status": "INACTIVE",
                "children": [
                    {
                        "id": "5601",
                        "label": "Add new order",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5602",
                        "label": "EasyPay order",
                        "status": "INACTIVE",
                        "children": null
                    },
                    {
                        "id": "5603",
                        "label": "Custom order ",
                        "status": "INACTIVE",
                        "children": null
                    }
                ]
            }
        ]
    },
    "isSuccess": true,
    "message": "operation success",
    "success": true
}

子用户权限修改

request url (POST)

http://localhost:8080/HazeAppTMS/out/users/savePermission

request data

{"userId":"fd7b7c70d37d475ba99b329e06b2db8d", "permissions":["55"]}

response data

{
    "data": null,
    "isSuccess": true,
    "message": "Operation was successful\t",
    "success": true
}