Skip to main content
GET /api/v2/storefront/inventory-sources/{sourceId}/esa Returns the connection state for an ad-server-backed (MANAGED_SALES_AGENT) source: enabled/disabled state (deactivatedAt), upstream endpoints, the non-secret ad-server config view, the most recent failure (lastErrorCode/lastError), and cached inventory-sync state.

Request

Parameters

Response

The connection is enabled unless deactivatedAt is set (null means enabled); whether it is live and sellable is derived from the status endpoint (operational.isLive), not from a field on this response. adServer is the non-secret config view and never contains credentials. lastErrorCode classifies the most recent failure (ADAPTER_NETWORK_NOT_FOUND, ADAPTER_PERMISSION_DENIED, ADAPTER_INVALID_CREDENTIALS, ADAPTER_INVALID_CONFIG, ADAPTER_CONNECTION_FAILED, or INTERNAL_ERROR), with the human-readable detail in lastError. inventorySync is null until the first sync signal lands.

Errors

  • 401 UNAUTHORIZED — missing or invalid API key.
  • 404 NOT_FOUND — no ad-server-backed source with this sourceId.
See Errors for the full error contract.

Inventory source tasks

All operations

Get status

Operational snapshot

Replace ad-server config

Set the ad-server config

Test connection

Probe upstream reachability