GET /api/v2/storefront/inventory-sources/{sourceId}
Returns one inventory source with its full state, including the managedSa block for ad-server-backed sources and the linkedStorefront block for linked storefronts.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
sourceId | string (path) | Yes | Storefront-scoped inventory source ID |
Response
MANAGED_SALES_AGENT source the response carries a managedSa object (connectionId, provisioningStatus, tenantId, adServer, lastError, timestamps). For a LINKED_STOREFRONT source it carries a linkedStorefront object. reportingType (WEBHOOK, BUCKET, POLLING) and reportingPollingCadence (DAILY, MONTHLY) are null for non-AGENT sources.
Errors
401 UNAUTHORIZED— missing or invalid API key.404 NOT_FOUND— no source with thissourceIdon your storefront.
Related
Inventory source tasks
All operations
Inventory sources overview
Concepts and lifecycle
Update inventory source
Change fields or rotate auth
Get ad-server connection
Managed-source connection state