> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Put v1panelsettingsproviders

> Requires settings.write. A null credential means "keep what is stored", so the form can be re-saved without echoing a secret. Recurring is not writable here.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/settings/providers/{provider}
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/settings/providers/{provider}:
    put:
      tags:
        - panel
      description: >-
        Requires settings.write. A null credential means "keep what is stored",
        so the form can be re-saved without echoing a secret. Recurring is not
        writable here.
      operationId: savePanelProviderSettings
      parameters:
        - in: path
          name: provider
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PanelProviderSettingsInput'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelProviderSettings'
        '403':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    PanelProviderSettingsInput:
      type: object
      required:
        - enabled
        - displayOrder
      properties:
        merchantId:
          type: string
          description: Empty for an installation with a single merchant account.
        enabled:
          type: boolean
        displayOrder:
          type: integer
        credentials:
          type: string
          nullable: true
          description: Omit or send null to keep the stored credential.
        webhookSecret:
          type: string
          nullable: true
    PanelProviderSettings:
      type: object
      required:
        - provider
        - merchantId
        - enabled
        - displayOrder
        - credentialsSet
        - webhookSecretSet
        - adapterRecurring
        - recurringEnabled
        - recurringTestStatus
        - connectionStatus
        - webhookStatus
        - updatedAt
      properties:
        provider:
          type: string
        merchantId:
          type: string
        enabled:
          type: boolean
        displayOrder:
          type: integer
        credentialsSet:
          type: boolean
          description: >-
            Whether a credential is stored. The credential itself is never
            returned.
        webhookSecretSet:
          type: boolean
        adapterRecurring:
          type: boolean
          description: >-
            What the compiled-in adapter declares. The operator switch can only
            narrow this.
        recurringEnabled:
          type: boolean
        recurringTestStatus:
          type: string
          enum:
            - untested
            - passed
            - failed
        recurringTestedAt:
          type: string
          format: date-time
        connectionStatus:
          type: string
          enum:
            - unknown
            - healthy
            - failing
        connectionCheckedAt:
          type: string
          format: date-time
        connectionErrorCode:
          type: string
        webhookStatus:
          type: string
          enum:
            - unknown
            - healthy
            - failing
        webhookLastEventAt:
          type: string
          format: date-time
        webhookLastErrorCode:
          type: string
        updatedAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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