Get Chapters (Safe Zone)

Please use this (https://blkem.com/mobile_api/get_chapters) API for fetching chapters


Get parameters

Field Value Remarks
session_id ‚ÄčAccess token ID E.g. de25cc16eb00960f076...
page_size ‚ÄčTotal records limit for each request Recommended: 20
offset Last record offset ID This is only needed when loading records of the pagination system.
city Filter records by city
state Filter records by state
zip Filter records by zip
order 'ASC' or 'DESC' Default order by is with ID and if nearby records are pulled order by will be by distance
lat User's latitude Required if nearby records to be pulled
lng User's longitude Required if nearby records to be pulled

Success response

{
    "code": 200,
    "message": "Fetched successfully",
    "data": [
        {
            "id": 1,
            "name": "Las Vegas Chapter",
            "location_id": 5,
            "operator_id": 8604,
            "primary_phone": "12312312",
            "secondary_phone": null,
            "active": 1,
            "thumbnail": "http://localhost/blkem-new/upload/images/2022/09/691Q5N6CjuZtOra2ShMf_27_b262dedc282a48a8e31ba631dd607ac9_image_thumbnail.png",
            "icon": "http://localhost/blkem-new/upload/images/2022/09/EtzPJQNBUy3aDrmPz7vL_27_b262dedc282a48a8e31ba631dd607ac9_image_thumbnail.png",
            "operator_name": "Harris Walker",
            "location_name": "134 Dixie Road",
            "location_address": "134 Dixie Road",
            "location_city": "Lubec",
            "location_state": "ME",
            "location_zip": "04652",
            "location_lat": "-67.065494",
            "location_lng": "44.803437",
            "distance": 0,
            "location_formatted": "134 Dixie Road Lubec ME, 04652"
        },
        {
            "id": 5,
            "name": "123 Main Street12",
            "location_id": 5,
            "operator_id": 6098,
            "primary_phone": "123123",
            "secondary_phone": "123123",
            "active": 1,
            "thumbnail": "",
            "icon": "",
            "operator_name": "John Abraham",
            "location_name": "134 Dixie Road",
            "location_address": "134 Dixie Road",
            "location_city": "Lubec",
            "location_state": "ME",
            "location_zip": "04652",
            "location_lat": "-67.065494",
            "location_lng": "44.803437",
            "distance": 0,
            "location_formatted": "134 Dixie Road Lubec ME, 04652"
        },
        {
            "id": 4,
            "name": "New chapter test",
            "location_id": 6,
            "operator_id": 8612,
            "primary_phone": "123123123",
            "secondary_phone": "123123123",
            "active": 1,
            "thumbnail": "http://localhost/blkem-new/upload/images/2022/09/vKqd86tLON37CTvBTAcU_27_a1e77431ad2509fd8e41f7b5104a05b0_image_thumbnail.png",
            "icon": "http://localhost/blkem-new/upload/images/2022/09/nnBzR73vFjrmA5xHYtsU_27_a1e77431ad2509fd8e41f7b5104a05b0_image_thumbnail.png",
            "operator_name": "asd asd",
            "location_name": "123 Main Street",
            "location_address": "123 Main Street",
            "location_city": "Lubec",
            "location_state": "ME",
            "location_zip": "04652",
            "location_lat": "44.856435",
            "location_lng": "-66.99302",
            "distance": 9581.859044663131,
            "location_formatted": "123 Main Street Lubec ME, 04652"
        },
        {
            "id": 6,
            "name": "test",
            "location_id": 6,
            "operator_id": 8612,
            "primary_phone": "13123123213",
            "secondary_phone": null,
            "active": 1,
            "thumbnail": "",
            "icon": "",
            "operator_name": "asd asd",
            "location_name": "123 Main Street",
            "location_address": "123 Main Street",
            "location_city": "Lubec",
            "location_state": "ME",
            "location_zip": "04652",
            "location_lat": "44.856435",
            "location_lng": "-66.99302",
            "distance": 9581.859044663131,
            "location_formatted": "123 Main Street Lubec ME, 04652"
        }
    ]
}

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }

    {
        "code": 404,
        "message": "No data found",
        "data": []
    }

    {
        "code": 500,
        "message": "latitude, longitude should be used all together",
        "data": []
    }