Skip to main content

Delete

Request address

POST

https://sandbox.j-pay.net/pay/merchant_person/delete

Test account

Merchant ID:10010

ApiKey: 7e4nicn14nhyup146dfbi8hpnpus9juz

Request headers

Header NameHeader Value
Agent-Merchant-Id10010

Request parameters

Parameter NameTypeRequiredSign(Y OR N)Parameter Description
person_idStringYYPerson ID
signStringYNPlease see the verification signature field format

Response Parameters

Parameter NameTypeParameter Description
statusStringStatus of the request
success:Successful
error:Fail
msgStringMessage of the request
dataIntegerResponse data
data.idIntegerMerchant Person ID

Demo

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);
});