> ## 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 v1panelgifts revoke

> Requires gifts.write and a reason. A claimed gift is not revocable: the recipient already holds what it bought, and taking that back is a refund decision against their entitlement.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/panel/gifts/{giftID}/revoke
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/gifts/{giftID}/revoke:
    post:
      tags:
        - panel
      description: >-
        Requires gifts.write and a reason. A claimed gift is not revocable: the
        recipient already holds what it bought, and taking that back is a refund
        decision against their entitlement.
      operationId: revokePanelGift
      parameters:
        - in: path
          name: giftID
          required: true
          schema:
            type: string
            format: uuid
        - $ref: '#/components/parameters/CSRFToken'
        - $ref: '#/components/parameters/OperatorReason'
      responses:
        '200':
          description: Revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelGift'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $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
    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:
    PanelGift:
      type: object
      required:
        - id
        - orderId
        - senderId
        - kind
        - currency
        - codeHint
        - status
        - claimAttempts
        - expiresAt
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        orderId:
          type: string
          format: uuid
        senderId:
          type: string
          format: uuid
        recipientId:
          type: string
          format: uuid
        kind:
          type: string
          enum:
            - subscription
            - addon
            - wallet_credit
        currency:
          type: string
        creditMinor:
          type: integer
          format: int64
        codeHint:
          type: string
          description: >-
            The last four characters of the claim code. The code itself is
            stored only as a digest.
        status:
          $ref: '#/components/schemas/PanelGiftStatus'
        claimAttempts:
          type: integer
        expiresAt:
          type: string
          format: date-time
        claimedAt:
          type: string
          format: date-time
        revokedAt:
          type: string
          format: date-time
        revokeReason:
          type: string
        createdAt:
          type: string
          format: date-time
    PanelGiftStatus:
      type: string
      enum:
        - pending
        - deliverable
        - claimed
        - expired
        - revoked
        - refunded
    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.