Create a payin configuration for an embedded payment component.
This is a public endpoint that allows external websites to create payment configurations for collecting payments from patients.
Args: patient_id: The patient’s ID amount_cents: The payment amount in cents is_surcharged: Whether to apply surcharge fees (default: True, uses tenant settings)
amount_cents for a single, flat payment. The embed shows a “Custom Amount” line item.
charge_id to use a pre-created charge with line items, discounts, and taxes. The embed displays the full charge breakdown.
/embed/pay/{patientId}) accepts these query parameters:
| Parameter | Description |
|---|---|
amount | Payment amount in cents (required when charge_id is not used) |
charge_id or chargeId | Pre-created charge ID for itemized charges |
allowedMethods or allowed_methods | Comma-separated payment methods: CARD, ACH, APPLE_PAY. Use CARD to disable ACH. |
theme | light or dark |
showSummary | true (default) or false to hide the payment summary header |
charge_id is used, the response includes a charge object with items, totalOutstanding, and totalDiscount for display in your UI.The tenant you are making this request on behalf of
Your api key