Retrieve account
Returns information about the account. Both test and live API keys return the same account details. Use this endpoint to verify account configuration and capabilities.
API Credentials
Request Parametersโ
No parameters required for this endpoint.
Responsesโ
200
Successful requestReturns the account object with all configuration details.
Account object contains:
id- Account identifieremail- Account email addresscountry- Two-letter ISO 3166 country codecurrency- Three-letter ISO 4217 currency codesupported_currencies- Array of supported currencies for chargeswebhook_uri- URI for account event notificationsapi_version- Default API version for the accountchain_enabled- Boolean indicating if marketplace features are enabledchain_return_uri- Return URI for marketplace transactionszero_interest_installments- Boolean for merchant-funded installmentsmetadata_export_keys- Metadata keys included in exportscreated_at- Account creation timestamp (ISO 8601)
401
UnauthorizedAuthentication failed. Invalid or missing API key.
Common causes:
- Missing Authorization header
- Invalid secret key
- Using public key instead of secret key
- Incorrect HTTP Basic Auth format
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/account \
-u skey_test_5xuy4w91xqz7d1w9u0t:
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
account = Omise::Account.retrieve
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
account = omise.Account.retrieve()
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const account = await omise.account.retrieve();
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$account = OmiseAccount::retrieve();
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
Account account = client.account().get();
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var account = await client.Account.Get();
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
account, _ := client.Account().Get()