> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Activate linked storefront source

> Activate a linked storefront source after configuring pass-through terms

`POST /api/v2/storefront/inventory-sources/{sourceId}/activate`

Activate a linked storefront source after you configure its pass-through terms.
Activation checks that the selected partner storefront still consents to the
relationship and that terms are configured. If either check fails, the source
keeps its current status: `PENDING` stays `PENDING`, and `DISABLED` stays
`DISABLED`.

## Request

```bash theme={null}
curl -X POST https://api.apostra.com/api/v2/storefront/inventory-sources/linked-storefront:42/activate \
  -H "Authorization: Bearer $SCOPE3_API_KEY"
```

| Field | Type | Required | Notes |
| - | - | - | - |
| `sourceId` | string (path) | Yes | The linked storefront source ID in your storefront |

The request body is empty.

## Response

`200 OK` returns the activated `InventorySourceResponse`.

| Field | Type | Meaning |
| - | - | - |
| `sourceId` | string | The linked storefront source ID |
| `executionType` | string | `LINKED_STOREFRONT` |
| `status` | string | `ACTIVE` |
| `linkedStorefrontTarget.lifecycleStatus` | string | `ACTIVE` |
| `linkedStorefrontTarget.selectable` | boolean | `true` when the source is active with configured terms, partner consent remains current, and routing is enabled for a pilot storefront |
| `linkedStorefrontTarget.activationRequirements` | array | Empty after activation |

For flag-enabled pilot storefronts, active linked storefront sources with
current partner consent receive briefs and bookings. Pending, disabled,
archived, or no-longer-authorized sources do not.

Your partner storefront must be listed in the marketplace and not paused to
receive briefs and bookings. The partner sees your storefront as the buyer for
these requests. Your buyer's account stays on your own booking and is not sent
to the partner.

## Availability and errors

This pilot requires the `linked-partner-sources` feature flag.

* `403 FEATURE_NOT_ENABLED` - the pilot is not enabled for your storefront.
* `400 VALIDATION_ERROR` - pass-through terms are missing, the source is not a linked storefront source, or the partner storefront's consent is no longer current.
* `401 UNAUTHORIZED` - the request is not authenticated.
* `404 NOT_FOUND` - no source with this `sourceId` exists in your storefront.

## Related

<CardGroup cols={2}>
  <Card title="Configure linked storefront source terms" href="/v2/storefront/inventory-sources/tasks/configure-linked-source-terms" icon="file-signature">
    Set terms before activation
  </Card>

  <Card title="Inventory sources overview" href="/v2/storefront/inventory-sources/overview" icon="plug">
    Lifecycle and pass-through terms
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.