GET /api/v2/storefront/inventory-sources/{sourceId}/esa
Returns the connection state for an ad-server-backed (MANAGED_SALES_AGENT) source: provisioning status, upstream endpoints, the non-secret ad-server config view, and cached inventory-sync state.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
sourceId | string (path) | Yes | Storefront-scoped inventory source ID |
Response
provisioningStatus is pending, provisioning, active, failed, or deactivated. 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). 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 thissourceId.
Related
Inventory source tasks
All operations
Get status
Operational snapshot
Replace ad-server config
Set the ad-server config
Test connection
Probe upstream reachability