Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTTP Status Code

Description

Response Example

200

Successful retrieval of a location record.

 

Code Block
[
  {
    "id": 1970,
    "organization_id": 969,
    "locationorganization_idname": 970,
    "source_service_id": 1106,
    "source_id_programAtSite": null"CHILDREN'S ADVOCACY CENTER OF SOUTHWEST MICHIGAN",
    "source_id_program": 7814332178174387,
    "source": "icarol",
    "program_id": null,
    "program"name": "CHILDREN'S ADVOCACY CENTER", OF SOUTHWEST   "name": "COUNSELING SERVICES AND PREVENTION FOR CHILDREN WHO ARE ABUSED"MICHIGAN",
    "alternate_namelatitude": null,
    "description": "Provides forensic interviews for sexually abused children, counseling services for sexually abused children, including adults survivors of child sexual abuse, and prevention education."42.0225356",
    "urllongitude": null,
    "email": null,
    "status": 1,
    "interpretation_services": null,
    "application_process": "Referral required from Child Protective Services or Law Enforcement for forensic interviewing services. Therapy services available to children and adult survivors of child sexual abuse."86.4205098",
    "waitalternate_timename": null,
    "fees": "No fees",
    "accreditations": null,
    "licenses": null,
    "eligibility": "Children and families of suspected child abuse in Southwest Michigan"BERRIEN COUNTY COUNCIL FOR CHILDREN, CHILDRENS ADVOCACY CENTER OF SOUTHWEST MICHIGAN",
    "languageschedule_notes": "Interpretation services available"Mon, Wed    "payment_accepted": "Not applicable",
    "required_document": "Referral information"9am-8pm; Tue, Thu-Fri 9am-5pm",
    "service_areaurl": "Berrien, Cass and Van Buren Countieswww.swmichigancac.org",
    "area_served_description": "Berrien,Located Casson andOld VanUS Buren31 Counties",near intersection of Marquette  "region": "GRYP",
    "address_1": "4938 Niles Road",
    "city": "Saint Joseph"Woods Road and US-31",
    "county": "Berrien",
    "postal_codeaccessibility_for_disabilities": "49085"null,
    "organization_nametransportation": "CHILDREN'SNo ADVOCACYpublic CENTER OF SOUTHWEST MICHIGANtransportation available",
    "location_nameregion": "CHILDREN'S ADVOCACY CENTER OF SOUTHWEST MICHIGANGRYP"
  }
]

 

403

Request is unauthorized and will not be processed. This will happen if the authorization header does not contain a valid client id and secret.

 

 

Code Block
{
  "message": "Forbidden"
}

 

 

400

Request is malformed and will not be processed.

 

Code Block
{
  "type": "cie-directory/validation-error",
  "title": "Invalid Parameter",
  "detail": "parameter per_page was greater then the max allowed for this endpoint. per_page: 10000 max_allowed: 100",
  "instance": "237869a1-67f0-4a68-9500-734b3956517b"
}

 

500

Internal Server Error

Code Block
  {
  "type": "cie-directory/unkown-error",
  "title": "There was an error retrieving the locations",
  "detail": "{\n\t\"stack\": \"Error: Error message\\n    at ServiceController.GetServicesAllComplete (/var/task/src/services/service-controller.js:214:13)\\n    at processTicksAndRejections (internal/process/task_queues.js:97:5)\\n    at async Runtime.exports.getServicesAllCompleteHandler [as handler] (/var/task/src/services/handler.js:73:22)\",\n\t\"message\": \"Error message\"\n}",
  "instance": "7a025b91-f1ff-4e4f-be75-42390fb02dd2"
}

 

...