Capability API
The Capability API allows you to retrieve information about a given account's capabilities. This includes banks that can be used when adding bank accounts for transfer recipients as well as available payment methods.
Attributes
Name | Type | Description |
---|---|---|
object | string | 固定値 |
location | string | 現在の |
banks | array | 追加振込先口座に指定できる銀行。 supported banks(サポートされている銀行)を参照してください。 |
limits | object | 課金金額の上限と下限、および加盟店が処理できる分割払い金額を定義します。 |
payment_backends | array | 利用可能な決済方法と許容値 |
tokenization_methods | array | カードのトークン化方式をリストにしています。方式は以下の通りです。
|
zero_interest_installments | boolean | 分割払い決済に対する利子を、加盟店が負担するかどうか。 |
Example
-
JSON Response
{ "object": "capability", "location": "/capability", "banks": [ "test", "bbl", "kbank", "rbs", "ktb", "jpm", "mufg", "ttb", "scb", "citi", "smbc", "sc", "cimb", "uob", "bay", "mega", "boa", "cacib", "gsb", "hsbc", "db", "ghb", "baac", "mb", "bnp", "ibank", "tisco", "kk", "icbc", "tcrb", "lhb" ], "limits": { "charge_amount": { "max": 15000000, "min": 2000 }, "transfer_amount": { "max": 5000000000, "min": 3000 } }, "payment_backends": [ { "credit_card": { "type": "card", "currencies": [ "thb", "jpy", "usd", "eur", "gbp", "sgd", "aud", "chf", "cny", "dkk", "hkd" ], "brands": [ "JCB", "Visa", "MasterCard" ] } }, { "internet_banking_bay": { "type": "internet_banking", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "internet_banking_bbl": { "type": "internet_banking", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "alipay": { "type": "alipay", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_bay": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 6, 9, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_kbank": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 6, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_ktc": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_bbl": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 4, 6, 8, 9, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_first_choice": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 6, 9, 10, 12, 18, 24, 36 ], "amount": { "min": 2000, "max": 15000000 } } }, { "bill_payment_tesco_lotus": { "type": "offline", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "barcode_alipay": { "type": "offline", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "grabpay": { "type": "grabpay", "currencies": [ "thb", "myr", "sgd" ], "amount": { "min": 2000, "max": 15000000 } } }, { "shopeepay_jumpapp": { "type": "shopeepay_jumpapp", "currencies": [ "sgd", "myr", "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "shopeepay": { "type": "shopeepay", "currencies": [ "sgd", "myr", "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_scb": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 6, 9, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_ttb": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 6, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "installment_uob": { "type": "installment", "currencies": [ "thb" ], "allowed_installment_terms": [ 3, 4, 6, 10 ], "amount": { "min": 2000, "max": 15000000 } } }, { "mobile_banking_kbank": { "type": "mobile_banking_kbank", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "mobile_banking_bay": { "type": "mobile_banking_bay", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "mobile_banking_scb": { "type": "mobile_banking_scb", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "mobile_banking_bbl": { "type": "mobile_banking_bbl", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "mobile_banking_ktb": { "type": "mobile_banking_ktb", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "points_citi": { "type": "points_citi", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "promptpay": { "type": "promptpay", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "rabbit_linepay": { "type": "rabbit_linepay", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } }, { "truemoney": { "type": "truemoney", "currencies": [ "thb" ], "amount": { "min": 2000, "max": 15000000 } } } ], "tokenization_methods": [ "googlepay" ], "zero_interest_installments": true }
Retrieve account capabilities
- GET https://api.omise.co/capabilityReturns the capability object of the current account.
Example
-
Retrieve account capabilities
- curl
- node.js
- go
curl https://api.omise.co/capability \ -u $OMISE_PUBLIC_KEY:
const omise = require('omise')({ publicKey: 'pkey_test_no1t4tnemucod0e51mo', }); const capability = await omise.capability.retrieve(); console.log(capability);
client, _ := omise.NewClient( "pkey_test_no1t4tnemucod0e51mo", "skey_test_no1t4tnemucod0e51mo", ) result := &omise.Capability{} err := client.Do(result, &operations.RetrieveCapability{}) if err != nil { log.Fatalln(err) } log.Println(result)