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

# Sync subscription plans to Stripe

> Creates or updates Stripe products and prices for all active subscription plans. Idempotent - safe to run multiple times.



## OpenAPI

````yaml openapi.json post /admin/billing/sync-plans
openapi: 3.0.0
info:
  description: Dualship backend API for workflow automation and API management.
  title: Dualship API
  termsOfService: https://dualship.run/terms
  contact:
    name: Dualship Support
    url: https://dualship.run/support
    email: support@dualship.run
  version: '1.0'
servers:
  - url: https://api.dualship.run
security: []
paths:
  /admin/billing/sync-plans:
    post:
      tags:
        - admin
      summary: Sync subscription plans to Stripe
      description: >-
        Creates or updates Stripe products and prices for all active
        subscription plans. Idempotent - safe to run multiple times.
      responses:
        '200':
          description: Sync results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.SyncPlanListResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    internal_api_handler.SyncPlanListResponse:
      description: Stripe plan sync results
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/internal_api_handler.SyncPlanResult'
    internal_api_handler.InternalServerError:
      description: Internal server error
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_ERROR
        error:
          type: string
          example: internal server error
    internal_api_handler.SyncPlanResult:
      description: Plan sync result
      type: object
      properties:
        monthly_price_id:
          type: string
          example: price_monthly_abc
        product_id:
          type: string
          example: prod_abc123
        slug:
          type: string
          example: pro
        status:
          type: string
          example: synced
        yearly_price_id:
          type: string
          example: price_yearly_abc
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Bearer token authentication

````