v1

latestOpenAPI 3.1.0MIT2026-07-22172693.3 KB

Webhook endpoint for processing patient payments from external systems (e.g., Stripe via Elation). Updates the associated claim with payment information and handles overpayments by creating unallocated patient credits.

post/api/webhooks/patient-payment

Request body

billIdstring required

Elation bill.id that maps to Claim.identifier with system 'https://fhir.cairhealth.com/fhir/identifier/claim-id'

paymentAmountnumber required

Payment amount in USD

paymentDatestring date

ISO 8601 date string (e.g., '2024-01-15'). Defaults to current date if not provided.

paymentMethodstring

Payment method (e.g., 'Credit Card', 'Debit Card', 'Stripe', 'Check', 'Cash')

paymentTraceIdstring

Stripe payment intent ID or transaction ID (e.g., 'pi_1234567890')

Response

Payment processed successfully

successboolean required

Indicates whether the payment was processed successfully

messagestring required

Success message