Skip to content

iSeller — test_connection

Part of the iSeller adapter guide — see it for authentication, endpoints, pagination, rate limits and shared quirks.

Contract: { success, message }

  1. Mint a token (client_credentials — see Authentication).
  2. POST {baseUrl}/api/v2/GetStoreInfo (empty {} body; GET also works — no params) with Authorization: Bearer {token}.
  3. HTTP 200 + status: true → success; read the nested wrapper store_info.store_name (+ store_info.active_outlets count). 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 is store_info (snake_case) — unlike GetOutlets' PascalCase Outlets — so read tolerantly. active_outlets[] items use outlet_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.