563848e0ecc0
Terminate a facility location (full or network-only)
Supports two modes controlled by which dates are provided in the request body: (1) Full termination — provide facilityTerminationDate to terminate the facility–location relationship and cascade to all network/plan participation records in one atomic batch. (2) Network-only termination — omit facilityTerminationDate and provide networkTerminationDate. Terminates TenantGroupLocationFacilityNetwork (TGLFN) for this facility at the location and cascades to plan and practitioner network participation (TenantGroupLocationNetworkPlan, TenantGroupLocationPractitionerNetwork, TenantGroupPractitionerNetwork). Does not write TenantGroupLocationNetwork (TGLN). The facility–location record itself remains active. Optionally scope to a single network by providing networkId. At least one date field is required. Does not terminate TenantGroupFacilityNetwork (whole-facility network enrollment).
Path parameters
Certify facility ID
Certify location ID
Headers
Request body
Example request
{
"facilityTerminationDate": "2026-04-01",
"networkTerminationDate": "2026-04-01",
"terminationReason": "Contract Expired",
"consentConfirmed": true
}Response
Facility location terminated
Example response
{
"certifyFacilityId": "cf_9f1b2c3d",
"certifyLocationId": "loc_4d5e6f",
"facilityTerminationDate": "2026-08-01",
"networkTerminationDate": "2026-08-01",
"terminatedLocationFacilityNetworks": 2,
"terminatedLocationNetworks": 2,
"terminatedLocationNetworkPlans": 1,
"terminatedLocationPractitionerNetworks": 5,
"terminatedPractitionerNetworks": 5,
"terminatedGroupFacilityLocations": 1,
"tenantFacilityLocationUpdated": true
}