iSeller — test_connection¶
Part of the iSeller adapter guide — see it for authentication, endpoints, pagination, rate limits and shared quirks.
Contract: { success, message }
- Mint a token (client_credentials — see Authentication).
POST {baseUrl}/api/v2/GetStoreInfo(empty{}body;GETalso works — no params) withAuthorization: Bearer {token}.- HTTP 200 +
status: true→ success; read the nested wrapperstore_info.store_name(+store_info.active_outletscount). 401/403,status: false, or non-200 →{ success: false, message }.
Verified (Flash Coffee, curl):
{ store_info: { store_name, active_outlets[], active_payments[], phone, address, email, currency }, status, error_message }. Here the wrapper isstore_info(snake_case) — unlikeGetOutlets' PascalCaseOutlets— so read tolerantly.active_outlets[]items useoutlet_id/outlet_code/outlet_name.
Implementation: scripts/adapters/iseller/test_connection.js. Mints a
Client Credentials token (form-urlencoded string body), then verifies it via
POST /api/v2/GetStoreInfo — guards the status: false body-level error and
reports the connected store name + active-outlet count from the store_info
wrapper.