PATCH /api/v1/site_information
Update Site Information
Update the fields of an existing site 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/site_information \
-u sk_123456: \
-d "site_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({
'site_name': 'I am changing this in this request'
});
var patch_options = {
host: 'komoju.com',
port: '443',
path: '/api/v1/live_application/site_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/site_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 = {
site_name: "I am changing this in this request"
}
res = https.patch(
uri.path,
body.to_json,
headers
)
puts res.body
{
"resource": "site_information",
"status": "pending",
"created_at": "2021-03-05T13:06:27.000+09:00",
"updated_at": "2021-03-05T13:06:27.000+09:00",
"site_name": "I am changing this in this request",
"site_name_kana": "カタカナ",
"site_name_alphabet": "C.R.E.A.M",
"site_url": "http://ward.co/nigel",
"site_integration_type": "shopify",
"establishment_date": "2020-11-19",
"store_country": "JP",
"store_postal_code": "28461-1338",
"store_prefecture_state": "Louisiana",
"store_prefecture_state_kana": null,
"store_city": "South Anneside",
"store_city_kana": null,
"store_address": "57566 Hai Turnpike",
"store_address_kana": "カタカナ",
"store_building_name": "Park Crossing",
"store_building_name_kana": "カタカナ",
"site_product_description": "Lightweight Cotton Lamp",
"site_annual_sales": 6420493533,
"site_annual_sales_currency": "JPY",
"site_average_transactional_value": 300,
"site_average_transactional_currency": "JPY",
"site_minimum_product_pricing_cents": 1,
"site_minimum_product_pricing_currency": "JPY",
"site_maximum_product_pricing_cents": 1000,
"site_maximum_product_pricing_currency": "JPY",
"sctl_url": "http://kuhn.co/trea",
"sales_permit_required": false,
"aup_accepted": true
}
Params
Param name | Description |
---|---|
site_name optional |
Site Name of the Site Information. |
site_name_kana optional |
Site Name (Kana) of the Site Information. |
site_name_alphabet optional |
Site Name (Alphabet) of the Site Information. |
site_url optional |
Site URL of the Site Information. |
site_integration_type optional |
Integration Type of the Site Information.. |
establishment_date optional |
Site Establishment Date of the Site Information.. |
store_country optional |
Country of the Store Address. |
store_postal_code optional |
Address of the Store Address. |
store_prefecture_state optional |
Prefecture/State of the Store Address. |
store_prefecture_state_kana optional |
Prefecture/State (Kana) of the Store Address. |
store_city optional |
City of the Store Address. |
store_city_kana optional |
City (Kana) of the Store Address. |
store_address optional |
Address of the Store Address. |
store_address_kana optional |
Address (Kana) of the Store Address. |
store_building_name optional |
Building Name of the Store Address. |
store_building_name_kana optional |
Building Name (Kana) of the Store Address. |
site_product_description optional |
Product Description of the Site Information. |
site_annual_sales optional |
Annual Sales Forecast Cents of the Site Information. |
site_annual_sales_currency optional |
Annual Sales Forecast Currency of the Site Information. |
site_average_transactional_value optional |
Average Transactional Value Cents of the Site Information. |
site_average_transactional_currency optional |
Average Transactional Value Currency of the Site Information. |
site_minimum_product_pricing_cents optional |
Minimum Product Pricing Cents of the Site Information. |
site_minimum_product_pricing_currency optional |
Minimum Product Pricing Currency of the Site Information. |
site_maximum_product_pricing_cents optional |
Minimum Product Pricing Cents of the Site Information. |
site_maximum_product_pricing_currency optional |
Maximum Product Pricing Currency of the Site Information. |
sctl_url optional |
Notation based on Specified Commercial Transactions Law URL. A Specified Commercial Transaction Act page is required when operating an online shop in Japan. During the examination process, we check if the page exists and confirm the contents of the page. For more details, please see What is the Specified Commercial Transactions Law? or Article of Specified Commercial Transaction Law (PDF:166KB). |
aup_accepted optional |
Have the merchant acknowledged and read the acceptable use policy and agree with the acceptable use policy? |