自助绑定

请求参数类型JSON

返回参数类型JSON

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

登录

request url (POST)

http://localhost:8081/api/login

request data

{
    password: "abcd1234"
    username: "deshui"
}

response data

{
    "data": {
        "role": {
            "id": 6,
            "roleNo": "R000005",
            "roleName": "admin",
            "isDel": 0,
            "gmtCreate": 1509926400000,
            "gmtUpdate": null,
            "resourceIds": null
        },
        "userContext": {
            "id": 4,
            "userName": "deshui",
            "password": "e19d5cd5af0378da05f63f891c7467af",
            "gmtCreate": 1520002292000,
            "roleNo": null,
            "roleSets": "R000005",
            "status": "normal",
            "gntUpdate": null
        }
    },
    "isSuccess": true,
    "message": "login success"
}

首页

countWeek

request url (GET)

http://localhost:8081/api/customer/countWeek

request data

none

response data

{
    "dates": ["2018-11-23", "2018-11-24", "2018-11-25", "2018-11-26", "2018-11-27", "2018-11-28", "today"],
    "nums": [0, 0, 0, 0, 0, 0, 0]
}

lastLoginLog

request url (POST)

http://localhost:8081/api/lastLoginLog

request data

{"userName": "deshui"}

response data

{
    "id": 584,
    "userName": "deshui",
    "userType": "R000005",
    "loginDate": 1543470966000,
    "loginResult": "true",
    "loginMassge": "登录成功",
    "loginIp": "180.167.25.154",
    "loginDevice": "pc",
    "gmtCreate": 1543470966000
}

汇率列表

汇率保存

request url (POST

http://localhost:8081/api/exchangeRate/save

request data

{
    "baseCurrency": "CNY",
    "cardOrg":0,
    "exchangeRate": "6.432434",
    "txnCurrency":"USD"
}

商户列表

request url (POST)

http://localhost:8081/api/customer/search

request data

{"pageSize": 5, "customerName": ""}

response data

{
    "totalRows": 11,
    "pageSize": 5,
    "currPageNum": 1,
    "totalPages": 3,
    "startRow": 0,
    "endRow": 5,
    "pageData": [{
        "id": 67,
        "customerNo": "11000855557148",
        "customerName": null,
        "customerType": null,
        "email": "cheng.z@nihaopay.com",
        "password": "e19d5cd5af0378da05f63f891c7467af",
        "mobile": "15216771668",
        "corporateName": null,
        "certType": null,
        "certIndex": null,
        "certNo": null,
        "certNoV": null,
        "province": null,
        "city": null,
        "address": null,
        "withdrawCurrency": "CNY",
        "minWithdrawAmount": 10000,
        "status": "创建",
        "managerName": null,
        "isDel": 0,
        "gmtCreate": 1536893836000,
        "gmtUpdate": null,
        "mobileEncrpt": null
    }]
}

商户编辑

request url (GET)

http://localhost:8081/api/customer/detail/{id}

request data

id

response data

{
    "id": 63,
    "customerNo": "11001343270463",
    "customerName": "徐其华",
    "customerType": "PEOPLE_CHINA_ACCOUNT",
    "email": "787290931@qq.com",
    "password": "e19d5cd5af0378da05f63f891c7467af",
    "mobile": "18317057874",
    "corporateName": "徐其华",
    "certType": "1",
    "certIndex": "76bc2abaf2b131e7b30e375147e617fe",
    "certNo": "320911199005113412",
    "certNoV": "**************3412",
    "province": "310000",
    "city": "310100",
    "address": "111111111111",
    "withdrawCurrency": "CNY",
    "minWithdrawAmount": 10000,
    "status": "unreviewed",
    "managerName": null,
    "isDel": 0,
    "idA": "http://121.40.78.46:8080/imgs/img/57/cd/5c/c0c1f084fc85252957a7dd6a8faf6974.png",
    "idB": "http://121.40.78.46:8080/imgs/img/7f/f8/52/c0c1f084fc85252957a7dd6a8faf6974.png",
    "idInHand": "http://121.40.78.46:8080/imgs/img/5c/f9/f5/c0c1f084fc85252957a7dd6a8faf6974.png",
    "gmtCreate": 1523383076000,
    "gmtUpdate": null
}

商户-更新

request url (POST)

http://localhost:8081/api/customer/update

request data

{
    "idA":"http://121.40.78.46:8080/imgs/img/57/cd/5c/c0c1f084fc85252957a7dd6a8faf6974.png",
    "idB":"http://121.40.78.46:8080/imgs/img/7f/f8/52/c0c1f084fc85252957a7dd6a8faf6974.png",
    "idInHand":"http://121.40.78.46:8080/imgs/img/5c/f9/f5/c0c1f084fc85252957a7dd6a8faf6974.png",
    "mobile":"18317057874",
    "email":"787290931@qq.com",
    "address":"111111111111",
    "customerName":"徐其华",
    "certNo":"320911199005113412",
    "customerNo":"11001343270463"
}

response data

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

商户-激活

request url (POST)

http://localhost:8081/api/customer/active

request data

{
    "idA":"http://121.40.78.46:8080/imgs/img/3d/d2/b3/6bd281bed4dff9fe340dda2e712eb511.11",
    "idB":"http://121.40.78.46:8080/imgs/img/ee/bb/b1/6bd281bed4dff9fe340dda2e712eb511.11",
    "idInHand":"http://121.40.78.46:8080/imgs/img/fd/d8/41/6bd281bed4dff9fe340dda2e712eb511.11",
    "mobile":"18681809773",
    "email":"flora@nihaopay.com",
    "address":"sssss",
    "customerName":"sss",
    "certNo":"610112192208079387",
    "customerNo":"11001538936022"
}

response data

{"data":null, "isSuccess":false, "message":"缺少银行账号,无法激活"}

商户审核

request url (POST)

http://localhost:8081/api/customer/search

request data

{"pageSize":5, "status": "unreviewed", "customerName":""}

response data

{
    "totalRows":3,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":1,
    "startRow":0,
    "endRow":3,
    "pageData":[
        {
            "id":63,
            "customerNo":"11001343270463",
            "customerName":"徐其华",
            "customerType":"PEOPLE_CHINA_ACCOUNT",
            "email":"787290931@qq.com",
            "password":"e19d5cd5af0378da05f63f891c7467af",
            "mobile":"18317057874",
            "corporateName":"徐其华",
            "certType":"1",
            "certIndex":"76bc2abaf2b131e7b30e375147e617fe",
            "certNo":"320911199005113412",
            "certNoV":"320911********3412",
            "province":"310000",
            "city":"310100",
            "address":"111111111111",
            "withdrawCurrency":"CNY",
            "minWithdrawAmount":10000,
            "status":"待审核",
            "managerName":null,
            "isDel":0,
            "gmtCreate":1523383076000,
            "gmtUpdate":null,
            "mobileEncrpt":null
        }
    ]
}

银行卡绑定审核list

request url (POST)

http://localhost:8081/api/bankAccount/search

request data

{"pageSize":5, "customerNo":"", "status":"wait_audit"}

response data

{
    "totalRows":16,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":4,
    "startRow":0,
    "endRow":5,
    "pageData":[
        {
            "id":39,
            "customerNo":"11001878869190",
            "shopType":null,
            "currency":"CNY",
            "bankName":"工商银行",
            "accountNameCn":"李四",
            "accountNameEn":null,
            "accountIndex":"94584e9c33d9a48232e670cc2a310963",
            "accountNo":"6228481234567890111",
            "accountNoV":"622848*********0111",
            "certType":"1",
            "certIndex":"841c0cd5f0b617f1ec2d423aaea0c541",
            "certNo":"120102200001018213",
            "certNoV":"120102********8213",
            "swiftCode":null,
            "bankAddress":"呵呵",
            "mobile":"15216771668",
            "status":"审核中",
            "isDel":0,
            "gmtCreate":1542341716000,
            "gmtUpdate":null,
            "statusName":null,
            "expireDay":"20251111",
            "eAccountNo":null
        }
    ]
}

银行卡绑定审核-审核

request url (GET)

http://localhost:8081/api/bankAccount/detail/{id}

request data

id

response data

{
    "id":34,
    "customerNo":"11001529710114",
    "shopType":null,
    "currency":"USD",
    "bankName":"建设",
    "accountNameCn":"李四",
    "accountNameEn":null,
    "accountIndex":"fb3a2ecd1d50b78640fcf2d04e1b498e",
    "accountNo":"6217002960106370466",
    "accountNoV":"621700*********0466",
    "certType":"1",
    "certIndex":"15eba54600941bacdcf610e11cc1e6d0",
    "certNo":"130101200001013877",
    "certNoV":"130101********3877",
    "swiftCode":null,
    "bankAddress":"上海",
    "mobile":"17600163699",
    "status":"wait_audit",
    "isDel":0,
    "gmtCreate":1521820852000,
    "gmtUpdate":null,
    "statusName":null,
    "expireDay":"20251111",
    "eAccountNo":null
}

银行卡绑定审核-审核-通过

request url (GET)

http://localhost:8081/api/bankAccount/approve/{id}

request data

id

response data

{"code":500,"label":"304","message":"Server Error"}

商铺管理

商铺列表

request url (Post)

http://localhost:8081/api/customerShop/search

request data

{"pageSize":5,"customerNo":"","pageNum":1}

response data

{"totalRows":0,"pageSize":5,"currPageNum":1,"totalPages":0,"startRow":0,"endRow":0,"pageData":[]}

商铺列表-详情

request url (Post)

http://localhost:8081/api/customerShop/detail/{id}

request data

id

response data


商铺审核列表

商铺审核接口

request url (Post

 http://localhost:8081/api/customerShop/approve

request data

{

    "receiveBankAccountNumber":"esfesfefe",
    "receiveBankCurrencyCode":"USD",
    "receiveBankName":"hehe",
    "shopNo":"22000532702512"
}

提现列表

request url (Post)

http://localhost:8081/api/withdrawOrder/search

request data

{"pageSize":5,"customerNo":"","pageNum":1}

response data

{
    "totalRows":34,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":7,
    "startRow":0,
    "endRow":5,
    "pageData":[
        {
            "id":71,
            "customerNo":"11000974668574",
            "orderNo":"18113002195230718517",
            "orderAmount":"3.00",
            "rate":null,
            "status":"失败",
            "orderTime":"2018-11-30 02:19:52",
            "shopName":null,
            "shopNo":null,
            "withdrawAmount":"3.00",
            "feeAmount":"0.00",
            "withdrawCurrency":"CNY"
        },
        {
            "id":70,
            "customerNo":"11000974668574",
            "orderNo":"18112907452070816423",
            "orderAmount":"5.00",
            "rate":null,
            "status":"失败",
            "orderTime":"2018-11-29 07:45:20",
            "shopName":null,
            "shopNo":null,
            "withdrawAmount":"5.00",
            "feeAmount":"0.00",
            "withdrawCurrency":"CNY"
        },
        {
            "id":69,
            "customerNo":"11000974668574",
            "orderNo":"18112907383345892764",
            "orderAmount":"4.00",
            "rate":null,
            "status":"失败",
            "orderTime":"2018-11-29 07:38:33",
            "shopName":null,
            "shopNo":null,
            "withdrawAmount":"4.00",
            "feeAmount":"0.00",
            "withdrawCurrency":"CNY"
        }
    ]
}

提现列表-详情

request url (GET)

http://localhost:8081/api/withdrawOrder/detail/{id}

request data

id

response data

{
    "pageData":[
        {
            "id":171,
            "orderNo":"18113002195230718517",
            "customerNo":"11000974668574",
            "shopNo":"22001888835163",
            "amount":300,
            "currency":"CNY",
            "gmtCreate":1543544392000,
            "gmtUpdate":null
        }
    ],
    "order":{
        "id":71,
        "customerNo":"11000974668574",
        "orderNo":"18113002195230718517",
        "orderAmount":"3.00",
        "rate":null,
        "status":"失败",
        "orderTime":"2018-11-30 02:19:52",
        "withdrawAmount":"3.00",
        "realityAccount":"0.00",
        "feeAmount":"0.00",
        "withdrawCurrency":"CNY",
        "accountNo":"622848*********0142",
        "accountIndex":"e9788a45ce8d8102e9d2bc9273d55c7c",
        "accountId":36,
        "accountCurrency":"CNY"
    }
}

提现详情列表

request url (Post)

http://localhost:8081/api/withdrawOrderDetail/search

request data

{"pageSize":5,"customerNo":"","shopNo":"","pageNum":1}

response data

{
    "totalRows":34,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":7,
    "startRow":0,
    "endRow":5,
    "pageData":[
        {
            "id":171,
            "orderNo":"18113002195230718517",
            "customerNo":"11000974668574",
            "shopNo":"22001888835163",
            "amount":300,
            "currency":"CNY",
            "gmtCreate":1543544392000,
            "gmtUpdate":null
        }
    ]
}

提现申请

request url (Post)

http://cbs-api.nihaopay.work/cbs-core/api/tms/withdraw/account/list/amazon_us

request data

{}

response data

{
    "resp_message": "操作成功",
    "resp_code": "10000",
    "result": true,
    "data": {
        "exchangeRate": 9,
        "accounts": [
            {
                "id": 0,
                "accountNo": "12001421559604",
                "customerNo": "11000974668574",
                "shopNo": "22001888835163",
                "shopName": "abcdf",
                "currency": "USD",
                "availableBalance": "105.70",
                "frozenBalance": 28930,
                "preInboundBalance": 0,
                "sumBalance": null,
                "status": "normal",
                "gmtCreate": 1523370710000,
                "gmtUpdate": null,
                "available": 105.7,
                "frozen": null,
                "preInbound": null,
                "factAccountNo": null,
                "shopStatus": null,
                "toWithdrawAmount": "0.00"
            },
            {
                "id": 0,
                "accountNo": "12001231252810",
                "customerNo": "11000974668574",
                "shopNo": "22000413081802",
                "shopName": "abcdgh",
                "currency": "USD",
                "availableBalance": "195.50",
                "frozenBalance": 9250,
                "preInboundBalance": 0,
                "sumBalance": null,
                "status": "normal",
                "gmtCreate": 1523374512000,
                "gmtUpdate": null,
                "available": 195.5,
                "frozen": null,
                "preInbound": null,
                "factAccountNo": null,
                "shopStatus": null,
                "toWithdrawAmount": "0.00"
            }
        ]
    }
}

提现申请保存

request url (Post)

http://cbs-api.nihaopay.work/cbs-core/api/tms/withdraw/save

request data

{
    "bankAccountId":"123132",
    "exchangeRate":"6.432434",
    "orders":[
        {
            "orderAmount":"3232.22",
            "shopNo":"13213"
        }
    ],
    "rmbAmount":"23",
    "shopType":"amozon_us"
}

银行提现列表

request url (Post)

http://localhost:8081/api/withdrawSequence/search

request data

{"pageSize":5,"customerNo":"","pageNum":1}

response data

{
    "totalRows":5,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":1,
    "startRow":0,
    "endRow":5,
    "pageData":[
        {
            "id":6,
            "orderNo":"18113002195232560862",
            "transNo":"1811300219523254148461",
            "withdrawAmount":300,
            "withdrawCurrency":"CNY",
            "status":2,
            "withdrawFinishDate":null,
            "withdrawDate":1543544392000,
            "shopNo":null,
            "customerNo":"11000974668574",
            "acceptType":"0",
            "channelId":"shanghai",
            "sendBankBizNo":"NHP012018113020181130339503041",
            "recieverName":"互联网",
            "batchFile":"B_IBS0001_nhpBalFinancing_20181130_0001_000",
            "sendBankNo":"20181130339503041",
            "sysPreserve":null,
            "originAccount":"FTN3666068600001",
            "foreignCurrency":"CNY",
            "accountNoV":"622848*********0142",
            "accountNo":"6228481234567890142",
            "eAccountNo":"623185009700067587",
            "contactMobile":"15216771668",
            "preserveMobile":"15216771668",
            "certNo":"430522199107203913",
            "certType":"1",
            "payerCountry":"USA",
            "payerName":"水货[acc:000000]",
            "bankTransNo":null,
            "respCode":null,
            "respMessage":null,
            "gmtCreate":1543544392000,
            "gmtUpdate":null
        }
    ]
}

银行提现列表-详情

request url (GET)

http://localhost:8081/api/withdrawSequence/detail/{id}

request data

id

response data

{
    "withdrawSequence":{
        "id":4,
        "orderNo":"18112907383346620107",
        "transNo":"1811290738334666478565",
        "withdrawAmount":400,
        "withdrawCurrency":"CNY",
        "status":2,
        "withdrawFinishDate":null,
        "withdrawDate":1543477113000,
        "shopNo":null,
        "customerNo":"11000974668574",
        "acceptType":"0",
        "channelId":"shanghai",
        "sendBankBizNo":"NHP012018112920181129813763854",
        "recieverName":"互联网",
        "batchFile":"B_IBS0001_nhpBalFinancing_20181129_0002_000",
        "sendBankNo":"20181129813763854",
        "sysPreserve":null,
        "originAccount":"FTN3666068600001",
        "foreignCurrency":"CNY",
        "accountNoV":"622848*********0142",
        "accountNo":"6228481234567890142",
        "eAccountNo":"623185009700067587",
        "contactMobile":"15216771668",
        "preserveMobile":"15216771668",
        "certNo":"430522199107203913",
        "certType":"1",
        "payerCountry":"USA",
        "payerName":"水货[acc:000000]",
        "bankTransNo":null,
        "respCode":null,
        "respMessage":null,
        "gmtCreate":1543477113000,
        "gmtUpdate":null
    }
}

系统管理

用户-list

request url (Post)

http://localhost:8081/api/user/search

request data

{"pageSize":5,"name":""}
response data
{
    "totalRows":3,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":1,
    "startRow":0,
    "endRow":3,
    "pageData":[
        {
            "id":9,
            "userName":"tanwei",
            "password":"e10adc3949ba59abbe56e057f20f883e",
            "gmtCreate":1520868410000,
            "roleNo":null,
            "roleSets":"admin",
            "status":"正常",
            "gntUpdate":null
        }
    ]
}

用户-保存

request url (Post)

http://localhost:8081/api/user/save

request data

{"userName":"001","roleSets":"R000006","password":"001"}

response data

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

request url (Post)

http://localhost:8081/api/role/search

request data

{"pageSize":5,"name":""}
response data
{
    "totalRows":3,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":1,
    "startRow":0,
    "endRow":3,
    "pageData":[
        {
            "id":9,
            "userName":"tanwei",
            "password":"e10adc3949ba59abbe56e057f20f883e",
            "gmtCreate":1520868410000,
            "roleNo":null,
            "roleSets":"admin",
            "status":"正常",
            "gntUpdate":null
        }
    ]
}

角色-list

request url (GET)

http://localhost:8081/api/role/retrieveAll

request data

none

response data

[
    {
        "id":1,
        "roleNo":"R000001",
        "roleName":"branch_console",
        "isDel":0,
        "gmtCreate":1509926400000,
        "gmtUpdate":null,
        "resourceIds":null
    },
    {
        "id":2,
        "roleNo":"R000002",
        "roleName":"finance",
        "isDel":0,
        "gmtCreate":1509926400000,
        "gmtUpdate":null,
        "resourceIds":null
    }
]

角色-保存

request url (Post)

http://localhost:8081/api/role/save

request data


response data


角色-编辑

request url (GET)

http://localhost:8081/api/role/edit/{id}

request data

id

response data

{
    "menuIds":[],
    "role":{
        "id":1,
        "roleNo":"R000001",
        "roleName":"branch_console",
        "isDel":0,
        "gmtCreate":1509926400000,
        "gmtUpdate":null,
        "menuIds":null,
        "operationIds":null
    },
    "menu":[
        {
            "id":"01",
            "title":"商户管理",
            "expand":false,
            "children":[
                {
                    "id":"0101",
                    "title":"商户列表",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                },
                {
                    "id":"0102",
                    "title":"商户审核",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                },
                {
                    "id":"0103",
                    "title":"银行卡绑定审核",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                }
            ],
            "selected":false,
            "disabled":false,
            "checked":false
        },
        {
            "id":"02",
            "title":"商铺管理",
            "expand":false,
            "children":[
                {
                    "id":"0201",
                    "title":"商铺列表",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                },
                {
                    "id":"0202",
                    "title":"提现列表",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                },
                {
                    "id":"0203",
                    "title":"提现详情列表",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                }
            ],
            "selected":false,
            "disabled":false,
            "checked":false
        },
        {
            "id":"03",
            "title":"基础信息管理",
            "expand":false,
            "children":[
                {
                    "id":"0301",
                    "title":"汇率列表",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                }
            ],
            "selected":false,
            "disabled":false,
            "checked":false
        },
        {
            "id":"04",
            "title":"系统管理",
            "expand":false,
            "children":[
                {
                    "id":"0401",
                    "title":"用户管理",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                },
                {
                    "id":"0402",
                    "title":"角色管理",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                },
                {
                    "id":"0403",
                    "title":"通知列表",
                    "expand":false,
                    "children":null,
                    "selected":false,
                    "disabled":false,
                    "checked":false
                }
            ],
            "selected":false,
            "disabled":false,
            "checked":false
        }
    ]
}

角色-保存

request url (POST)

http://localhost:8081/api/role/update

request data

{
    "id":"",
    "roleNo":"R000001",
    "roleName":"branch_console",
    "name":"branch_console",
    "menuIds":[],
    "comments":""
}

response data

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

通知-search

request url (POST)

http://localhost:8081/api/notification/search

request data

{"pageSize":5,"notificationTitle":""}

response data

{
    "totalRows":7,
    "pageSize":5,
    "currPageNum":1,
    "totalPages":2,
    "startRow":0,
    "endRow":5,
    "pageData":[
        {
            "id":192,
            "notificationType":"商户",
            "ownerType":"店铺",
            "ownerId":"amazon_eu",
            "notificationContent":"fdsfd",
            "notificationTitle":"fdsf",
            "effectiveDate":1521072000000,
            "expiredDate":1521158400000,
            "isDel":0,
            "gmtCreate":1520879090000,
            "gmtUpdate":1520879102000,
            "status":null,
            "notificationId":"NF674972389"
        }
    ]
}

通知-编辑

request url (GET)

http://localhost:8081/api/notification/edit/{id}

request data

id

response data

{
    "notification":{
        "id":189,
        "notificationType":"merchant",
        "ownerType":"private",
        "ownerId":"11000478301939",
        "notificationContent":"ffffffff",
        "notificationTitle":"sssss",
        "effectiveDate":1519862400000,
        "expiredDate":1521244800000,
        "isDel":0,
        "gmtCreate":1520868797000,
        "gmtUpdate":null,
        "shopType":null,
        "customerNo":"11000478301939",
        "status":null,
        "notificationId":"NF2052706109",
        "createDateText":"2018-03-12 03:33"
    }
}