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

# Reconcile invoices with Stripe (admin)

> Pulls the Stripe invoice list and reconciles it against local invoices: marks PENDING invoices paid when Stripe says paid, imports paid Stripe invoices with no local counterpart, and attaches Stripe ids. Recovers from missed webhooks. Returns per-outcome counts.



## OpenAPI

````yaml /openapi.json post /v1/admin/invoices/sync-stripe
openapi: 3.0.0
info:
  title: OneSubnet Core API
  description: >-
    OneSubnet hosting panel API. Toutes les routes sont préfixées par /v1/
    (versioning URI). Les routes Panel sont appelées par le daemon Wings, pas
    par les clients. Les routes Admin nécessitent le rôle admin.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: Auth & Users
    description: Authentification, profil, gestion utilisateurs
  - name: Store
    description: 'Boutique: catégories, produits, panier'
  - name: Billing
    description: Facturation, checkout Stripe, webhooks
  - name: Services
    description: Services hébergés (enregistrements facturation)
  - name: Affiliation
    description: Parrainage et commissions
  - name: Notifications
    description: Notifications
  - name: Admin - RBAC
    description: Gestion des rôles, permissions, groupes
  - name: Admin - Store & Invoices
    description: CRUD produits, plans, coupons, factures
  - name: Admin - Settings & Tenants
    description: Configuration, multi-tenant, whitelabel
  - name: Admin - Audit
    description: Journal d'audit des requêtes
  - name: System
    description: Health, meta-info
paths:
  /v1/admin/invoices/sync-stripe:
    post:
      tags:
        - Admin - Store & Invoices
      summary: Reconcile invoices with Stripe (admin)
      description: >-
        Pulls the Stripe invoice list and reconciles it against local invoices:
        marks PENDING invoices paid when Stripe says paid, imports paid Stripe
        invoices with no local counterpart, and attaches Stripe ids. Recovers
        from missed webhooks. Returns per-outcome counts.
      operationId: AdminStoreController_syncInvoicesFromStripe_v1
      parameters: []
      responses:
        '201':
          description: ''
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Pay an existing PENDING invoice via Stripe](/api-reference/billing/pay-an-existing-pending-invoice-via-stripe.md)
- [Stripe webhook (signature verified)](/api-reference/billing/stripe-webhook-signature-verified.md)
- [Create a Stripe Customer Portal session](/api-reference/billing/create-a-stripe-customer-portal-session.md)
- [List a user's invoices (admin)](/api-reference/auth-&-users/list-a-users-invoices-admin.md)
- [Get a single invoice with full details (admin)](/api-reference/admin--store-&-invoices/get-a-single-invoice-with-full-details-admin.md)
