{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-provider-partner-charges-controller-create-body-schema.json", "title": "Create_PartnerCharge", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/hint-health-partnercharge-api-openapi.yml#/components/schemas/Provider.PartnerChargesController.create_body", "type": "object", "properties": { "amount_in_cents": { "type": "integer", "format": "int32" }, "description": { "type": "string" }, "patient": { "$ref": "#/$defs/Association" }, "integration_record_id": { "type": "string" }, "lines": { "type": "array", "items": { "$ref": "#/$defs/PartnerChargeLine" } }, "cost_in_cents": { "type": "integer", "format": "int32" } }, "required": [ "amount_in_cents", "description", "integration_record_id" ], "$defs": { "Association": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "PartnerChargeLine": { "type": "object", "properties": { "quantity": { "type": "integer" }, "price_in_cents": { "type": "integer" }, "description": { "type": "string" }, "charge_item": { "type": "object", "properties": { "id": { "type": "string", "description": "Optional if name, code and code_type are specified" }, "name": { "type": "string", "description": "Required if no ID" }, "code": { "type": "string", "description": "Required if no ID" }, "code_type": { "type": "string", "description": "Required if no ID", "enum": [ "cpt", "ndc", "loinc", "snowmed" ] }, "manufacturer": { "type": "string" }, "days_supply": { "type": "integer" } }, "required": [ "id", "name", "code", "code_type" ] } }, "required": [ "id", "type" ] } } }