---
title: "Get Issued Discounts"
method: GET
path: "/inventory/members/{member_id}/issued-discounts"
tags: ["provider", "inventory"]
---

# Get Issued Discounts

`GET /inventory/members/{member_id}/issued-discounts`

## Request

- Base URL: `https://docs.decodahealth.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.decodahealth.com/inventory/members/{member_id}/issued-discounts`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/inventory/members/:member_id/issued-discounts/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a member's issued discounts.

## Path parameters

- `member_id` string, required

## Query parameters

- `itemName` string, nullable
- `quantityRemainingMin` integer, nullable
- `quantityRemainingMax` integer, nullable
- `createdDateStart` string, date-time, nullable
- `createdDateEnd` string, date-time, nullable
- `expiryDateStart` string, date-time, nullable
- `expiryDateEnd` string, date-time, nullable
- `includeExpired` boolean

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- IssuedDiscountDetail[]
  - `id` string, required: Unique identifier for the discount bank entry
  - `memberId` string, required: ID of the member
  - `membershipDiscountId` string, required: ID of the membership discount
  - `quantityRemaining` integer, required: Quantity remaining in the bank
  - `expiryDate` string, date-time, nullable: When this bank entry expires
  - `membershipDiscount` MembershipDiscountDetail, required
    - `id` string: Unique identifier for the membership discount
    - `membershipId` string, required: ID of the membership this discount belongs to
    - `itemId` string, nullable: ID of the specific item for this discount (includes packages)
    - `itemCategory` string, nullable: Category name for items in this discount (references category.name)
    - `isPhysical` boolean, nullable: Whether this discount applies to physical items (True), services (False), or neither (None)
    - `discountPercentage` number, nullable: Discount percentage
    - `discountAmount` integer, nullable: Discount amount in cents
    - `creditAmount` integer, nullable: Credit amount in cents
    - `quantity` integer, nullable: Quantity for this discount
    - `rollover` boolean: Whether to rollover unused quantities
    - `rolloverExpiryDays` integer, nullable: Days until rollover items expire
    - `neverExpire` boolean: Whether rollover items never expire
    - `group` string, nullable: Group for this discount
    - `isArchived` boolean: Whether the discount is archived
    - `item` ItemTiny
      - `id` string: Unique identifier for the item
      - `name` string, required: Name of the item
      - `brandName` string, nullable: Optional brand name of the item
      - `description` string, nullable: Optional description of the item
      - `price` integer, required: Price of the item in cents
      - `category` string, nullable: Category name (references category.name)
      - `unit` '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' | 'TUBES' | 'UNITS' | 'VIALS' | 'TREATMENTS' | 'SESSIONS' | 'PULSES' | 'JOULES' | 'CENTIMETERS' | 'THREAD_COUNT' | 'INJECTIONS' | 'WRINKLE_UNITS' | 'POUNDS' | 'FEET' | 'INCHES'
      - `isPhysical` boolean: Whether the item is physical
      - `isArchived` boolean: Whether the item is archived
      - `internalNotes` string, nullable: Optional internal notes for the item
      - `taxable` boolean: Whether the item is subject to taxes
      - `sortOrder` integer, nullable: Optional sort order for the item
      - `allowCustomPricing` boolean: Whether custom pricing is allowed for this item
      - `type` 'ITEM' | 'PRODUCT' | 'MEDICATION' | 'SERVICE' | 'PACKAGE' | 'MEMBERSHIP'
  - `usageCount` integer: Number of times this discount has been used
  - `createdDate` string, date-time, nullable: When the bank entry was created
  - `updatedDate` string, date-time, nullable: When the bank entry was last updated
  - `items` ChargeItem[], nullable: Items that have been used from this bank entry
    - `id` string, nullable: Unique identifier for the charge item
    - `itemId` string, nullable: Optional unique identifier for the item
    - `chargeId` string, required: Identifier of the charge this item is associated with
    - `name` string, nullable: Name of the item (None for items with associated inventory item)
    - `description` string, nullable: Description of the item
    - `quantity` integer, required: Quantity of the item being charged
    - `discountAmount` integer, nullable: Discount amount for the item
    - `discountPercentage` number, nullable: Discount percentage for the item
    - `discountReason` string, nullable: Reason for discount
    - `price` integer, required: Price of the item in cents
    - `soldPackageId` string, nullable: Unique identifier for the sold package usage
    - `bankedQuantity` integer, nullable: Quantity to bank for later use
    - `bankedItemId` string, nullable: ID of banked item being used (for tracking usage)
    - `issuedDiscountId` string, nullable: Unique identifier for the specific issued discount instance used
    - `soldByProviderId` string, nullable: Unique identifier for the provider who sold the item
    - `taxAmount` integer, nullable: Tax amount for the item in cents
    - `pricingId` string, nullable: Unique identifier for the pricing for the item
    - `shipmentIds` string[], nullable: Optional list of shipment IDs to reduce the stock quantity of
  - `packages` SoldPackageOutput[], nullable: Packages that have been used from this bank entry
    - `id` string: Unique identifier for the sold package
    - `packageId` string, required: Package ID that was sold
    - `patientId` string, required: Patient ID who purchased the package
    - `chargeItemId` string, required: Charge item ID associated with the package purchase
    - `status` 'USED' | 'ACTIVE' | 'CANCELLED', required
    - `package` PackageOutput
      - `id` string: Unique identifier for the package
      - `name` string, required: Name of the package
      - `description` string, nullable: Optional description of the package
      - `isArchived` boolean: Whether the package is archived
      - `price` integer, required: Price of the package in cents
      - `internalNotes` string, nullable: Optional internal notes for the package
      - `items` PackageItemOutput[], nullable: Items included in the package
        - `id` string: Unique identifier for the package item
        - `packageId` string, required: Package ID this item belongs to
        - `itemId` string, required: Item ID for this package item
        - `quantity` integer, nullable: Quantity of the item in the package
        - `price` integer, required: Price of the item in the package in cents
        - `item` ItemTiny
          - `id` string: Unique identifier for the item
          - `name` string, required: Name of the item
          - `brandName` string, nullable: Optional brand name of the item
          - `description` string, nullable: Optional description of the item
          - `price` integer, required: Price of the item in cents
          - `category` string, nullable: Category name (references category.name)
          - `unit` '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' | 'TUBES' | 'UNITS' | 'VIALS' | 'TREATMENTS' | 'SESSIONS' | 'PULSES' | 'JOULES' | 'CENTIMETERS' | 'THREAD_COUNT' | 'INJECTIONS' | 'WRINKLE_UNITS' | 'POUNDS' | 'FEET' | 'INCHES'
          - `isPhysical` boolean: Whether the item is physical
          - `isArchived` boolean: Whether the item is archived
          - `internalNotes` string, nullable: Optional internal notes for the item
          - `taxable` boolean: Whether the item is subject to taxes
          - `sortOrder` integer, nullable: Optional sort order for the item
          - `allowCustomPricing` boolean: Whether custom pricing is allowed for this item
          - `type` 'ITEM' | 'PRODUCT' | 'MEDICATION' | 'SERVICE' | 'PACKAGE' | 'MEMBERSHIP'
      - `category` string, nullable: Category name (references category.name)
    - `createdDate` string, date-time, required: Date the package was created
    - `updatedDate` string, date-time, nullable: Date the package was updated

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) - [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decodahealth/apis/decoda-api/revisions/4ab18c80f9e9?raw)
