GET /api/v1/personal_information
Show Personal Information
Show the fields of an existing personal information record for the onboarding live application of the currently authenticated merchant.
betaThis API is a pre-release. Please contact KOMOJU to obtain more usage instructions before using it.
Examples
- cURL
- Node.js
- Ruby
curl -X GET https://komoju.com/api/v1/live_application/personal_information \
-u sk_123456:
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var get_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/personal_information',
method: 'GET',
headers: {
'Authorization': auth
}
};
var get_req = https.request(get_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
get_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/personal_information')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
secret_key = 'sk_123456'
auth = Base64.encode64("#{secret_key}:")
headers = {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"
}
res = https.get(uri.path, headers)
puts res.body
{
"resource": "personal_information",
"status": "pending",
"created_at": "2021-03-03T11:10:30.000+09:00",
"updated_at": "2021-03-03T11:10:32.000+09:00",
"representative_first_name": "花子",
"representative_first_name_kana": "ハナコ",
"representative_last_name": "古茂樹",
"representative_last_name_kana": "コモジュ",
"representative_dob": "2020-08-02",
"representative_gender": "female",
"representative_country": "JP",
"representative_postal_code": "1000003",
"representative_prefecture_state": "東京",
"representative_prefecture_state_kana": "トウキョウ",
"representative_city": "千代田区",
"representative_city_kana": "チヨダク",
"representative_address": "一ツ橋1-222-30",
"representative_address_kana": "ヒトツバシ1-222-30",
"representative_address_building_name": "古茂樹ビル8F",
"representative_address_building_name_kana": "コモジュビル8F",
"representative_phone": "03-9999-9999"
}