Skip to main content
GET
/
inventory
/
members
/
{member_id}
/
logs
Get Member Logs
curl --request GET \
  --url https://api.decodahealth.com/inventory/members/{member_id}/logs \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
[
  {
    "id": "<string>",
    "memberId": "<string>",
    "logType": "STATUS_CHANGE",
    "creatorId": "<string>",
    "creator": {
      "id": "<string>",
      "firstName": "<string>",
      "lastName": "<string>"
    },
    "chargeId": "<string>",
    "paymentMethodId": "<string>",
    "charge": {
      "patientId": "<string>",
      "totalOutstanding": 123,
      "id": "<string>",
      "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>"
      },
      "total": 0,
      "description": "<string>",
      "status": "OUTSTANDING",
      "discountAmount": 0,
      "discountPercentage": 0,
      "externalId": "<string>",
      "externalCreatedDate": "2023-11-07T05:31:56Z",
      "ruleSetId": "<string>",
      "createdDate": "2023-11-07T05:31:56Z",
      "creatorId": "<string>",
      "items": [],
      "tips": [],
      "locationId": "<string>",
      "eventId": "<string>",
      "memberId": "<string>",
      "comment": "<string>",
      "meta": {},
      "merchantAccountId": "<string>"
    },
    "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
    },
    "oldPaymentMethod": {
      "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
    },
    "oldStatus": "ACTIVE",
    "newStatus": "ACTIVE",
    "newQuantityRemaining": 123,
    "oldQuantityRemaining": 123,
    "newExpiryDate": "2023-11-07T05:31:56Z",
    "oldExpiryDate": "2023-11-07T05:31:56Z",
    "newBillingDate": "2023-11-07T05:31:56Z",
    "oldBillingDate": "2023-11-07T05:31:56Z",
    "comment": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "updatedDate": "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 log

memberId
string
required

ID of the member

logType
enum<string>
required

Type of log

Available options:
STATUS_CHANGE,
MANUAL_PAYMENT,
RENEWED,
PAYMENT_METHOD_CHANGE,
DISCOUNT_USED,
DISCOUNT_RESTORED,
DISCOUNT_MODIFIED,
ENROLLED,
BILLING_DATE_CHANGE
creatorId
string
required

ID of the creator

creator
ProviderCreator · object
required

Creator details

chargeId
string | null

ID of the charge

paymentMethodId
string | null

ID of the payment method

charge
ChargeSummary · object

Charge details

paymentMethod
PaymentMethodSummary · object

Payment method details

oldPaymentMethod
PaymentMethodSummary · object

Old payment method details

oldStatus
enum<string> | null

Old status

Available options:
ACTIVE,
EXPIRED,
CANCELLED,
DELINQUENT,
FROZEN
newStatus
enum<string> | null

New status

Available options:
ACTIVE,
EXPIRED,
CANCELLED,
DELINQUENT,
FROZEN
newQuantityRemaining
integer | null

New quantity remaining

oldQuantityRemaining
integer | null

Old quantity remaining

newExpiryDate
string<date-time> | null

New expiry date

oldExpiryDate
string<date-time> | null

Old expiry date

newBillingDate
string<date-time> | null

New billing date

oldBillingDate
string<date-time> | null

Old billing date

comment
string | null

Comment

createdDate
string<date-time> | null

When the log was created

updatedDate
string<date-time> | null

When the log was last updated