Retrieve a linked account
Retrieve details of a specific linked account including verification status, capabilities, and account information.
Request Parametersโ
Required - 1 fieldRequired Parameters
`id`STRING(required)
Linked Account ID (e.g., lacct_test_...). Provided in the URL path.
Responsesโ
200
Successful transactionLinked account retrieved successfully. Returns complete linked account object with all attributes.
Returned linked account attributes:
id- Linked account identifierobject- Always "linked_account"livemode- Whether this is a live or test accountstatus- Account status (pending, verified, suspended, rejected)type- Account type (individual, business)name- Account holder or business nameemail- Contact email addresscapabilities- Enabled capabilities (card_payments, transfers, refunds)metadata- Custom metadatacreated_at- Account creation timestamp
400
Bad requestRequest validation failed. Check the error message for details.
Common causes:
- Malformed linked account ID format
- Invalid request parameters
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
404
Not foundLinked account not found.
Common causes:
- Invalid linked account ID
- Linked account does not belong to your platform
- Linked account has been disconnected
- Mixing test and live mode IDs
5xx
Server errorServer-side error occurred. These are rare but should be handled gracefully.
How to handle:
- Retry the request with exponential backoff
- Check status.omise.co for service incidents
- See Error Handling for detailed guidance
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/linked_accounts/lacct_test_5xuy4w91xqz7d1w9u0t \
-u skey_test_5xuy4w91xqz7d1w9u0t:
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
linked_account = Omise::LinkedAccount.retrieve('lacct_test_5xuy4w91xqz7d1w9u0t')
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
linked_account = omise.LinkedAccount.retrieve('lacct_test_5xuy4w91xqz7d1w9u0t')
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const linkedAccount = await omise.linkedAccounts.retrieve('lacct_test_5xuy4w91xqz7d1w9u0t');
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$linked_account = OmiseLinkedAccount::retrieve('lacct_test_5xuy4w91xqz7d1w9u0t');
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
LinkedAccount linkedAccount = client.linkedAccounts()
.get("lacct_test_5xuy4w91xqz7d1w9u0t");
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var linkedAccount = await client.LinkedAccounts.Get("lacct_test_5xuy4w91xqz7d1w9u0t");
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
linkedAccount, _ := client.LinkedAccounts().Get("lacct_test_5xuy4w91xqz7d1w9u0t")
API Credentials
Try it outโ
Required - 1 fields
Your IP:
...Loading...