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

# Get Member Issued Discounts

> Get a member's issued discount history with redeemability state.



## OpenAPI

````yaml get /inventory/members/{member_id}/discounts
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /inventory/members/{member_id}/discounts:
    get:
      tags:
        - Memberships
      summary: Get Member Issued Discounts
      description: Get a member's issued discount history with redeemability state.
      operationId: get_member_issued_discounts_inventory_members__member_id__discounts_get
      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: member_id
          in: path
          required: true
          schema:
            type: string
            title: Member Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/DiscountDetailWithSourceAndRedeemability
                title: >-
                  Response Get Member Issued Discounts Inventory Members  Member
                  Id  Discounts Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DiscountDetailWithSourceAndRedeemability:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the discount
        discountTemplateId:
          anyOf:
            - type: string
            - type: 'null'
          title: Discounttemplateid
          description: ID of the template this discount was created from
        patientId:
          anyOf:
            - type: string
            - type: 'null'
          title: Patientid
          description: ID of the patient who owns this discount
        memberId:
          anyOf:
            - type: string
            - type: 'null'
          title: Memberid
          description: ID of the member this discount belongs to
        soldPackageId:
          anyOf:
            - type: string
            - type: 'null'
          title: Soldpackageid
          description: ID of the sold package that created this discount
        createdByChargeItemId:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdbychargeitemid
          description: ID of the charge item that created this discount (for saved items)
        discountChoiceId:
          anyOf:
            - type: string
            - type: 'null'
          title: Discountchoiceid
          description: ID of the discount choice group
        type:
          $ref: '#/components/schemas/DiscountType'
          description: Type of discount (CATEGORY, PRODUCT, SERVICE, ALL)
        itemId:
          anyOf:
            - type: string
            - type: 'null'
          title: Itemid
          description: ID of the specific item for this discount
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
          description: Category name this discount applies to
        itemType:
          anyOf:
            - $ref: '#/components/schemas/ItemType'
            - type: 'null'
          description: Type of item this discount applies to
        percentage:
          anyOf:
            - type: number
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Percentage
          description: Discount percentage (0-100)
        amount:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Amount
          description: Discount amount in cents
        quantity:
          anyOf:
            - type: integer
            - type: 'null'
          title: Quantity
          description: Total quantity for this discount (None = infinite)
        quantityRemaining:
          anyOf:
            - type: integer
            - type: 'null'
          title: Quantityremaining
          description: Quantity remaining in the discount
        expiryDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expirydate
          description: When this discount expires
        uses:
          items:
            $ref: >-
              #/components/schemas/decoda__schemas__billing__discounts__discount_use__DiscountUse
          type: array
          title: Uses
          description: Usages of this discount
        isStackable:
          type: boolean
          title: Isstackable
          description: Whether this discount can be combined with other discounts
          default: true
        isPrepayment:
          type: boolean
          title: Isprepayment
          description: Whether this is a prepayment (commissions on full price)
          default: false
        isChosen:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ischosen
          description: Whether this discount was chosen from a choice group
        isArchived:
          type: boolean
          title: Isarchived
          description: Whether the discount is archived
          default: false
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
          description: Optional comment for custom discounts
        group:
          anyOf:
            - type: string
            - type: 'null'
          title: Group
          description: Group for choice-based discounts
        member:
          anyOf:
            - $ref: '#/components/schemas/MemberTiny'
            - type: 'null'
          description: Member this discount belongs to
        soldPackage:
          anyOf:
            - $ref: '#/components/schemas/DiscountSoldPackageTiny'
            - type: 'null'
          description: Sold package this discount belongs to
        item:
          anyOf:
            - $ref: '#/components/schemas/DiscountItemTiny'
            - type: 'null'
          description: Item this discount applies to
        discountTemplate:
          anyOf:
            - $ref: '#/components/schemas/DiscountTemplateTiny'
            - type: 'null'
          description: Discount template this discount was created from
        isRedeemable:
          type: boolean
          title: Isredeemable
          description: >-
            Whether the discount can currently be redeemed in checkout/cart
            flows
          default: false
      type: object
      required:
        - type
      title: DiscountDetailWithSourceAndRedeemability
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DiscountType:
      type: string
      enum:
        - GLOBAL
        - CUSTOM
        - MEMBERSHIP
        - PACKAGE
        - SAVED_ITEM
        - PROMOTION
      title: DiscountType
    ItemType:
      type: string
      enum:
        - ITEM
        - SERVICE
        - PRODUCT
        - PACKAGE
        - MEMBERSHIP
        - MEDICATION
        - SERVICE_FEE
        - GIFT_CARD
      title: ItemType
    decoda__schemas__billing__discounts__discount_use__DiscountUse:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the discount use
        discountId:
          type: string
          title: Discountid
          description: ID of the discount that was used
        createdDate:
          type: string
          format: date-time
          title: Createddate
          description: When the discount use was created
        chargeItemId:
          type: string
          title: Chargeitemid
          description: ID of the charge item that the discount was used on
        amount:
          type: integer
          title: Amount
          description: Amount of the discount in cents
        order:
          type: integer
          title: Order
          description: Order in which the discount was applied (0-based)
        quantity:
          type: integer
          title: Quantity
          description: Number of units the discount applies to
      type: object
      required:
        - id
        - discountId
        - createdDate
        - chargeItemId
        - amount
        - order
        - quantity
      title: DiscountUse
      description: Schema for a usage of a discount.
    MemberTiny:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the member
        membership:
          $ref: '#/components/schemas/MembershipTiny'
          description: Membership details
        startDate:
          type: string
          format: date-time
          title: Startdate
          description: When the patient joined the membership
        status:
          $ref: '#/components/schemas/MemberStatus'
          description: Current status of the membership
        freezeDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Freezedate
          description: When the membership should be automatically frozen
        unfreezeDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Unfreezedate
          description: When the membership should be automatically unfrozen
      type: object
      required:
        - id
        - membership
        - startDate
        - status
      title: MemberTiny
    DiscountSoldPackageTiny:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the sold package
        packageId:
          type: string
          title: Packageid
          description: Package ID that was sold
        package:
          anyOf:
            - $ref: '#/components/schemas/DiscountPackageTiny'
            - type: 'null'
          description: Package details
      type: object
      required:
        - id
        - packageId
      title: DiscountSoldPackageTiny
      description: Minimal sold package info for discount source display
    DiscountItemTiny:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the item
        name:
          type: string
          title: Name
          description: Name of the item
        brandName:
          anyOf:
            - type: string
            - type: 'null'
          title: Brandname
          description: Optional brand name of the item
        price:
          anyOf:
            - type: integer
            - type: 'null'
          title: Price
          description: Price of the item in cents
        cashPrice:
          anyOf:
            - type: integer
            - type: 'null'
          title: Cashprice
          description: Cash price of the item in cents (for dual pricing)
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
          description: Category name (references category.name)
        unit:
          anyOf:
            - $ref: '#/components/schemas/Unit'
            - type: 'null'
          description: Unit of measurement for the item
        type:
          anyOf:
            - $ref: '#/components/schemas/ItemType'
            - type: 'null'
          description: Type of item (PRODUCT, SERVICE, etc.)
        isPhysical:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Isphysical
          description: Whether the item is physical
        isArchived:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Isarchived
          description: Whether the item is archived
        allowCustomPricing:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Allowcustompricing
          description: Whether custom pricing is allowed for this item
        showInCheckOut:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Showincheckout
          description: Whether this item appears in checkout
      type: object
      required:
        - id
        - name
      title: DiscountItemTiny
      description: |-
        Minimal item info for discount display.

        Carries enough scalar item detail for the console to append an archived
        benefit target to its active-only catalog list without a second items
        query. Scalar columns only — no relationships — so any loader that
        selectinloads the item row alone can serialize this schema.
    DiscountTemplateTiny:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the discount template
        itemId:
          anyOf:
            - type: string
            - type: 'null'
          title: Itemid
          description: ID of the item this template applies to
        item:
          anyOf:
            - $ref: '#/components/schemas/DiscountItemTiny'
            - type: 'null'
          description: Item this template applies to
      type: object
      required:
        - id
      title: DiscountTemplateTiny
      description: Minimal discount template info for discount display
    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
    MembershipTiny:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the membership
        name:
          type: string
          title: Name
          description: Name of the membership
        textColor:
          anyOf:
            - type: string
            - type: 'null'
          title: Textcolor
          description: Text color of the membership
      type: object
      required:
        - id
        - name
      title: MembershipTiny
    MemberStatus:
      type: string
      enum:
        - ACTIVE
        - EXPIRED
        - CANCELLED
        - DELINQUENT
        - FROZEN
        - INACTIVE
        - PENDING
        - AWAITING_FORM
      title: MemberStatus
    DiscountPackageTiny:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the package
        name:
          type: string
          title: Name
          description: Name of the package
      type: object
      required:
        - id
        - name
      title: DiscountPackageTiny
      description: Minimal package info for discount source display
    Unit:
      type: string
      enum:
        - AMPOULES
        - APPLICATORS
        - BOTTLES
        - BOXES
        - CAPSULES
        - CUPS
        - DOSES
        - G_PER_ML
        - GRAMS
        - IU
        - IU_PER_ML
        - OUNCES
        - FLUID_OUNCES
        - KG
        - KITS
        - LITERS
        - MCG
        - MG
        - MG_PER_ML
        - ML
        - MMOL
        - MICROGRAM_PER_ML
        - PACKS
        - PAIRS
        - PATCHES
        - PERCENTAGE
        - PIECES
        - POUCHES
        - ROLLS
        - SACHETS
        - SHEETS
        - SPRAYS
        - STRIPS
        - SYRINGES
        - TABLETS
        - TABLETS_PER_DAY
        - TESTS
        - TROCHES
        - TUBES
        - UNITS
        - VIALS
        - TREATMENTS
        - SESSIONS
        - PULSES
        - JOULES
        - CENTIMETERS
        - THREAD_COUNT
        - INJECTIONS
        - WRINKLE_UNITS
        - POUNDS
        - FEET
        - INCHES
      title: Unit

````