Skip to main content

Test Connection

POST 

/api/magento2/test-connection

Validates the supplied Magento 2 credentials by calling the REST API. Returns the store views and MSI (Multi-Source Inventory) sources the merchant has access to — used by the UI to preview before persisting.

Nothing is persisted by this endpoint.

Body parameters:

  • base_url (required, URL): The storefront base URL — e.g. https://shop.example.com. Trailing slash is trimmed server-side.
  • access_token (required, string, min 8 chars, max 255): The integration access token from Magento Admin → System → Integrations.

Error responses:

  • 422 — validation failure OR Magento rejected the credentials (success: false with a human-readable message).
  • 401 — caller is not authenticated to SKU.io.

Request

Responses

OK

Response Headers
    Content-Type