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
}List deposits for a specific month. Month filter is required.
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
}The tenant you are making this request on behalf of
Your api key
asc, desc PROCESSING, IN_REVIEW, SUCCEEDED, FAILED Successful Response
Show child attributes
Unique identifier from Rainforest
Associated merchant account ID
Deposit amount in cents
Net amount after fees in cents
Currency code
Processing fee in cents
Deposit status
PROCESSING, IN_REVIEW, SUCCEEDED, FAILED Creation date from Rainforest
Last update date from Rainforest
Deposit description
External reference identifier
Subtotal (sum of payments - sum of refunds) in cents
Total fees (payment fees + refund fees + deposit fee) in cents
Amount deposited (net amount) in cents
Payments in this deposit
Show child attributes
The unique identifier for the payment.
The total amount of the payment.
The current status of the payment.
CANCELED, CREATED, FAILED, IN_REVIEW, PRESENTING, PROCESSING, SUCCEEDED The name of the payment medium.
The date and time the payment was created.
The fee charged to the patient for the transaction.
Show child attributes
The unique identifier for the user.
The type of user.
PROVIDER, PATIENT, ASSISTANT The date and time when the user was created.
The user's first name.
The user's last name.
The user's phone number.
The user's email address.
The location of the user.
The user's external identifier if available.
The user's primary address.
Additional address information.
The city of the user's address.
The state of the user's address.
The postal code of the user's address.
The country of the user's address.
Whether the user's address is valid.
Any additional metadata about the user relevant to your system.
Whether the user is archived.
The primary location of the user.
The gender of the patient.
The date of birth of the patient.
List of patient's self-reported medications.
Whether the patient is on the scheduling blacklist.
Whether surcharges are disabled for this patient.
List of patient tags
Show child attributes
Unique identifier for the patient tag
Name of the patient tag
Whether the tag is active
Date and time when the tag was created
Emoji associated with the tag
Color code for the tag (hex format)
Date and time when the tag was last updated
Patient's credit balance in cents.
The preferred provider ID for this patient.
The ID of the patient associated with the payment.
The ID of the payin associated with the payment.
The currency in which the payment was made.
The configuration ID for the payin.
The ID of the payment method used.
Stripe's payment intent ID if used.
Reason for payment failure if applicable.
The date and time the payment was last updated.
The fee charged by the payment processor.
Summary of the payment method used.
Show child attributes
CARD, ACH, APPLE_PAY List of refunds associated with the payment.
Show child attributes
DUPLICATE, DISPUTE, BOOKING_FEE, OTHER CANCELED, CREATED, FAILED, IN_REVIEW, PRESENTING, PROCESSING, SUCCEEDED Refunds in this deposit
Show child attributes
DUPLICATE, DISPUTE, BOOKING_FEE, OTHER CANCELED, CREATED, FAILED, IN_REVIEW, PRESENTING, PROCESSING, SUCCEEDED Show child attributes
The unique identifier for the user.
The type of user.
PROVIDER, PATIENT, ASSISTANT The date and time when the user was created.
The user's first name.
The user's last name.
The user's phone number.
The user's email address.
The location of the user.
The user's external identifier if available.
The user's primary address.
Additional address information.
The city of the user's address.
The state of the user's address.
The postal code of the user's address.
The country of the user's address.
Whether the user's address is valid.
Any additional metadata about the user relevant to your system.
Whether the user is archived.
The primary location of the user.
The gender of the patient.
The date of birth of the patient.
List of patient's self-reported medications.
Whether the patient is on the scheduling blacklist.
Whether surcharges are disabled for this patient.
List of patient tags
Show child attributes
Unique identifier for the patient tag
Name of the patient tag
Whether the tag is active
Date and time when the tag was created
Emoji associated with the tag
Color code for the tag (hex format)
Date and time when the tag was last updated
Patient's credit balance in cents.
The preferred provider ID for this patient.