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

# Activate Issued Gift Card

> Staff-initiated activation of a pending gift card.

Flips the card to active and (by default) sends the recipient notification.
409 if the card is not pending. 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-activation row.



## OpenAPI

````yaml post /billing/gift-cards/issued/{gift_card_id}/activate
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}/activate:
    post:
      tags:
        - Gift Cards
      summary: Activate Issued Gift Card
      description: >-
        Staff-initiated activation of a pending gift card.


        Flips the card to active and (by default) sends the recipient
        notification.

        409 if the card is not pending. 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-activation row.
      operationId: >-
        activate_issued_gift_card_billing_gift_cards_issued__gift_card_id__activate_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/ActivateGiftCardRequest'
      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:
    ActivateGiftCardRequest:
      properties:
        sendNotification:
          type: boolean
          title: Sendnotification
          default: true
      type: object
      title: ActivateGiftCardRequest
    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

````