Skip to main content
GET
/
inventory
/
members
/
{member_id}
Get Member
curl --request GET \
  --url https://api.decodahealth.com/inventory/members/{member_id} \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "id": "<string>",
  "patientId": "<string>",
  "membershipId": "<string>",
  "membership": {
    "name": "<string>",
    "price": 123,
    "id": "<string>",
    "externalId": "<string>",
    "description": "<string>",
    "globalDiscountPercentage": 0,
    "patientCreditAmount": 0,
    "patientCreditFrequency": "MONTHLY",
    "patientCreditExpiryDays": 123,
    "maxRenewals": 0,
    "autoRenew": true,
    "setupFee": 0,
    "freezeFee": 0,
    "minimumBillingCycles": 0,
    "billingFrequency": "MONTHLY",
    "textColor": "<string>",
    "isArchived": false,
    "ruleSetId": "<string>",
    "discounts": [
      {
        "membershipId": "<string>",
        "id": "<string>",
        "itemId": "<string>",
        "itemCategory": "<string>",
        "isPhysical": true,
        "discountPercentage": 123,
        "discountAmount": 123,
        "creditAmount": 123,
        "quantity": 123,
        "rollover": false,
        "rolloverExpiryDays": 123,
        "neverExpire": false,
        "group": "<string>",
        "isArchived": false
      }
    ],
    "memberCount": 0,
    "totalRevenue": 0
  },
  "startDate": "2023-11-07T05:31:56Z",
  "status": "ACTIVE",
  "autoRenew": true,
  "billingFrequency": "DAILY",
  "patient": {
    "id": "<string>",
    "type": "PROVIDER",
    "createdDate": "2023-11-07T05:31:56Z",
    "firstName": "<string>",
    "lastName": "<string>",
    "phoneNumber": "<string>",
    "email": "<string>",
    "locationId": "<string>",
    "externalId": "<string>",
    "address": "<string>",
    "addressLineTwo": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zipCode": "<string>",
    "country": "<string>",
    "addressValid": true,
    "meta": {},
    "isArchived": true,
    "primaryLocationId": "<string>",
    "gender": "<string>",
    "dateOfBirth": "2023-12-25",
    "patientMedications": [
      "<string>"
    ],
    "onSchedulingBlacklist": true,
    "surchargeDisabled": true,
    "tags": [
      {
        "id": "<string>",
        "name": "<string>",
        "isActive": true,
        "createdDate": "2023-11-07T05:31:56Z",
        "emoji": "<string>",
        "color": "<string>",
        "updatedDate": "2023-11-07T05:31:56Z"
      }
    ],
    "creditBalance": 123,
    "preferredProviderId": "<string>"
  },
  "charges": [
    {
      "id": "<string>",
      "patientId": "<string>"
    }
  ],
  "soldByProviderId": "<string>",
  "endDate": "2023-11-07T05:31:56Z",
  "nextBillingDate": "2023-11-07T05:31:56Z",
  "unfreezeDate": "2023-11-07T05:31:56Z",
  "soldByProvider": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "createdDate": "2023-11-07T05:31:56Z",
  "updatedDate": "2023-11-07T05:31:56Z",
  "paymentMethod": {
    "id": "<string>",
    "patientId": "<string>",
    "rainforestPaymentMethodId": "<string>",
    "brand": "<string>",
    "last4": "<string>",
    "expMonth": 123,
    "expYear": 123,
    "accountHolderType": "<string>",
    "accountNumberLast4": 123,
    "bankName": "<string>",
    "routingNumber": 123,
    "description": "<string>",
    "type": "CARD",
    "isDefault": false,
    "isArchived": false
  },
  "logs": [
    {
      "id": "<string>",
      "logType": "STATUS_CHANGE",
      "createdDate": "2023-11-07T05:31:56Z"
    }
  ]
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

member_id
string
required

Response

Successful Response

id
string
required

Unique identifier for the member

patientId
string
required

ID of the patient

membershipId
string
required

ID of the membership

membership
MembershipDetail · object
required

Membership information

startDate
string<date-time>
required

When the patient joined the membership

status
enum<string>
required

Current status of the membership

Available options:
ACTIVE,
EXPIRED,
CANCELLED,
DELINQUENT,
FROZEN
autoRenew
boolean
required

Whether the membership auto-renews

billingFrequency
enum<string>
required

Billing frequency for this member

Available options:
DAILY,
WEEKLY,
BIWEEKLY,
MONTHLY,
QUARTERLY,
SEMI_ANNUALLY,
YEARLY
patient
PatientSummary · object
required

Patient information

charges
ChargeTiny · object[]
required

Charges for this member

soldByProviderId
string | null

ID of the provider who sold this membership

endDate
string<date-time> | null

When the membership ended (if applicable)

nextBillingDate
string<date-time> | null

Next scheduled billing date (if custom)

unfreezeDate
string<date-time> | null

When the membership should be automatically unfrozen

soldByProvider
ProviderCreator · object

Provider who sold this membership

createdDate
string<date-time> | null

When the member record was created

updatedDate
string<date-time> | null

When the member record was last updated

paymentMethod
PaymentMethodSummary · object

Payment method for this member

logs
MemberLogTiny · object[]

Activity logs for this member