A store starts in test mode. Live mode is the money switch: the store takes real orders and payments. It does not decide whether the storefront is visible. That is [publishing](/docs/api-reference/storefront-code#publish-the-storefront).

## Who can call these endpoints

| Endpoint | Store API key | OAuth connection |
|----------|---------------|------------------|
| `GET /api/v1/payments/live` | `settings:read` or `store:admin` scope | Member with the same permission |
| `POST /api/v1/payments/live` | Refused with `403` | Member allowed to manage the store |
| `POST /api/v1/payments/stripe/connect-link` | `settings:write` scope | Member who may change settings |
| `POST /api/v1/payments/stripe/requests` | `settings:write` scope | Refused with `403` |

## Check live readiness

```
GET /api/v1/payments/live
```

Says whether the store is live and what would stop it from switching.

A store can go live once it has:

- at least one product,
- a store address,
- at least one shipping method,
- a way to take a live payment: Stripe able to charge, a payment add-on such as PayNow or Montonio switched on in production, or bank transfer or cash on delivery,
- an active billing subscription, on a paid plan.

```json
{
  "live": false,
  "ready": false,
  "blockedBy": ["no shipping methods set up"],
  "paymentProviders": ["stripe", "manual"]
}
```

| Field | Description |
|-------|-------------|
| `live` | The store takes real orders and payments |
| `ready` | `true` when `blockedBy` is empty |
| `blockedBy` | The missing steps, in plain English |
| `paymentProviders` | How a shopper could pay once live: `frame`, `przelewy24`, `paynow`, `montonio`, `stripe` or `manual` |

## Switch to live payments

```
POST /api/v1/payments/live
```

Switches the store from test mode to live. It runs the readiness checks first and switches only when nothing blocks.

Taking real money is a team member's decision. Only an OAuth connection made by a member allowed to manage the store can switch. A store API key gets `403`. Confirm with the merchant before you call it.

| Response (200) | Meaning |
|----------------|---------|
| `{ "live": true }` | Switched |
| `{ "live": true, "alreadyLive": true }` | The store was already live |
| `{ "live": false, "blockedBy": [...] }` | Something blocks it. Nothing changed |

The switch does not publish the storefront.

## Get the Stripe connect link

```
POST /api/v1/payments/stripe/connect-link
```

Returns the link a team member opens to connect the store's Stripe account. Stripe's signup can't be finished through the API, so hand the link to the merchant as it is. It opens the store's dashboard, so it works for a signed-in member who may change settings. The store shows as connected once they finish on Stripe.

```json
{ "url": "https://yns.store/s/acme/manage/stripe-connect/start", "connected": false }
```

`connected` is `true` when the store already has a Stripe account linked. Opening the link again replaces it.

## Call the Stripe API

```
POST /api/v1/payments/stripe/requests
```

Sends one request to the Stripe API on the store's own connected Stripe account, in the store's current mode (test or live). No other account is reachable. Only the store API key can call it.

Use it for what the store does not track itself: balance and payouts, disputes and evidence, payment and charge details, Stripe customers, invoices, subscriptions, tax and payment method settings, Radar reviews, and the account's business profile and branding.

For orders, refunds, products, prices, customers and coupons, use the store's own endpoints. A change made straight in Stripe does not update the store's records: a refund made here does not show on the order.

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `method` | `"GET" \| "POST" \| "DELETE"` | Yes | `GET` reads, `POST` creates or updates, `DELETE` deletes |
| `path` | `string` | Yes | A Stripe REST path starting with `/v1/`, without a query string |
| `query` | `object` | No | Query parameters for `GET` and `DELETE`, with Stripe's bracket keys, such as `{ "limit": 10, "created[gte]": 1767225600, "expand": ["data.customer"] }` |
| `body` | `object` | No | `POST` fields as nested JSON, such as `{ "evidence": { "customer_name": "Ada" } }` |

```bash
curl -X POST \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"method":"GET","path":"/v1/disputes","query":{"limit":5}}' \
  https://your-store.yns.store/api/v1/payments/stripe/requests
```

The response is `{ "result": … }` with Stripe's answer, or `{ "truncated": true, "id", "object", "note" }` when the answer is too large to return. Keep list reads small with `limit`.

The store's account is `GET /v1/account`. Update it with `POST /v1/accounts/<its id>`: only `business_profile`, `settings` and `metadata`. `POST` and `DELETE` change the merchant's Stripe account, so confirm with them first.

### Errors

| Status | Description |
|--------|-------------|
| `400` | Invalid body, a refused path (Connect platform endpoints, webhooks, files, API keys, card and bank numbers), a store without a connected Stripe account, or Stripe refused the request. Stripe's message is passed on |
| `403` | Called over OAuth, or the API key lacks the `settings:write` scope |
| `504` | Stripe did not answer in time. A change may still have gone through |

## Related

- [Store Setup](/docs/api-reference/store-setup) – the setup checklist that leads up to going live
- [Settings](/docs/api-reference/settings) – the store address and other settings readiness checks