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

List All Chains

Returns a paginated collection of sub-merchant chain accounts. Chains represent sub-merchants who have authorized another account to create charges and perform actions on their behalf.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Additional - 5 fieldsAdditional Parameters

Responsesโ€‹

200

Successful retrieval

Chains list retrieved successfully. Returns a paginated list with metadata.

Response structure:
  • object - Always returns "list"
  • data - Array of chain objects
  • limit - Records per page
  • offset - Number of records skipped
  • total - Total number of chains matching filters

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

Code samplesโ€‹

curl https://api.omise.co/chains \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-G \
-d "limit=20" \
-d "offset=0"

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
bad_requestMissing or invalid parametersCheck parameter values and formats
authentication_failureInvalid API keyVerify your secret key is correct
invalid_date_formatDate format validation failedUse ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)

Chain Object Fieldsโ€‹

FieldTypeDescription
objectstringAlways returns "chain"
idstringChain identifier matching /acch(_test)?_[0-9a-z]+/
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โ€‹

Additional - 5 fields