---
title: "Sync Stripe Payments State"
method: POST
path: "/api/payments/stripe/sync"
tags: ["Stripe Payments"]
---

# Sync Stripe Payments State

`POST /api/payments/stripe/sync`

Sync products, prices, customers, and subscriptions for every configured Stripe environment. Stripe remains the source of truth.

## Response `200`

Sync result for configured environments

- SyncStripePaymentsResponse
  - `results` SyncStripePaymentsEnvironmentResult[], required
    - `environment` 'test' | 'live', required
    - `connection` StripeConnection, required
      - `environment` 'test' | 'live', required
      - `status` 'unconfigured' | 'connected' | 'error', required
      - `accountId` string, nullable, required
      - `accountEmail` string, nullable, required
      - `accountLivemode` boolean, nullable, required
      - `webhookEndpointId` string, nullable, required
      - `webhookEndpointUrl` string, nullable, required
      - `webhookConfiguredAt` string, date-time, nullable, required
      - `maskedKey` string, nullable, required
      - `lastSyncedAt` string, date-time, nullable, required
      - `lastSyncStatus` 'succeeded' | 'failed', required
      - `lastSyncError` string, nullable, required
      - `lastSyncCounts` object, required
    - `subscriptions` SyncStripePaymentsSubscriptionsSummary, required
      - `environment` 'test' | 'live', required
      - `synced` integer, required
      - `unmapped` integer, required
      - `deleted` integer, required

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/insforge/apis/insforge-authentication-api.md) · [All operations](https://skmtc.net/insforge/apis/insforge-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insforge/insforge-authentication-api/revisions/a935bb49f932/schema)
