Resources Description
GET /api/v1/events

Lists out past webhook events from most-recent to least-recent.

A time range can be specified with start_time and end_time.

GET /api/v1/events/:id

View an event given an id. Event ids can be saved from a webhook or found by querying all events.


Resources Description
GET /api/v1/payments

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.

GET /api/v1/payments/:id

Retrieves a single payment object by its id.

POST /api/v1/payments

Creates a payment for a given amount and currency.

*Must specify exactly one of payment_details or customer.

PATCH /api/v1/payments/:id

Updates a payment. Only a payment's description and metadata can be changed.

POST /api/v1/payments/:id/capture

Captures a payment. Only works on payments with a payment_type of "credit_card".

POST /api/v1/payments/:id/refund

Refunds an arbitrary amount of money from an existing payment. If no amount is specified, the whole payment is refunded.

POST /api/v1/payments/:id/refund_request

Refund Request requests can be used for payment methods that do not support refunds e.g. cash-based payment methods like Convenience Store, ATM, etc.

To support non-refundable payment methods, a bank account must be specified so that we know where to send the funds. Since it is a manual process, a refund request will be carried out at a later date, and there's a possibility of it being rejected.

For more information, see:
Japanese: 返金処理について(銀行振込/コンビニ/Pay Easy)
English: How to Refund (Bank transfer/Konbini/Pay-easy)
Korean: 환불처리(은행입금/ 편의점/ Pay Easy)

POST /api/v1/payments/:id/cancel

Cancels a payment. The given payment must have a state of pending or authorized in order to be canceled.


Resources Description
POST /api/v1/subscriptions

Create a new subscription. A subscription represents a recurring payment. Recurring payments may be on a weekly, monthly, or yearly basis, specified by the period parameter.

In order to create a subscription, a customer ID must be supplied. The customer object contains saved payment info, which is regularly charged by the subscription.

A subscription can't be modified once it's created. To change a subscription, you must delete it, and create a new one.

GET /api/v1/subscriptions

List existing subscriptions. Paginates with the usual page, per_page, start_time, and end_time parameters.

GET /api/v1/subscriptions/:id

Show an existing subscription, including its customer and scrubbed payment details.

DELETE /api/v1/subscriptions/:id

Delete a subscription. Once deleted, the subscription's regular payments will stop.


Resources Description
GET /api/v1/customers

Retrieves a paginated list of all previously-registered customers. Does not reveal saved payment details.

A time range can be specified with start_time and end_time.

GET /api/v1/customers/:id

Retrieves customer personal information. This endpoint does not reveal the saved payment details.

POST /api/v1/customers

Creates a new customer with the specified payment_details. Customer payment details are stored in a secure, PCI DSS-compliant way.

Once you have a customer, you may specify the customer's id instead of payment_details when creating a payment.

PATCH /api/v1/customers/:id

Updates the customer with the given id. A new set of payment_details may be specified.

DELETE /api/v1/customers/:id

Deletes the customer with the given id. This completely erases the stored payment details from our database.


Resources Description
POST /api/v1/tokens

Creates a token with the given payment_details.

It is recommended to have a client application make this request directly so that sensitive payment information (e.g. credit card number) doesn't hit your server. Receiving credit card numbers requires your business to be PCI-DSS compliant. Once you turn your customer's details into a token, the token string can safely be sent to your server and used as payment_details to a future KOMOJU API request.

A currency may be optionally specified. When currency is provided, KOMOJU will ensure that the payment made using the new token is in the same currency.

Tokens can't be indexed or deleted via API. Tokens are instead deleted on use, and expire when unused.