删除
请求地址
POST
https://sandbox.j-pay.net/pay/merchant_person/delete
测试账号
Merchant ID:10010
ApiKey: 7e4nicn14nhyup146dfbi8hpnpus9juz
请求头
| 参数名称 | 参数值 |
|---|---|
| Agent-Merchant-Id | 10010 |
请求参数
| 参数名称 | 类型 | 是否必填 | 是否签名 | 参数描述 |
|---|---|---|---|---|
| person_id | String | Y | Y | 用户ID |
| sign | String | Y | N | 请参考签名算法 |
响应参数
| 参数名称 | 类型 | 参数说明 |
|---|---|---|
| code | Integer | 请求状态 1:成功 0:失败 |
| msg | String | 请求消息 |
| data | Integer | 返回数据 |
| data.id | Integer | 用户ID |
Demo
- Javascript
- Php
- Python
import { md5 } from "js-md5";
import axios from "axios";
const KEY = "7e4nicn14nhyup146dfbi8hpnpus9juz";
const MEMBER_ID = "10010";
let query = {
person_id: 3,
};
let signData = [];
Object.keys(query)
.sort()
.forEach((key) => signData.push(`${key}=${query[key]}`));
signData.push(`key=${KEY}`);
Object.assign(query, {
sign: md5(signData.join("&")).toUpperCase(),
});
axios
.request({
url: "https://sandbox.j-pay.net/pay/merchant_person/delete",
method: "post",
headers: {
"Agent-Merchant-Id": MEMBER_ID,
"Content-Type": "application/x-www-form-urlencoded",
},
data: query,
})
.then(({ data }) => {
console.log("success", data);
})
.catch((error) => {
console.log("error", error);
});
Continuously updating...
Continuously updating...