Delete
Request address
POST
https://sandbox.j-pay.net/pay/merchant_person/delete
Test account
Merchant ID:10010
ApiKey: 7e4nicn14nhyup146dfbi8hpnpus9juz
Request headers
| Header Name | Header Value |
|---|---|
| Agent-Merchant-Id | 10010 |
Request parameters
| Parameter Name | Type | Required | Sign(Y OR N) | Parameter Description |
|---|---|---|---|---|
| person_id | String | Y | Y | Person ID |
| sign | String | Y | N | Please see the verification signature field format |
Response Parameters
| Parameter Name | Type | Parameter Description |
|---|---|---|
| status | String | Status of the request success:Successful error:Fail |
| msg | String | Message of the request |
| data | Integer | Response data |
| data.id | Integer | Merchant Person 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...