Skip to main content
Every Connect vendor namespace (/connect/{vendor}/*) implements these three meta-routes before vendor-specific data routes (orders, catalog, results). Auth: Customer API key with integrations scope. Partner master keys (accounts scope) are rejected with 403. Platform liveness (not vendor-specific): GET /connect/healthno auth. Every vendor namespace implements these three meta-routes: Do not conflate platform health (GET /connect/health) with vendor health.

POST /connect/{vendor}/integrations

Save vendor credentials for the authenticated customer’s org + team.
object
required
Vendor-specific configuration. Must include a vendor discriminator where applicable (e.g. StubVendor).
Team scope comes from the API credential, not the request body.

Success — 201 Created

After save, Connect runs the vendor health probe with the request config. healthy reflects the probe at save time. Probe failures on POST do not return 502 — use GET /health for strict HTTP status semantics.

Errors

GET /connect/{vendor}/health

Live connectivity check using stored credentials.

Healthy — 200 OK

lastCheckedAt is the timestamp of this probe (not cached).

Unhealthy vendor state

When the vendor is reachable but reports unhealthy (timeout, rejected credentials, etc.), responses may use 502 or 504 with data.healthy: false in the success envelope, or a standardized error envelope for credential rejection: See Error envelope for VENDOR_* codes.

Errors

DELETE /connect/{vendor}/integrations

Disconnect — removes the integration row.

Success — 200 OK

archived: true is the partner-facing disconnect signal.

Errors

Stub vendor (non-production)

The stub vendor is available only when NODE_ENV is development, test, or staging. Use it for smoke tests — see Getting started.