Skip to main content
GET
/
billing
/
deposits
List Deposits
curl --request GET \
  --url https://api.decodahealth.com/billing/deposits \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
[
  "2023-11-07T05:31:56Z"
]
'
{
  "data": [
    {
      "rainforestDepositId": "<string>",
      "merchantAccountId": "<string>",
      "amount": 123,
      "netAmount": 123,
      "id": "<string>",
      "createdDate": "2023-11-07T05:31:56Z",
      "currency": "USD",
      "fee": 0,
      "status": "PROCESSING",
      "rainforestCreatedDate": "2023-11-07T05:31:56Z",
      "rainforestUpdatedDate": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "externalReference": "<string>",
      "updatedDate": "2023-11-07T05:31:56Z",
      "subtotal": 123,
      "totalFees": 123,
      "amountDeposited": 123,
      "payments": [
        {
          "id": "<string>",
          "amount": 123,
          "status": "CANCELED",
          "paymentMedium": "<string>",
          "createdDate": "2023-11-07T05:31:56Z",
          "feeToPatient": 123,
          "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>"
          },
          "patientId": "<string>",
          "payinId": "<string>",
          "currency": "USD",
          "payinConfigId": "<string>",
          "paymentMethodId": "<string>",
          "stripePaymentIntentId": "<string>",
          "failedReason": "<string>",
          "updatedDate": "2023-11-07T05:31:56Z",
          "fee": 0,
          "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
          },
          "refunds": []
        }
      ],
      "refunds": [
        {
          "id": "<string>",
          "paymentId": "<string>",
          "amount": 123,
          "reason": "DUPLICATE",
          "createdDate": "2023-11-07T05:31:56Z",
          "status": "CANCELED",
          "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>"
          },
          "rainforestRefundId": "<string>",
          "fee": 0
        }
      ]
    }
  ],
  "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

page
integer | null
per_page
integer | null
sort_by
string | null
sort_direction
enum<string> | null
Available options:
asc,
desc
location_id
string | null
merchant_account_id
string | null
status
enum<string> | null
Available options:
PROCESSING,
IN_REVIEW,
SUCCEEDED,
FAILED
rainforest_deposit_id
string | null
month
string | null
tz
string | null

Body

application/json

Response

Successful Response

data
DepositDetails · object[]
required
total
integer
required