Skip to main content
GET
/
billing
/
cart
Get Carts
curl --request GET \
  --url https://api.decodahealth.com/billing/cart \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "data": [
    {
      "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>"
      },
      "status": "DRAFT",
      "discountAmount": 123,
      "discountPercentage": 123,
      "taxAmount": 123,
      "total": 123,
      "subtotal": 123,
      "creator": {
        "id": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "email": "<string>",
        "createdDate": "2023-11-07T05:31:56Z"
      },
      "items": [],
      "quotes": [
        {
          "id": "<string>",
          "patientId": "<string>",
          "status": "DRAFT",
          "discountAmount": 123,
          "discountPercentage": 123,
          "taxAmount": 123,
          "total": 123,
          "creatorId": "<string>",
          "cartId": "<string>",
          "title": "<string>",
          "itemCount": 0,
          "packageCount": 0,
          "createdDate": "2023-11-07T05:31:56Z",
          "updatedDate": "2023-11-07T05:31:56Z",
          "validUntilDate": "2023-11-07T05:31:56Z",
          "sentDate": "2023-11-07T05:31:56Z",
          "viewedDate": "2023-11-07T05:31:56Z",
          "respondedDate": "2023-11-07T05:31:56Z",
          "internalNotes": "<string>",
          "creator": {
            "id": "<string>",
            "firstName": "<string>",
            "lastName": "<string>",
            "email": "<string>",
            "createdDate": "2023-11-07T05:31:56Z"
          },
          "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>"
          }
        }
      ],
      "createdDate": "2023-11-07T05:31:56Z",
      "updatedDate": "2023-11-07T05:31:56Z",
      "expiresDate": "2023-11-07T05:31:56Z",
      "notes": "<string>",
      "convertedChargeId": "<string>"
    }
  ],
  "total": 123
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Query Parameters

patient_id
string | null

Filter by patient ID

creator_id
string | null

Filter by creator ID

statuses
enum<string>[] | null

Filter by cart statuses

Status of a patient cart.

Available options:
DRAFT,
ABANDONED,
ACCEPTED,
REJECTED,
CONVERTED,
EXPIRED
page
integer
default:1

Page number

Required range: x >= 1
size
integer
default:20

Page size

Required range: 1 <= x <= 100
sort_by
string | null

Sort by field

sort_direction
string | null

Sort direction (asc/desc)

search
string | null

Search across patient name, cart ID, patient ID, creator name, status, and item names

Response

Successful Response

data
CartSummary · object[]
required
total
integer
required