{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-public-membership-blueprint-one-schema.json", "title": "Public.MembershipBlueprint_one", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/hint-health-membership-api-openapi.yml#/components/schemas/Public.MembershipBlueprint_one", "type": "object", "properties": { "id": { "type": "string" }, "bill_date": { "type": "string", "format": "date" }, "billed_through_date": { "type": "string", "format": "date" }, "billing_start_date": { "type": "string", "format": "date" }, "bills_at_end_of_period": { "type": "boolean" }, "contract_expiration_action": { "type": "string" }, "contract_expires": { "type": "string", "format": "date" }, "contract_period_in_months": { "type": "integer", "format": "int32" }, "created_at": { "type": "string", "format": "date-time" }, "end_date": { "type": "string", "format": "date" }, "enrollment_status": { "type": "string" }, "fixed_period_rate_in_cents": { "type": "integer", "format": "int32" }, "fixed_registration_fee_in_cents": { "type": "integer", "format": "int32" }, "group_code": { "type": "string" }, "is_confirmed": { "type": "string" }, "is_current": { "type": "boolean" }, "is_processing": { "type": "boolean" }, "is_restartable": { "type": "boolean" }, "list_price_in_cents": { "type": "integer", "format": "int32" }, "next_bill_date": { "type": "string", "format": "date" }, "period_in_months": { "type": "string" }, "period_rate_in_cents": { "type": "integer", "format": "int32" }, "rate_in_cents": { "type": "integer", "format": "int32" }, "source_status": { "type": "string" }, "start_date": { "type": "string", "format": "date" }, "status": { "type": "string" }, "updated_at": { "type": "string", "format": "date-time" }, "coupon": { "$ref": "#/$defs/Public.CouponBlueprint_one" }, "membership_patients": { "$ref": "#/$defs/Public.MembershipPatientBlueprint_for_membership_one" }, "owner": { "$ref": "#/$defs/Public.PatientBlueprint_leaf" }, "plan": { "$ref": "#/$defs/Public.PlanBlueprint_min" }, "sponsorship": { "$ref": "#/$defs/Public.CompanyAccountBlueprint_for_membership_one" }, "upcoming_bills": { "$ref": "#/$defs/Public.MembershipBillBlueprint_shared_with_invoice" } }, "$defs": { "Public.CompanyAccountBlueprint_for_membership_one": { "type": "object", "properties": { "id": { "type": "string" }, "company": { "$ref": "#/$defs/Public.CompanyBlueprint_leaf" } } }, "Public.CompanyAccountBlueprint_min": { "type": "object", "properties": { "id": { "type": "string" } } }, "Public.CompanyBlueprint_leaf": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "Public.CompanySponsorshipBlueprint_for_patient": { "type": "object", "properties": { "id": { "type": "string" }, "external_id": { "type": "string" }, "is_subscriber": { "type": "boolean" }, "type": { "type": "string" }, "company": { "$ref": "#/$defs/Public.CompanyBlueprint_leaf" }, "family": { "$ref": "#/$defs/Public.CompanyAccountBlueprint_min" } } }, "Public.CouponBlueprint_one": { "type": "object", "properties": { "id": { "type": "string" }, "code": { "type": "string" }, "description": { "type": "string" }, "amount_off_in_cents": { "type": "integer", "format": "int32" }, "apply_to_each_patient": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "duration_in_months": { "type": "integer", "format": "int32" }, "percent_off": { "type": "number", "format": "float" }, "updated_at": { "type": "string", "format": "date-time" }, "is_redeemable": { "type": "boolean" }, "is_archived": { "type": "boolean" }, "redeemable_from": { "type": "string", "format": "date-time" }, "redeemable_until": { "type": "string", "format": "date-time" } } }, "Public.LeadSourceBlueprint_one": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } } }, "Public.MembershipBillBlueprint_shared_with_invoice": { "type": "object", "properties": { "amount_in_cents": { "type": "integer", "format": "int32" }, "charges_amount_in_cents": { "type": "integer", "format": "int32" }, "coupon_discount_in_cents": { "type": "integer", "format": "int32" }, "coupon_discount_months": { "type": "integer", "format": "int32" }, "coupon_percent_off": { "type": "integer", "format": "int32" }, "date": { "type": "string", "format": "date" }, "end_date": { "type": "string", "format": "date" }, "list_price_in_cents": { "type": "integer", "format": "int32" }, "membership_amount_in_cents": { "type": "integer", "format": "int32" }, "period_in_months": { "type": "integer", "format": "int32" }, "rate_in_cents": { "type": "integer", "format": "int32" }, "registration_fee_in_cents": { "type": "integer", "format": "int32" }, "start_date": { "type": "string", "format": "date" }, "customer_invoice": { "$ref": "#/$defs/Public.Payable.InvoiceBlueprint_for_membership_bill" } } }, "Public.MembershipPatientBlueprint_for_membership_one": { "type": "object", "properties": { "id": { "type": "string" }, "member_type": { "type": "string" }, "fixed_period_rate_in_cents": { "type": "integer", "format": "int32" }, "list_price_in_cents": { "type": "integer", "format": "int32" }, "period_rate_in_cents": { "type": "integer", "format": "int32" }, "revenue_in_cents": { "type": "integer", "format": "int32" }, "start_date": { "type": "string", "format": "date" }, "uses_tobacco": { "type": "boolean" }, "end_date": { "type": "string" }, "patient": { "$ref": "#/$defs/Public.PatientBlueprint_leaf" } } }, "Public.PatientBlueprint_leaf": { "type": "object", "properties": { "id": { "type": "string" }, "address_city": { "type": "string" }, "address_country": { "type": "string" }, "address_line1": { "type": "string" }, "address_line2": { "type": "string" }, "address_state": { "type": "string" }, "address_zip": { "type": "string" }, "age": { "type": "string" }, "chosen_first_name": { "type": "string" }, "chosen_last_name": { "type": "string" }, "chosen_middle_name": { "type": "string" }, "chosen_suffix": { "type": "string" }, "chosen_title": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "dob": { "type": "string", "format": "date" }, "electronic_communication_consent_accepted": { "type": "string" }, "electronic_communication_consent_accepted_at": { "type": "string" }, "email": { "type": "string" }, "engaged": { "type": "boolean" }, "external_link_id": { "type": "string" }, "first_name": { "type": "string" }, "gender": { "type": "string" }, "gender_identity": { "type": "string" }, "gender_other": { "type": "string" }, "health_insurance_group_id": { "type": "string" }, "health_insurance_member_id": { "type": "string" }, "health_insurance_payer_id": { "type": "string" }, "health_insurance_payer_name": { "type": "string" }, "hipaa_authorization_accepted": { "type": "boolean" }, "hipaa_authorization_accepted_at": { "type": "string", "format": "date-time" }, "import_id": { "type": "string" }, "import_source": { "type": "string" }, "joined_practice_date": { "type": "string", "format": "date" }, "last_engagement_date": { "type": "string", "format": "date" }, "last_name": { "type": "string" }, "lead_source_other": { "type": "string" }, "master_record_sponsor": { "type": "string" }, "membership_status": { "type": "string" }, "middle_name": { "type": "string" }, "name": { "type": "string" }, "patient_agreement_accepted": { "type": "boolean" }, "patient_agreement_accepted_at": { "type": "string", "format": "date-time" }, "preferred_language": { "type": "string" }, "pronouns": { "type": "string" }, "provider_web_link": { "type": "string" }, "sex": { "type": "string" }, "suffix": { "type": "string" }, "terms_accepted": { "type": "boolean" }, "terms_accepted_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" }, "uses_tobacco": { "type": "boolean" }, "lead_source": { "$ref": "#/$defs/Public.LeadSourceBlueprint_one" }, "phones": { "$ref": "#/$defs/Public.PhoneBlueprint_leaf" }, "sponsorships": { "$ref": "#/$defs/Public.CompanySponsorshipBlueprint_for_patient" } } }, "Public.Payable.InvoiceBlueprint_for_membership_bill": { "type": "object", "properties": { "id": { "type": "string" }, "human_status": { "type": "string" }, "invoice_number": { "type": "string" }, "status": { "type": "string" }, "amount_in_cents": { "type": "integer", "format": "int32" }, "date": { "type": "string", "format": "date" }, "payment_scheduled_on": { "type": "string" }, "type": { "type": "string" } } }, "Public.PhoneBlueprint_leaf": { "type": "object", "properties": { "number": { "type": "string" }, "type": { "type": "string" } } }, "Public.PlanBlueprint_min": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "plan_type": { "type": "string" } } } } }