Skip to main content
POST
Add a billing line

Authorizations

X-API-Key
string
header
required

Public API key: cxp_<hex> (firm-scoped) or cxpp_<hex> (provider-scoped). Required on every request.

Path Parameters

caseId
string<uuid>
required

Med case UUID

appointmentId
string<uuid>
required

Appointment UUID

Body

application/json
kind
enum<string>
required

PRESCRIPTION_COST lines are created with prescriptions and cannot be posted.

Available options:
VISIT_FEE,
PROCEDURE,
OTHER
description
string
required
Required string length: 1 - 500
costBilled
string | null

Decimal string, e.g. "150.00". Strings, not numbers — matches the billing webhooks. Up to 8 integer digits (decimal(10,2) ceiling).

Pattern: ^\d{1,8}(\.\d{1,2})?$
amountPaid
string | null

Decimal string, e.g. "150.00". Strings, not numbers — matches the billing webhooks. Up to 8 integer digits (decimal(10,2) ceiling).

Pattern: ^\d{1,8}(\.\d{1,2})?$
paidDate
string<date> | null

Response

Created billing line

data
object
required
meta
object
required