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

Retrieve Chain Transfer

Retrieve a specific chain by its identifier. Returns the chain object which includes the associated charge and transfer details.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`chain_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 retrieved successfully. Returns the complete chain object with charge and transfer details.

Response includes:
  • id - Chain identifier
  • key - Authentication key for the sub-merchant
  • email - Sub-merchant account email
  • revoked - Whether chain access has been revoked
  • created_at - Creation timestamp

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 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)

Code samplesโ€‹

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

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
not_foundChain not foundCheck chain ID is correct and exists
invalid_chain_idMalformed chain IDEnsure ID matches format acch(test)?[0-9a-z]+

Chain Object Fieldsโ€‹

FieldTypeDescription
objectstringAlways returns "chain"
idstringUnique chain identifier
keystringAuthentication key for performing actions on behalf of the sub-merchant
emailstringSub-merchant account email
livemodebooleanProduction vs test environment indicator
revokedbooleanIndicates if chain access has been revoked
created_atstringCreation timestamp (ISO 8601)

Try it outโ€‹

Required - 1 fields
โ–ผ