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

# Post v1panelcustomers status

> Requires customers.write and a reason. Suspension does not disable a Remnawave user directly: the fulfillment pipeline observes customer state, and bypassing it would leave the two disagreeing.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/panel/customers/{customerID}/status
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/customers/{customerID}/status:
    post:
      tags:
        - panel
      description: >-
        Requires customers.write and a reason. Suspension does not disable a
        Remnawave user directly: the fulfillment pipeline observes customer
        state, and bypassing it would leave the two disagreeing.
      operationId: setPanelCustomerStatus
      parameters:
        - $ref: '#/components/parameters/CustomerID'
        - $ref: '#/components/parameters/CSRFToken'
        - $ref: '#/components/parameters/OperatorReason'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              properties:
                status:
                  type: string
                  enum:
                    - active
                    - suspended
      responses:
        '200':
          description: Updated profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelCustomerProfile'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CustomerID:
      in: path
      name: customerID
      required: true
      schema:
        type: string
        format: uuid
    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
    OperatorReason:
      in: header
      name: X-Operator-Reason
      required: true
      description: >-
        Why the change is being made. Carried as a header because almost every
        operations mutation needs one; the API refuses a change that requires a
        reason and did not get one.
      schema:
        type: string
        minLength: 1
        maxLength: 400
  schemas:
    PanelCustomerProfile:
      allOf:
        - $ref: '#/components/schemas/PanelCustomerSummary'
        - type: object
          required:
            - activeSubscriptions
            - orderCount
            - openTickets
            - referralCount
            - openFlags
            - allowlisted
          properties:
            anonymizedAt:
              type: string
              format: date-time
            retentionUntil:
              type: string
              format: date-time
            activeSubscriptions:
              type: integer
              format: int64
            orderCount:
              type: integer
              format: int64
            openTickets:
              type: integer
              format: int64
            referralCount:
              type: integer
              format: int64
            openFlags:
              type: integer
              format: int64
              description: >-
                Blocklist matches awaiting a decision. A count of things to
                review, never a verdict.
            allowlisted:
              type: boolean
    PanelCustomerSummary:
      type: object
      required:
        - id
        - status
        - locale
        - timezone
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - active
            - suspended
            - deleted
        locale:
          type: string
        timezone:
          type: string
        createdAt:
          type: string
          format: date-time
        telegramId:
          type: integer
          format: int64
        suspendedAt:
          type: string
          format: date-time
        deletedAt:
          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.