Skip to main content
GET
/
webhook
/
decoda
/
{webhook_id}
/
delivery-attempts
/
list
Webhook Events List
curl --request GET \
  --url https://api.decodahealth.com/webhook/decoda/{webhook_id}/delivery-attempts/list \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
[
  {
    "id": "<string>",
    "type": "PATIENT_CREATED",
    "data": {
      "id": "<string>",
      "amount": 123,
      "status": "CANCELED",
      "paymentMedium": "<string>",
      "createdDate": "2023-11-07T05:31:56Z",
      "feeToPatient": 123,
      "patientId": "<string>",
      "payinId": "<string>",
      "currency": "USD",
      "payinConfigId": "<string>",
      "paymentMethodId": "<string>",
      "stripePaymentIntentId": "<string>",
      "failedReason": "<string>",
      "updatedDate": "2023-11-07T05:31:56Z",
      "fee": 0
    },
    "createdDate": "2023-11-07T05:31:56Z",
    "alertId": "<string>",
    "deliveredDate": "2023-11-07T05:31:56Z",
    "lastDeliveryAttemptDate": "2023-11-07T05:31:56Z",
    "lastDeliveryAttemptStatus": 123,
    "lastDeliveryAttemptError": "<string>"
  }
]

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

webhook_id
string
required

Query Parameters

event_type
enum<string> | null

The type of event to filter by

Available options:
PAYMENT_CREATED,
PAYMENT_COMPLETED,
PAYMENT_FAILED,
CHARGE_CREATED,
ADJUSTMENT_CREATED,
REFUND_CREATED,
PATIENT_CREATED,
PATIENT_UPDATED
is_delivered
boolean | null

Filter by if the event has not been delivered (i.e. we have not recieved a 200 from you for this event.)

created_before
string<date-time> | null

Get Events created before this date

created_after
string<date-time> | null

Get Events created after this date

last_delivery_attempt_status
string | null

Filter by the HTTP status of the most recent delivery attempt (i.e. 200, 404, 500, etc.)

last_delivery_attempt_error
string | null

Filter by the error message of the most recent delivery attempt

delivery_date_before
string<date-time> | null

Get Events with a delivery date before this date

delivery_date_after
string<date-time> | null

Get Events with a delivery date after this date

sort_by
string | null
default:created_date

The field to sort by

sort_direction
enum<string> | null
default:desc

The direction to sort by

Available options:
asc,
desc
limit
integer | null
default:10

The maximum number of results to return

offset
integer | null
default:0

The number of results to skip at the beginning

Response

Successful Response

id
string
required

Unique identifier for the webhook delivery attempt.

type
enum<string>
required

The type of event.

Available options:
PATIENT_CREATED,
PATIENT_UPDATED,
APPOINTMENT_CANCELLED,
APPOINTMENT_UPDATED,
APPOINTMENT_REQUEST,
APPOINTMENT_SCHEDULED,
SELF_SCHEDULED_APPOINTMENT,
SELF_SCHEDULED_APPOINTMENT_CANCELLED,
SELF_SCHEDULED_APPOINTMENT_UPDATED,
BLOCK_CREATED,
BLOCK_CANCELLED,
BLOCK_UPDATED,
SHIFT_CREATED,
SHIFT_CANCELLED,
SHIFT_UPDATED,
PAYMENT_CREATED,
PAYMENT_FAILED,
PAYMENT_SUCCEEDED,
PLANNED_PAYMENT_FAILED,
PLANNED_PAYMENT_SUCCEEDED,
CHARGE_CREATED,
REFUND_CREATED,
REFUND_FAILED,
REFUND_SUCCEEDED,
ADJUSTMENT_CREATED,
ADJUSTMENT_FAILED,
ADJUSTMENT_SUCCEEDED,
INVOICE_UPDATED,
INVOICE_STATUS_UPDATE,
INVOICE_SET_UPDATED,
CHARGE_PAYMENT_CREATED,
CALL_RECEIVED,
CALL_MADE,
CALL_ONGOING,
MESSAGE_RECEIVED,
MESSAGE_SENT,
MESSAGE_DELIVERED,
MESSAGE_FAILED,
EMAIL_RECEIVED,
EMAIL_SENT,
MAIL_SENT,
MAIL_DELIVERY_FAILED,
FORM_SUBMITTED,
NOTIFICATION,
APPOINTMENT_CHECKLIST_UPDATED,
LOW_PATIENT_REVIEW,
CHAT_UPDATE,
RAINFOREST_PAYIN_FAILED,
RAINFOREST_PAYIN_PROCESSING,
RAINFOREST_POS_PAYIN_CANCELLED,
RAINFOREST_DEPOSIT_IN_REVIEW,
RAINFOREST_DEPOSIT_SUCCEEDED,
RAINFOREST_DEPOSIT_FAILED,
STOCK_LOW,
STOCK_ADDED,
STOCK_ARCHIVED,
STOCK_LINKED_TO_ITEM,
STOCK_UNLINKED_FROM_ITEM,
STOCK_UPDATED,
STOCK_DRAWDOWN,
SHIPMENT_RECEIVED,
SHIPMENT_UPDATED,
SHIPMENT_ARCHIVED,
ITEM_CREATED,
ITEM_UPDATED,
ITEM_ARCHIVED,
INVENTORY_ACTION
data
Payment · object
required

The Alert's data associated with this WebhookDeliveryAttempt.

  • Payment
  • RefundSummary
  • AdjustmentSummary
  • ChargeSummary
  • ServiceDetail
  • MessageSummary
  • Payment
  • PatientSummary
  • InvoiceUpdate
  • LowPatientReviewData
  • InvoiceSetUpdate
  • Notification
  • CallSummary
  • EventDetail
  • UpdatedAppointment
  • AnsweredFormTiny
  • PlannedPaymentSummary
  • PayinEvent
  • ChatUpdate
  • InventoryLog
  • ChargePaymentUpdate
  • AppointmentChecklistUpdatedData
  • DepositEvent
createdDate
string<date-time>
required

The date and time when the event was created.

alertId
string
required

The Alert's id associated with this WebhookDeliveryAttempt.

deliveredDate
string<date-time> | null

The date and time when the event was delivered.

lastDeliveryAttemptDate
string<date-time> | null

The date and time when the last delivery attempt was made.

lastDeliveryAttemptStatus
integer | null

The HTTP status of the last delivery attempt.

lastDeliveryAttemptError
string | null

The error message from the last delivery attempt, if any.