PATCH /api/v1/payment_methods/convenience_store
Update the Convenience Store Payment Methods

Update the Convenience Store payment method 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.

샘플

  • cURL
  • Node.js
  • Ruby
curl -X PATCH https://komoju.com/api/v1/live_application/payment_methods/convenience_store \
  -u sk_123456: \
  -d "open_time=07%3A00" 
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({
  'open_time': '07:00'
});

var patch_options = {
  host: 'komoju.com',
  port: '443',
  path: '/api/v1/live_application/payment_methods/convenience_store',
  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/payment_methods/convenience_store')
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 = {
  open_time: "07:00"
}

res = https.patch(
  uri.path,
  body.to_json,
  headers
)

puts res.body
{
  "open_time": "07:00",
  "close_time": "21:00",
  "expected_number_of_payments": "100"
}

파라미터

성명 설명
open_time
임의

The open time of your customer service operating hours

close_time
임의

The close time of your customer service operating hours

expected_number_of_payments
임의

Expected number of transactions (per month)