All URIs are relative to https://komoju.com/api/v1
| Method | HTTP request | Description |
|---|---|---|
| balance_transfer | POST /balances/{currency}/transfer | Balance: Transfer |
| create_file | POST /merchants/{merchant_id}/files | File: Create |
| create_merchant | POST /merchants | Merchant: Create |
| create_merchant_balance_transfer | POST /merchants/{merchant_id}/balances/{currency}/transfer | Balance: Transfer |
| edit_merchant_balance_settings | PATCH /merchants/{merchant_id}/balances/{currency}/settings | Balances: Edit Settings |
| list_live_application_payment_methods | GET /live_application/{merchant_id}/payment_methods | Live Application: Payment Methods |
| list_merchants | GET /merchants | Merchant: List |
| list_submerchant_payments | GET /merchants/{merchant_id}/payments | Payment: List for Merchant |
| list_submerchant_settlements | GET /merchants/{merchant_id}/settlements | Settlement: List |
| merchant_balance_transactions | GET /merchants/{merchant_id}/balances/{currency}/transactions | Balance: Transactions |
| show_file | GET /merchants/{merchant_id}/files/{id} | File: Show |
| show_live_application | GET /live_application/{merchant_id} | Live Application: Show |
| show_live_application_payment_method | GET /live_application/{merchant_id}/payment_methods/{payment_method} | Live Application: Show Payment Method |
| show_merchant | GET /merchants/{id} | Merchant: Show |
| show_merchant_balance | GET /merchants/{merchant_id}/balances/{currency} | Balance: Show |
| show_merchant_balance_settings | GET /merchants/{merchant_id}/balances/{currency}/settings | Balance: Show Settings |
| show_merchant_balance_transaction | GET /merchants/{merchant_id}/balances/{currency}/transactions/{transaction_uuid} | Balance: Transaction |
| show_submerchant_settlement | GET /merchants/{merchant_id}/settlements/{id} | Settlement: Show |
| simulate_live_application_payment_method_status | PATCH /live_application/{merchant_id}/payment_methods/{payment_method}/simulate_status | Live Application: Simulate Payment Method Status |
| simulate_live_application_status | PATCH /live_application/{merchant_id}/simulate_status | Live Application: Simulate Status |
| submerchant_settlement_csv | GET /merchants/{merchant_id}/settlements/{id}/csv | Settlement: CSV |
| submerchant_settlement_pdf | GET /merchants/{merchant_id}/settlements/{id}/pdf | Settlement: PDF |
| submerchant_settlement_xls | GET /merchants/{merchant_id}/settlements/{id}/xls | Settlement: XLS |
| update_live_application | PATCH /live_application/{merchant_id} | Live Application: Update |
| update_live_application_payment_method | PATCH /live_application/{merchant_id}/payment_methods/{payment_method} | Live Application: Update Payment Method |
| update_merchant | PATCH /merchants/{id} | Merchant: Update |
- BalanceTransferRequest — used by
balance_transfer - CreateFileRequest — used by
create_file - CreateMerchantRequest — used by
create_merchant - CreateMerchantBalanceTransferRequest — used by
create_merchant_balance_transfer - EditMerchantBalanceSettingsRequest — used by
edit_merchant_balance_settings - SimulateLiveApplicationPaymentMethodStatusRequest — used by
simulate_live_application_payment_method_status - SimulateLiveApplicationPaymentMethodStatusRequest — used by
simulate_live_application_status - LiveApplicationRequest — used by
update_live_application - UpdatePaymentMethodRequest — used by
update_live_application_payment_method - UpdateMerchantRequest — used by
update_merchant
balance_transfer(currency, balance_transfer_request)
Balance: Transfer
Transfers funds from the currently authenticated merchant's balance to another associated merchant for the given currency.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
currency = Komoju::Currency::JPY # Currency |
balance_transfer_request = Komoju::BalanceTransferRequest.new({amount: 37, to: 'to_example'}) # BalanceTransferRequest |
begin
# Balance: Transfer
result = api_instance.balance_transfer(currency, balance_transfer_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->balance_transfer: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> balance_transfer_with_http_info(currency, balance_transfer_request)
begin
# Balance: Transfer
data, status_code, headers = api_instance.balance_transfer_with_http_info(currency, balance_transfer_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <Transfer>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->balance_transfer_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| currency | Currency | ||
| balance_transfer_request | BalanceTransferRequest |
- Content-Type: application/json
- Accept: application/json
create_file(merchant_id, create_file_request)
File: Create
Creates a new file for the current merchant.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
create_file_request = Komoju::CreateFileRequest.new({paper: 'paper_example'}) # CreateFileRequest |
begin
# File: Create
result = api_instance.create_file(merchant_id, create_file_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->create_file: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_file_with_http_info(merchant_id, create_file_request)
begin
# File: Create
data, status_code, headers = api_instance.create_file_with_http_info(merchant_id, create_file_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <MerchantFile>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->create_file_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| create_file_request | CreateFileRequest |
- Content-Type: application/json
- Accept: application/json
create_merchant(create_merchant_request)
Merchant: Create
Creates a new merchant.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
create_merchant_request = Komoju::CreateMerchantRequest.new({name: 'name_example', platform_role: Komoju::MerchantRole::SELLER}) # CreateMerchantRequest |
begin
# Merchant: Create
result = api_instance.create_merchant(create_merchant_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->create_merchant: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_merchant_with_http_info(create_merchant_request)
begin
# Merchant: Create
data, status_code, headers = api_instance.create_merchant_with_http_info(create_merchant_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <SerializedSubmerchant>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->create_merchant_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| create_merchant_request | CreateMerchantRequest |
- Content-Type: application/json
- Accept: application/json
create_merchant_balance_transfer(merchant_id, currency, create_merchant_balance_transfer_request)
Balance: Transfer
Creates a balance transfer between associated merchants for a given amount and currency.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
currency = Komoju::Currency::JPY # Currency |
create_merchant_balance_transfer_request = Komoju::CreateMerchantBalanceTransferRequest.new({currency: Komoju::Currency::JPY, to: 'to_example', amount: 37}) # CreateMerchantBalanceTransferRequest |
begin
# Balance: Transfer
result = api_instance.create_merchant_balance_transfer(merchant_id, currency, create_merchant_balance_transfer_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->create_merchant_balance_transfer: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_merchant_balance_transfer_with_http_info(merchant_id, currency, create_merchant_balance_transfer_request)
begin
# Balance: Transfer
data, status_code, headers = api_instance.create_merchant_balance_transfer_with_http_info(merchant_id, currency, create_merchant_balance_transfer_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <BalanceTransferServiceRecord>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->create_merchant_balance_transfer_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| currency | Currency | ||
| create_merchant_balance_transfer_request | CreateMerchantBalanceTransferRequest |
- Content-Type: application/json
- Accept: application/json
edit_merchant_balance_settings(merchant_id, currency, edit_merchant_balance_settings_request)
Balances: Edit Settings
Given a currency, edit the payout settings of the currently authenticated merchant or one of its sub-merchants.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
currency = Komoju::Currency::JPY # Currency |
edit_merchant_balance_settings_request = Komoju::EditMerchantBalanceSettingsRequest.new({currency: Komoju::Currency::JPY, frequency: Komoju::SettlementFrequency::WEEKLY, settlement_minimum_amount: 37}) # EditMerchantBalanceSettingsRequest |
begin
# Balances: Edit Settings
result = api_instance.edit_merchant_balance_settings(merchant_id, currency, edit_merchant_balance_settings_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->edit_merchant_balance_settings: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> edit_merchant_balance_settings_with_http_info(merchant_id, currency, edit_merchant_balance_settings_request)
begin
# Balances: Edit Settings
data, status_code, headers = api_instance.edit_merchant_balance_settings_with_http_info(merchant_id, currency, edit_merchant_balance_settings_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <MerchantBalance>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->edit_merchant_balance_settings_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| currency | Currency | ||
| edit_merchant_balance_settings_request | EditMerchantBalanceSettingsRequest |
- Content-Type: application/json
- Accept: application/json
list_live_application_payment_methods(merchant_id, opts)
Live Application: Payment Methods
List submitted/unsubmitted payment methods
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
opts = {
locale: Komoju::Locale::JA # Locale |
}
begin
# Live Application: Payment Methods
result = api_instance.list_live_application_payment_methods(merchant_id, opts)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_live_application_payment_methods: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_live_application_payment_methods_with_http_info(merchant_id, opts)
begin
# Live Application: Payment Methods
data, status_code, headers = api_instance.list_live_application_payment_methods_with_http_info(merchant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <PaymentMethodsList>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_live_application_payment_methods_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| locale | Locale | [optional] |
- Content-Type: Not defined
- Accept: application/json
list_merchants(opts)
Merchant: List
Retrieves a paginated list of sub-merchants. Results can be filtered by live status, platform_role, account status, and whether payments or payouts are enabled.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
opts = {
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created after this time.
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created before this time.
per_page: 56, # Integer | How many objects per page.
page: 56, # Integer | Page number to query for.
live: true, # Boolean |
platform_role: Komoju::MerchantRole::SELLER, # MerchantRole |
status: 'status_example', # String |
payments_enabled: true, # Boolean |
payouts_enabled: true # Boolean |
}
begin
# Merchant: List
result = api_instance.list_merchants(opts)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_merchants: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_merchants_with_http_info(opts)
begin
# Merchant: List
data, status_code, headers = api_instance.list_merchants_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <SubmerchantsList>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_merchants_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| start_time | Time | Query for records created after this time. | [optional] |
| end_time | Time | Query for records created before this time. | [optional] |
| per_page | Integer | How many objects per page. | [optional] |
| page | Integer | Page number to query for. | [optional] |
| live | Boolean | [optional] | |
| platform_role | MerchantRole | [optional] | |
| status | String | [optional] | |
| payments_enabled | Boolean | [optional] | |
| payouts_enabled | Boolean | [optional] |
- Content-Type: Not defined
- Accept: application/json
list_submerchant_payments(merchant_id, opts)
Payment: List for Merchant
Retrieves a paginated list of payments. Pagination can be configured with page and per_page parameters. Payments can be filtered by currency, external_order_num, and status. A time range can be specified with start_time, and end_time.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
opts = {
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created after this time.
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created before this time.
per_page: 56, # Integer | How many objects per page.
page: 56, # Integer | Page number to query for.
currency: Komoju::Currency::JPY, # Currency |
external_order_num: 'external_order_num_example', # String |
status: Komoju::PaymentStatus::PENDING # PaymentStatus |
}
begin
# Payment: List for Merchant
result = api_instance.list_submerchant_payments(merchant_id, opts)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_submerchant_payments: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_submerchant_payments_with_http_info(merchant_id, opts)
begin
# Payment: List for Merchant
data, status_code, headers = api_instance.list_submerchant_payments_with_http_info(merchant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <PlatformMerchantPaymentList>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_submerchant_payments_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| start_time | Time | Query for records created after this time. | [optional] |
| end_time | Time | Query for records created before this time. | [optional] |
| per_page | Integer | How many objects per page. | [optional] |
| page | Integer | Page number to query for. | [optional] |
| currency | Currency | [optional] | |
| external_order_num | String | [optional] | |
| status | PaymentStatus | [optional] |
- Content-Type: Not defined
- Accept: application/json
list_submerchant_settlements(merchant_id)
Settlement: List
Lists out past settlements from most-recent to least-recent.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
begin
# Settlement: List
result = api_instance.list_submerchant_settlements(merchant_id)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_submerchant_settlements: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_submerchant_settlements_with_http_info(merchant_id)
begin
# Settlement: List
data, status_code, headers = api_instance.list_submerchant_settlements_with_http_info(merchant_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SettlementList>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->list_submerchant_settlements_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String |
- Content-Type: Not defined
- Accept: application/json
merchant_balance_transactions(merchant_id, currency, opts)
Balance: Transactions
Given a currency, view the ledger transactions of the currently authenticated merchant or one of its sub-merchants. Will split ledger transactions into line items when appropriate.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
currency = Komoju::Currency::JPY # Currency |
opts = {
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created after this time.
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created before this time.
per_page: 56, # Integer | How many objects per page.
page: 56, # Integer | Page number to query for.
type: 'type_example' # String |
}
begin
# Balance: Transactions
result = api_instance.merchant_balance_transactions(merchant_id, currency, opts)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->merchant_balance_transactions: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> merchant_balance_transactions_with_http_info(merchant_id, currency, opts)
begin
# Balance: Transactions
data, status_code, headers = api_instance.merchant_balance_transactions_with_http_info(merchant_id, currency, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <BalanceTransactionList>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->merchant_balance_transactions_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| currency | Currency | ||
| start_time | Time | Query for records created after this time. | [optional] |
| end_time | Time | Query for records created before this time. | [optional] |
| per_page | Integer | How many objects per page. | [optional] |
| page | Integer | Page number to query for. | [optional] |
| type | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
show_file(merchant_id, id)
File: Show
Retrieves an existing file of the current merchant.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
id = 'id_example' # String |
begin
# File: Show
result = api_instance.show_file(merchant_id, id)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_file: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_file_with_http_info(merchant_id, id)
begin
# File: Show
data, status_code, headers = api_instance.show_file_with_http_info(merchant_id, id)
p status_code # => 2xx
p headers # => { ... }
p data # => <MerchantFile>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_file_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| id | String |
- Content-Type: Not defined
- Accept: application/json
show_live_application(merchant_id, opts)
Live Application: Show
Shows the live application status of the applicant merchant
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
opts = {
locale: Komoju::Locale::JA # Locale |
}
begin
# Live Application: Show
result = api_instance.show_live_application(merchant_id, opts)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_live_application: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_live_application_with_http_info(merchant_id, opts)
begin
# Live Application: Show
data, status_code, headers = api_instance.show_live_application_with_http_info(merchant_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <LiveApplicationWithSubmittedFields>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_live_application_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| locale | Locale | [optional] |
LiveApplicationWithSubmittedFields
- Content-Type: Not defined
- Accept: application/json
show_live_application_payment_method(merchant_id, payment_method, opts)
Live Application: Show Payment Method
Shows the payment method status of the applicant merchant
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
payment_method = 'payment_method_example' # String |
opts = {
locale: Komoju::Locale::JA # Locale |
}
begin
# Live Application: Show Payment Method
result = api_instance.show_live_application_payment_method(merchant_id, payment_method, opts)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_live_application_payment_method: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_live_application_payment_method_with_http_info(merchant_id, payment_method, opts)
begin
# Live Application: Show Payment Method
data, status_code, headers = api_instance.show_live_application_payment_method_with_http_info(merchant_id, payment_method, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <LiveApplicationWithSubmittedFields>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_live_application_payment_method_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| payment_method | String | ||
| locale | Locale | [optional] |
LiveApplicationWithSubmittedFields
- Content-Type: Not defined
- Accept: application/json
show_merchant(id)
Merchant: Show
Retrieves the details of a sub-merchant by its id, including account settings, payout configuration, and live status.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
id = 'id_example' # String |
begin
# Merchant: Show
result = api_instance.show_merchant(id)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_merchant_with_http_info(id)
begin
# Merchant: Show
data, status_code, headers = api_instance.show_merchant_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SerializedSubmerchant>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
show_merchant_balance(merchant_id, currency)
Balance: Show
Given a currency, view the unsettled balance of the currently authenticated merchant or one of its sub-merchants.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
currency = Komoju::Currency::JPY # Currency |
begin
# Balance: Show
result = api_instance.show_merchant_balance(merchant_id, currency)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_balance: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_merchant_balance_with_http_info(merchant_id, currency)
begin
# Balance: Show
data, status_code, headers = api_instance.show_merchant_balance_with_http_info(merchant_id, currency)
p status_code # => 2xx
p headers # => { ... }
p data # => <BalanceShow>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_balance_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| currency | Currency |
- Content-Type: Not defined
- Accept: application/json
show_merchant_balance_settings(merchant_id, currency)
Balance: Show Settings
Given a currency, view the payout settings of the currently authenticated merchant or one of its sub-merchants.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
currency = Komoju::Currency::JPY # Currency |
begin
# Balance: Show Settings
result = api_instance.show_merchant_balance_settings(merchant_id, currency)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_balance_settings: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_merchant_balance_settings_with_http_info(merchant_id, currency)
begin
# Balance: Show Settings
data, status_code, headers = api_instance.show_merchant_balance_settings_with_http_info(merchant_id, currency)
p status_code # => 2xx
p headers # => { ... }
p data # => <BalanceSettings>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_balance_settings_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| currency | Currency |
- Content-Type: Not defined
- Accept: application/json
<Array> show_merchant_balance_transaction(merchant_id, currency, transaction_uuid)
Balance: Transaction
Given a currency and a transaction UUID, view the corresponding ledger transaction of the currently authenticated merchant or one of its sub-merchants. Will return one entry per line item of the transaction.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
currency = Komoju::Currency::JPY # Currency |
transaction_uuid = 'transaction_uuid_example' # String |
begin
# Balance: Transaction
result = api_instance.show_merchant_balance_transaction(merchant_id, currency, transaction_uuid)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_balance_transaction: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> show_merchant_balance_transaction_with_http_info(merchant_id, currency, transaction_uuid)
begin
# Balance: Transaction
data, status_code, headers = api_instance.show_merchant_balance_transaction_with_http_info(merchant_id, currency, transaction_uuid)
p status_code # => 2xx
p headers # => { ... }
p data # => <Array<Transaction>>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_merchant_balance_transaction_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| currency | Currency | ||
| transaction_uuid | String |
- Content-Type: Not defined
- Accept: application/json
show_submerchant_settlement(merchant_id, id)
Settlement: Show
View a settlement given an id.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
id = 'id_example' # String |
begin
# Settlement: Show
result = api_instance.show_submerchant_settlement(merchant_id, id)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_submerchant_settlement: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> show_submerchant_settlement_with_http_info(merchant_id, id)
begin
# Settlement: Show
data, status_code, headers = api_instance.show_submerchant_settlement_with_http_info(merchant_id, id)
p status_code # => 2xx
p headers # => { ... }
p data # => <SettlementShow>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->show_submerchant_settlement_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| id | String |
- Content-Type: Not defined
- Accept: application/json
simulate_live_application_payment_method_status(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
Live Application: Simulate Payment Method Status
Simulate status change on payment method for test merchants
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
payment_method = 'payment_method_example' # String |
simulate_live_application_payment_method_status_request = Komoju::SimulateLiveApplicationPaymentMethodStatusRequest.new # SimulateLiveApplicationPaymentMethodStatusRequest |
begin
# Live Application: Simulate Payment Method Status
result = api_instance.simulate_live_application_payment_method_status(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->simulate_live_application_payment_method_status: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> simulate_live_application_payment_method_status_with_http_info(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
begin
# Live Application: Simulate Payment Method Status
data, status_code, headers = api_instance.simulate_live_application_payment_method_status_with_http_info(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <PaymentMethodStatus>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->simulate_live_application_payment_method_status_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| payment_method | String | ||
| simulate_live_application_payment_method_status_request | SimulateLiveApplicationPaymentMethodStatusRequest |
- Content-Type: application/json
- Accept: application/json
simulate_live_application_status(merchant_id, simulate_live_application_payment_method_status_request)
Live Application: Simulate Status
Simulate status change on applications for test merchants. In order for status to be changed to "accepted," at least one payment method must be approved.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
simulate_live_application_payment_method_status_request = Komoju::SimulateLiveApplicationPaymentMethodStatusRequest.new # SimulateLiveApplicationPaymentMethodStatusRequest |
begin
# Live Application: Simulate Status
result = api_instance.simulate_live_application_status(merchant_id, simulate_live_application_payment_method_status_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->simulate_live_application_status: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> simulate_live_application_status_with_http_info(merchant_id, simulate_live_application_payment_method_status_request)
begin
# Live Application: Simulate Status
data, status_code, headers = api_instance.simulate_live_application_status_with_http_info(merchant_id, simulate_live_application_payment_method_status_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <MerchantSubmissionStatus>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->simulate_live_application_status_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| simulate_live_application_payment_method_status_request | SimulateLiveApplicationPaymentMethodStatusRequest |
- Content-Type: application/json
- Accept: application/json
submerchant_settlement_csv(merchant_id, id)
Settlement: CSV
View a settlement in CSV format given an id.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
id = 'id_example' # String |
begin
# Settlement: CSV
api_instance.submerchant_settlement_csv(merchant_id, id)
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->submerchant_settlement_csv: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> submerchant_settlement_csv_with_http_info(merchant_id, id)
begin
# Settlement: CSV
data, status_code, headers = api_instance.submerchant_settlement_csv_with_http_info(merchant_id, id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->submerchant_settlement_csv_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| id | String |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
submerchant_settlement_pdf(merchant_id, id)
Settlement: PDF
View a settlement in PDF format given an id.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
id = 'id_example' # String |
begin
# Settlement: PDF
api_instance.submerchant_settlement_pdf(merchant_id, id)
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->submerchant_settlement_pdf: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> submerchant_settlement_pdf_with_http_info(merchant_id, id)
begin
# Settlement: PDF
data, status_code, headers = api_instance.submerchant_settlement_pdf_with_http_info(merchant_id, id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->submerchant_settlement_pdf_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| id | String |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
submerchant_settlement_xls(merchant_id, id)
Settlement: XLS
View a settlement in XLS format given an id.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
id = 'id_example' # String |
begin
# Settlement: XLS
api_instance.submerchant_settlement_xls(merchant_id, id)
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->submerchant_settlement_xls: #{e}"
endThis returns an Array which contains the response data (nil in this case), status code and headers.
<Array(nil, Integer, Hash)> submerchant_settlement_xls_with_http_info(merchant_id, id)
begin
# Settlement: XLS
data, status_code, headers = api_instance.submerchant_settlement_xls_with_http_info(merchant_id, id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->submerchant_settlement_xls_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| id | String |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
update_live_application(merchant_id, live_application_request)
Live Application: Update
Updates the live application for the applicant merchant
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
live_application_request = Komoju::LiveApplicationRequest.new # LiveApplicationRequest |
begin
# Live Application: Update
result = api_instance.update_live_application(merchant_id, live_application_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->update_live_application: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_live_application_with_http_info(merchant_id, live_application_request)
begin
# Live Application: Update
data, status_code, headers = api_instance.update_live_application_with_http_info(merchant_id, live_application_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <LiveApplication>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->update_live_application_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| live_application_request | LiveApplicationRequest |
- Content-Type: application/json
- Accept: application/json
update_live_application_payment_method(merchant_id, payment_method, update_payment_method_request)
Live Application: Update Payment Method
Update the payment method application of the applicant merchant
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
merchant_id = 'merchant_id_example' # String |
payment_method = 'payment_method_example' # String |
update_payment_method_request = Komoju::UpdatePaymentMethodRequest.new # UpdatePaymentMethodRequest |
begin
# Live Application: Update Payment Method
result = api_instance.update_live_application_payment_method(merchant_id, payment_method, update_payment_method_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->update_live_application_payment_method: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_live_application_payment_method_with_http_info(merchant_id, payment_method, update_payment_method_request)
begin
# Live Application: Update Payment Method
data, status_code, headers = api_instance.update_live_application_payment_method_with_http_info(merchant_id, payment_method, update_payment_method_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <LiveApplication>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->update_live_application_payment_method_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_id | String | ||
| payment_method | String | ||
| update_payment_method_request | UpdatePaymentMethodRequest |
- Content-Type: application/json
- Accept: application/json
update_merchant(id, update_merchant_request)
Merchant: Update
Updates a sub-merchant's settings, including payment and payout toggles, email notification preferences, and payment method expiry settings.
require 'time'
require 'komoju-sdk'
# setup authorization
Komoju.configure do |config|
# Configure your KOMOJU API key
config.api_key = 'YOUR_API_KEY'
end
api_instance = Komoju::PlatformModelApi.new
id = 'id_example' # String |
update_merchant_request = Komoju::UpdateMerchantRequest.new # UpdateMerchantRequest |
begin
# Merchant: Update
result = api_instance.update_merchant(id, update_merchant_request)
p result
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->update_merchant: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_merchant_with_http_info(id, update_merchant_request)
begin
# Merchant: Update
data, status_code, headers = api_instance.update_merchant_with_http_info(id, update_merchant_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <SerializedSubmerchant>
rescue Komoju::ApiError => e
puts "Error when calling PlatformModelApi->update_merchant_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | ||
| update_merchant_request | UpdateMerchantRequest |
- Content-Type: application/json
- Accept: application/json