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

# Void Issued Gift Card

> Void an issued gift card: remove its remaining balance and kill it.

The card stays visible in the issued list with a VOIDED status — it's no
longer redeemable. Returns the updated card so the client can write it
straight into its React Query cache: reads hit a replica that can lag this
write, so a refetch could resurrect the pre-void row.



## OpenAPI

````yaml post /billing/gift-cards/issued/{gift_card_id}/void
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /billing/gift-cards/issued/{gift_card_id}/void:
    post:
      tags:
        - Gift Cards
      summary: Void Issued Gift Card
      description: >-
        Void an issued gift card: remove its remaining balance and kill it.


        The card stays visible in the issued list with a VOIDED status — it's no

        longer redeemable. Returns the updated card so the client can write it

        straight into its React Query cache: reads hit a replica that can lag
        this

        write, so a refetch could resurrect the pre-void row.
      operationId: void_issued_gift_card_billing_gift_cards_issued__gift_card_id__void_post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: gift_card_id
          in: path
          required: true
          schema:
            type: string
            title: Gift Card Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GiftCardRequiredStateChangeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IssuedGiftCardDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GiftCardRequiredStateChangeRequest:
      properties:
        reason:
          type: string
          title: Reason
          description: Required staff-entered reason for the gift card state change.
      type: object
      required:
        - reason
      title: GiftCardRequiredStateChangeRequest
    IssuedGiftCardDetail:
      properties:
        id:
          type: string
          title: Id
        code:
          type: string
          title: Code
        initialValue:
          type: integer
          title: Initialvalue
        currentBalance:
          type: integer
          title: Currentbalance
        isActive:
          type: boolean
          title: Isactive
        status:
          $ref: '#/components/schemas/GiftCardStatus'
        purchasingPatientId:
          anyOf:
            - type: string
            - type: 'null'
          title: Purchasingpatientid
        purchasingPatientName:
          anyOf:
            - type: string
            - type: 'null'
          title: Purchasingpatientname
        recipientPatientId:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientpatientid
        recipientPatientName:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientpatientname
        recipientNote:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientnote
        createdDate:
          type: string
          format: date-time
          title: Createddate
        activatedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Activatedat
        recipientPatientEmail:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientpatientemail
        recipientPatientPhone:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipientpatientphone
        chargeItemId:
          anyOf:
            - type: string
            - type: 'null'
          title: Chargeitemid
        purchasingPatientEmail:
          anyOf:
            - type: string
            - type: 'null'
          title: Purchasingpatientemail
        purchasingPatientPhone:
          anyOf:
            - type: string
            - type: 'null'
          title: Purchasingpatientphone
        scheduledSendDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Scheduledsenddate
        suppressRecipientNotification:
          type: boolean
          title: Suppressrecipientnotification
          default: false
        notificationSentAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Notificationsentat
        updatedDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updateddate
        transactions:
          items:
            $ref: '#/components/schemas/GiftCardTransactionDetail'
          type: array
          title: Transactions
          default: []
      type: object
      required:
        - id
        - code
        - initialValue
        - currentBalance
        - isActive
        - status
        - createdDate
      title: IssuedGiftCardDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GiftCardStatus:
      type: string
      enum:
        - PENDING
        - ACTIVE
        - DISABLED
        - VOIDED
      title: GiftCardStatus
    GiftCardTransactionDetail:
      properties:
        id:
          type: string
          title: Id
        amount:
          type: integer
          title: Amount
        type:
          type: string
          title: Type
        paymentId:
          anyOf:
            - type: string
            - type: 'null'
          title: Paymentid
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
        actorName:
          anyOf:
            - type: string
            - type: 'null'
          title: Actorname
        createdDate:
          type: string
          format: date-time
          title: Createddate
      type: object
      required:
        - id
        - amount
        - type
        - createdDate
      title: GiftCardTransactionDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````