POST /api/v2/storefront/inventory-sources/{sourceId}/deactivate
Soft-deletes the ad-server source. The connection row stays in place so the storefront can re-provision later with Reactivate.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
sourceId | string (path) | Yes | Storefront-scoped inventory source ID |
Response
200 OK with the EsaConnection in deactivated state:
provisioningStatus becomes deactivated and deactivatedAt is set. The row is preserved for re-provisioning.
Errors
401 UNAUTHORIZED— missing or invalid API key.404 NOT_FOUND— no ad-server-backed source with thissourceId.
Related
Inventory source tasks
All operations
Reactivate
Re-enable this source
Get ad-server connection
Connection state
Inventory sources overview
Concepts and lifecycle