Update
Request address
POST
https://sandbox.j-pay.net/pay/merchant_person/update
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 |
| id_number | String | N | N | Identity number of the person. |
| first_name | String | N | N | First name of the person. |
| last_name | String | N | N | Last name of the person. |
| birthday | String | N | N | Date of birth of the person. |
| phone | String | N | N | Phone number of the person. |
| percent_ownership | String | N | N | Percentage of ownership of the company. |
| cert_issue_date | String | N | N | Date when the person’s identity document was issued. |
| cert_expire_date | String | N | N | Date when the person’s identity document expires. |
| address | Array | N | N | Address of the person. |
| title | String | N | N | Title of the person. Such as CEO. |
| document | Array | N | N | Documents that may be submitted to satisfy various informational requests. |
| sign | String | Y | N | Please see the verification signature field format |
Address
| Parameter Name | Type | Required | Sign(Y OR N) | Parameter Description |
|---|---|---|---|---|
| country | String | Y | N | Country code. |
| state | String | Y | N | State, county, province, or region(ISO 3166-2) |
| city | String | Y | N | City. |
| line1 | String | Y | N | Address line 1. |
| line2 | String | N | N | Address line 2. |
| postal_code | String | Y | N | ZIP or postal code. |
Documents
File ID collection, Upload files
| Parameter Name | Type | Required | Sign(Y OR N) | Parameter Description |
|---|---|---|---|---|
| company_authorization | Array | Y | N | One or more documents that demonstrate proof that this person is authorized to represent the company. |
| passport | Array | Y | N | One or more documents showing the person’s passport page with photo and personal data. |
| passport_handing | Array | Y | N | One or more documents showing the person holding a passport photo |
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(),
id_number: '000000000',
first_name: 'fred',
last_name: 'flintstone',
birthday: '1990-01-01',
phone: '1234567890',
cert_issue_date: '2020-01-01',
percent_ownership: '100',
address: {
country: 'US',
state: "CA",
city: "San Francisco",
line1: "123 Main St",
postal_code: "94102",
},
documents: {
company_authorization: [1,2,3],
passport: [3],
passport_handing: [3],
},
});
axios
.request({
url: "https://sandbox.j-pay.net/pay/merchant_person/update",
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...