Capability API
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 | The string |
location | string | API path to retrieve the current |
banks | array | Banks supported for transfer recipients. |
country | string | Country in which account is registered as two-letter ISO 3166 code. |
payment_methods | array | Available payment methods and allowed values. |
zero_interest_installments | boolean | Whether merchant absorbs interest for installment payments. |
Example
-
JSON Response
{ "object": "capability", "location": "/capability", "banks": [ "test", "bbl", "kbank", "rbs", "ktb", "jpm", "mufg", "tmb", "scb", "citi", "smbc", "sc", "cimb", "uob", "bay", "mega", "boa", "cacib", "gsb", "hsbc", "db", "ghb", "baac", "mb", "bnp", "tbank", "ibank", "tisco", "kk", "icbc", "tcrb", "lhb" ], "payment_methods": [ { "object": "payment_method", "name": "card", "currencies": [ "THB", "JPY", "USD", "EUR", "GBP", "SGD", "AUD", "CHF", "CNY", "DKK", "HKD" ], "card_brands": [ "JCB", "Visa", "MasterCard" ], "installment_terms": null }, { "object": "payment_method", "name": "internet_banking_bay", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "internet_banking_ktb", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "internet_banking_scb", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "internet_banking_bbl", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "alipay", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "installment_bay", "currencies": [ "THB" ], "card_brands": null, "installment_terms": [ 3, 4, 6, 9, 10 ] }, { "object": "payment_method", "name": "installment_kbank", "currencies": [ "THB" ], "card_brands": null, "installment_terms": [ 3, 4, 6, 10 ] }, { "object": "payment_method", "name": "installment_ktc", "currencies": [ "THB" ], "card_brands": null, "installment_terms": [ 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "object": "payment_method", "name": "installment_bbl", "currencies": [ "THB" ], "card_brands": null, "installment_terms": [ 4, 6, 8, 9, 10 ] }, { "object": "payment_method", "name": "installment_first_choice", "currencies": [ "THB" ], "card_brands": null, "installment_terms": [ 3, 4, 6, 9, 10, 12, 18, 24, 36 ] }, { "object": "payment_method", "name": "bill_payment_tesco_lotus", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "barcode_alipay", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "truemoney", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "promptpay", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null }, { "object": "payment_method", "name": "points_citi", "currencies": [ "THB" ], "card_brands": null, "installment_terms": null } ], "country": "TH", "zero_interest_installments": true }
Retrieve account capabilities
- GET https://api.omise.co/capabilityReturns information about the account capabilities
. Note: this verb accepts public key authentication only.
Example
-
Retrieve the account capability
- curl
- java
curl https://api.omise.co/capability \ -u $OMISE_PUBLIC_KEY:
Request<Capability> request = new Capability.GetRequestBuilder().build(); Capability capability = client().sendRequest(request); System.out.printf("isZeroInterestInstallments: %b", capability.isZeroInterestInstallments());