Skip to main content
Version: 2019-05-29 (Current)

Retrieve Chain Account

Retrieve the account information for a chain connection. Returns details about the sub-merchant account associated with this chain, including business information and account status.

Request Parametersโ€‹

Required - 1 fieldPath Parameters
โ–ผ
`id`STRING(required)
Chain identifier matching pattern /acch(_test)?_[0-9a-z]+/. This is provided in the URL path.
Example:"acch_test_5xuy4w91xqz7d1w9u0t"
Constraints:Must be a valid chain ID

Responsesโ€‹

200

Successful retrieval

Chain account retrieved successfully. Returns the complete account object with business and verification details.

Response includes:
  • id - Account identifier
  • email - Account email address
  • team - Team name associated with the account
  • currency - Default currency for the account
  • supported_currencies - List of supported currencies
  • created_at - Account creation timestamp

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid chain ID format
  • Malformed request

401

Unauthorized

Authentication 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

404

Not found

Chain or account not found with the provided ID.

Common causes:
  • Invalid chain ID format
  • Chain does not exist
  • Chain belongs to different account
  • Using test key with live chain ID (or vice versa)
  • Chain has been revoked

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/chains/acch_test_5xuy4w91xqz7d1w9u0t/account \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
not_foundChain or account not foundCheck chain ID is correct and exists
invalid_chain_idMalformed chain IDEnsure ID matches format acch(test)?[0-9a-z]+
chain_revokedChain access has been revokedCannot access account for revoked chains

Account Object Fieldsโ€‹

FieldTypeDescription
objectstringAlways returns "account"
idstringUnique account identifier
emailstringAccount email address
teamstringTeam name associated with the account
currencystringDefault currency for the account (e.g., "thb")
supported_currenciesarrayList of currencies supported by this account
livemodebooleanProduction vs test environment indicator
created_atstringAccount creation timestamp (ISO 8601)

๐Ÿ”‘API Credentials

Try it outโ€‹

Your IP: ...Loading...