> ## 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 v1panelgoodsproviders

> Requires goods.write. A null credential means "keep what is stored".



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/goods/providers/{slug}
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/goods/providers/{slug}:
    put:
      tags:
        - panel
      description: Requires goods.write. A null credential means "keep what is stored".
      operationId: savePanelGoodsProvider
      parameters:
        - in: path
          name: slug
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PanelGoodsProviderInput'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelGoodsProvider'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $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:
    PanelGoodsProviderInput:
      type: object
      required:
        - enabled
        - spendLimitMinor
        - spendWindowSeconds
      properties:
        enabled:
          type: boolean
        credentials:
          type: string
          nullable: true
          description: Omit or send null to keep the stored credential.
        lowBalanceThresholdMinor:
          type: integer
          format: int64
          nullable: true
        spendLimitMinor:
          type: integer
          format: int64
          minimum: 0
        spendWindowSeconds:
          type: integer
          format: int64
          minimum: 1
    PanelGoodsProvider:
      type: object
      required:
        - slug
        - enabled
        - credentialsSet
        - spendLimitMinor
        - spendWindowSeconds
        - status
        - lowBalance
      properties:
        slug:
          type: string
        enabled:
          type: boolean
        credentialsSet:
          type: boolean
        balanceMinor:
          type: integer
          format: int64
        balanceCurrency:
          type: string
        lowBalanceThresholdMinor:
          type: integer
          format: int64
        spendLimitMinor:
          type: integer
          format: int64
          description: Rolling ceiling in provider cost. Zero means no ceiling.
        spendWindowSeconds:
          type: integer
          format: int64
        status:
          type: string
          enum:
            - unknown
            - healthy
            - failing
        lastErrorCode:
          type: string
        lastCheckedAt:
          type: string
          format: date-time
        lowBalance:
          type: boolean
          description: >-
            Derived from the balance and the threshold, so it cannot contradict
            them.
    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.