PATCH /api/v1/company_information
Update Company Information
Update the fields of an existing company 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 PATCH https://komoju.com/api/v1/live_application/company_information \
-u sk_123456: \
-d "name=I%20am%20changing%20this%20in%20this%20request"
var querystring = require('querystring');
var https = require('https');
var secret_key = 'sk_123456'
var auth = 'Basic ' + Buffer.from(secret_key + ':').toString('base64');
var patch_data = querystring.stringify({
'name': 'I am changing this in this request'
});
var patch_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/company_information',
method: 'PATCH',
headers: {
'Authorization': auth,
'Content-Length': Buffer.byteLength(patch_data)
}
};
var patch_req = https.request(patch_options, function(res) {
res.setEncoding('utf8');
res.on('data', function (chunk) {
console.log(chunk);
});
});
patch_req.write(patch_data);
patch_req.end();
require 'uri'
require 'net/https'
require 'json'
require 'base64'
require 'pp'
uri = URI.parse('https://komoju.com/api/v1/live_application/company_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}"
}
body = {
name: "I am changing this in this request"
}
res = https.patch(
uri.path,
body.to_json,
headers
)
puts res.body
{
"id": "62dwxa760ohtfxn44xs35eol0",
"resource": "company_information",
"status": "pending",
"created_at": "2021-03-01T13:07:08.000+09:00",
"updated_at": "2021-03-01T13:07:08.000+09:00",
"company_name": "I am changing this in this request",
"company_name_kana": "デジカ",
"company_name_alphabet": "Degica",
"registration_number": "9258244461478",
"share_capital_amount": 1234,
"share_capital_currency": "JPY",
"company_phone": "(283) 842-4687 x670",
"company_country": "JP",
"company_postal_code": "89330-7963",
"company_prefecture_state": "New York",
"company_prefecture_state_kana": null,
"company_city": "Moenshire",
"company_city_kana": null,
"company_address": "9727 Ziemann Fords",
"company_address_kana": "カタカナ",
"company_address_building_name": "Apt. 371",
"company_address_building_name_kana": "カタカナ",
"company_url": "https://example.com/a/b",
"industry_description": "Government Agency",
"business_description": "Education Management",
"employee_number": 506,
"establishment_date": "2020-03-13",
"office_name": "Frami-Murphy",
"contact_email": "britneygorczany@miller.biz",
"contact_phone": "679.978.4134",
"corporation_type": "corporation",
"incorporation_certificates": [
"7estyza4j4a5s1wdqhhe0r4f7"
],
"sole_proprietor_proofs": [
]
}
Params
Param name | Description |
---|---|
company_country optional |
Company Country of the General Information. |
corporation_type optional |
Corporation Type of the General Information. Must be either corporation or sole_proprietor. |
company_name optional |
Company Name of the General Information |
company_name_kana optional |
Company Name of the General Information represented in Japanese Kana |
company_name_alphabet optional |
Company Name of the General Information represented in Alphabet |
share_capital_amount optional |
Company Share Capital Amount of the General Information |
share_capital_currency optional |
Company Share Capital Currency of the General Information |
registration_number optional |
Registration Number of the General Information |
company_phone optional |
Company Phone of the General Information |
company_postal_code optional |
Postal Code of the Company Address |
company_prefecture_state optional |
Prefecture/State of the Company Address |
company_city optional |
City of the Company Address |
company_address optional |
Address of the Company Address |
company_address_kana optional |
Address of the Company Address represented in Japanese Kana |
company_address_building_name optional |
Building Name of the Company Addressd |
company_address_building_name_kana optional |
Building Name of the Company Address represented in Japanese Kana |
company_url optional |
Company URL of the Business Information |
industry_description optional |
Industry of the Business Information |
business_description optional |
Business description of the Business Information |
employee_number optional |
Number of employees of the Business Information |
establishment_date optional |
Establishment Date of the Business Information |
office_name optional |
Customer Support Department Name of the Contact Information |
contact_email optional |
Customer Support Contact E-mail Address of the Contact Information |
contact_phone optional |
Customer Support Phone of the Contact Information |
incorporation_certificates optional |
An arrary of file ID. Please upload a copy of your company's incorporation certificate/extract of business registration via the File API. After uploading, please provide the ID of file returned by the File API. |
sole_proprietor_proofs optional |
An arrary of file ID. Please upload your proof of registration of Sole-Proprietorship via the File API. After uploading, please provide the ID of file returned by the File API. |