Lead Service Api Documentation

Postman collection → OpenAPI spec →

Introduction

Full API documentation for your API

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer { BEARER_TOKEN }".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Customer Service

APIs for managing customer service

List All Customer Service.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
q
string

The search query.

Example:
John
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs?page=1&limit=10&q=John" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Data not found",
    "data": [],
    "error": ""
}

Store New Customer Service.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/cs
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"percent\": 0,
    \"officer_id\": 14,
    \"cs_channel\": [
        {
            \"cs_channel_id\": 12,
            \"is_active\": true,
            \"requirement\": []
        }
    ]
}"

Detail Customer Service.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the customer service.

Example:
1
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Customer service detail",
    "data": {
        "id": 1,
        "id_officer": 47,
        "counter": null,
        "percent": 30,
        "name": "zunililaifi",
        "username": "Celsy",
        "is_active": true,
        "channel": [
            {
                "id": 2,
                "channel_id": "Qontak",
                "name": "Qontak",
                "description": "{\"qontak_staff_id\" : \"132321231\"}",
                "is_active": false,
                "requirement": "{\"qontak_staff_id\": \"e363f52d-7f2e-4d85-bddc-6327a1a24d19\"}"
            },
            {
                "id": 1,
                "channel_id": "Sleekflow",
                "name": "Sleekflow",
                "description": "{\"sleekflow_staff_id\":\"3123212321\"}",
                "is_active": false,
                "requirement": "{\"sleekflow_staff_id\": \"f5ea904c-772f-4a6d-96ce-49394ca88200\"}"
            }
        ]
    },
    "error": ""
}

Update Customer Service.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/cs/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the customer service.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs/1" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"percent\": 1,
    \"cs_channel\": [
        {
            \"cs_channel_id\": 13,
            \"is_active\": false,
            \"requirement\": []
        }
    ]
}"

Set Customer Service Active/InActive.

PUT
https://debug-lead.commercial.kampunginggrislc.com
/api/cs/{cs_id}/set-active
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

cs_id
string
required

The ID of the customer service.

Example:
1
Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs/1/set-active" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

List Customer Service with team, group, and branch.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs/team-group/list

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs/team-group/list" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of customer service with team, group",
    "data": [
        {
            "id": 12,
            "id_officer": 246,
            "counter": null,
            "percent": 100,
            "name": "Retha Febrianasari",
            "username": "Ara",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 14,
            "id_officer": 1,
            "counter": null,
            "percent": 10,
            "name": "Team IT",
            "username": "IT IT",
            "is_active": true,
            "team_name": null,
            "team_id": null,
            "group_name": null,
            "group_id": null
        },
        {
            "id": 17,
            "id_officer": 254,
            "counter": null,
            "percent": 100,
            "name": "Nashiha Afidah",
            "username": "Ryas",
            "is_active": true,
            "team_name": "Branch CS 2",
            "team_id": 17,
            "group_name": "Branch Group 2",
            "group_id": 35
        },
        {
            "id": 16,
            "id_officer": 255,
            "counter": null,
            "percent": 100,
            "name": "Andy yusmant",
            "username": "Jeka",
            "is_active": true,
            "team_name": "Retired CS",
            "team_id": 13,
            "group_name": "Retired Group CS",
            "group_id": 29
        },
        {
            "id": 15,
            "id_officer": 256,
            "counter": null,
            "percent": 100,
            "name": "Tiara Selling",
            "username": "Kenzie",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 13,
            "id_officer": 249,
            "counter": null,
            "percent": 100,
            "name": "Fitria Rachmawati Oemardi",
            "username": "Yuki",
            "is_active": true,
            "team_name": "Branch CS 1",
            "team_id": 16,
            "group_name": "Branch Group 1",
            "group_id": 33
        },
        {
            "id": 11,
            "id_officer": 48,
            "counter": null,
            "percent": 100,
            "name": "Devina Dyah",
            "username": "Zea",
            "is_active": true,
            "team_name": "Branch CS 1",
            "team_id": 16,
            "group_name": "Branch Group 1",
            "group_id": 33
        },
        {
            "id": 9,
            "id_officer": 66,
            "counter": null,
            "percent": 100,
            "name": "Ms. Rossy Selling",
            "username": "Nada",
            "is_active": true,
            "team_name": "Branch SPV",
            "team_id": 19,
            "group_name": "Branch Group 1",
            "group_id": 33
        },
        {
            "id": 7,
            "id_officer": 248,
            "counter": null,
            "percent": 100,
            "name": "eko wicaksono",
            "username": "Kia",
            "is_active": true,
            "team_name": "Branch CS 1",
            "team_id": 16,
            "group_name": "Branch Group 1",
            "group_id": 33
        },
        {
            "id": 4,
            "id_officer": 46,
            "counter": null,
            "percent": 100,
            "name": "ajaynursyamsu2211",
            "username": "Max",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 3,
            "id_officer": 61,
            "counter": null,
            "percent": 100,
            "name": "dewintan",
            "username": "Fita",
            "is_active": true,
            "team_name": "HQ SPV",
            "team_id": 18,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 2,
            "id_officer": 247,
            "counter": null,
            "percent": 100,
            "name": "Irfan Mohamad Sukri",
            "username": "Evan",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 8,
            "id_officer": 44,
            "counter": null,
            "percent": 20,
            "name": "jehanadani",
            "username": "Lucy",
            "is_active": true,
            "team_name": "Frontline",
            "team_id": 12,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 6,
            "id_officer": 67,
            "counter": null,
            "percent": 90,
            "name": "jihanabdiah11",
            "username": "tia",
            "is_active": true,
            "team_name": "Retired CS",
            "team_id": 13,
            "group_name": "Retired Group CS",
            "group_id": 29
        },
        {
            "id": 1,
            "id_officer": 47,
            "counter": null,
            "percent": 30,
            "name": "zunililaifi",
            "username": "Celsy",
            "is_active": true,
            "team_name": "Frontline",
            "team_id": 12,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 10,
            "id_officer": 250,
            "counter": null,
            "percent": 100,
            "name": "Ismi Sofiatul Q.",
            "username": "Hana",
            "is_active": true,
            "team_name": "Branch CS 2",
            "team_id": 17,
            "group_name": "Branch Group 2",
            "group_id": 35
        },
        {
            "id": 5,
            "id_officer": 69,
            "counter": null,
            "percent": 100,
            "name": "izanugroho92",
            "username": "ryas",
            "is_active": true,
            "team_name": "Retired CS",
            "team_id": 13,
            "group_name": "Retired Group CS",
            "group_id": 29
        },
        {
            "id": 18,
            "id_officer": 328,
            "counter": null,
            "percent": 0,
            "name": "Thomas Aldi Setiawan",
            "username": "Vyn",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 19,
            "id_officer": 327,
            "counter": null,
            "percent": 0,
            "name": "Evryta P.",
            "username": "Gea",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 20,
            "id_officer": 345,
            "counter": null,
            "percent": 0,
            "name": "Ana Ismatul Mubarokah",
            "username": "CS Tia",
            "is_active": true,
            "team_name": "HQ CS",
            "team_id": 15,
            "group_name": "HQ Group",
            "group_id": 32
        },
        {
            "id": 21,
            "id_officer": 348,
            "counter": null,
            "percent": 0,
            "name": "Nur Rafida",
            "username": "Oliv",
            "is_active": true,
            "team_name": "Branch CS 2",
            "team_id": 17,
            "group_name": "Branch Group 2",
            "group_id": 35
        }
    ],
    "error": ""
}

Customer Service Channel

APIs for managing customer service channel

List Active Customer Service Channel.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-channel/active

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-channel/active" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of active customer service channel",
    "data": [
        {
            "id": 10,
            "channel_id": "haloai",
            "name": "Halo AI",
            "description": "{\"haloai_staff_id\" : \"132321231\"}",
            "is_active": true,
            "created_at": "2026-01-19T08:03:03.000000Z",
            "updated_at": "2026-01-19T08:03:03.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        },
        {
            "id": 9,
            "channel_id": "onesender",
            "name": "One Sender",
            "description": "{\"onesender_staff_id\":\"3123212321\", \"unique_id\":\"wa5799\"}",
            "is_active": true,
            "created_at": "2025-04-17T03:47:19.000000Z",
            "updated_at": "2025-04-17T08:12:32.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        }
    ],
    "error": ""
}

List Customer Service Channel.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-channel

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-channel" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of customer service channel",
    "data": [
        {
            "id": 10,
            "channel_id": "haloai",
            "name": "Halo AI",
            "description": "{\"haloai_staff_id\" : \"132321231\"}",
            "is_active": true,
            "created_at": "2026-01-19T08:03:03.000000Z",
            "updated_at": "2026-01-19T08:03:03.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        },
        {
            "id": 9,
            "channel_id": "onesender",
            "name": "One Sender",
            "description": "{\"onesender_staff_id\":\"3123212321\", \"unique_id\":\"wa5799\"}",
            "is_active": true,
            "created_at": "2025-04-17T03:47:19.000000Z",
            "updated_at": "2025-04-17T08:12:32.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        },
        {
            "id": 4,
            "channel_id": "Pancake",
            "name": "Pancake",
            "description": "{\"token\": \"dsa\"}",
            "is_active": false,
            "created_at": "2024-09-12T09:42:27.000000Z",
            "updated_at": "2025-04-17T03:53:55.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        },
        {
            "id": 2,
            "channel_id": "Qontak",
            "name": "Qontak",
            "description": "{\"qontak_staff_id\" : \"132321231\"}",
            "is_active": false,
            "created_at": "2024-09-12T09:38:15.000000Z",
            "updated_at": "2026-01-19T08:03:49.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        },
        {
            "id": 1,
            "channel_id": "Sleekflow",
            "name": "Sleekflow",
            "description": "{\"sleekflow_staff_id\":\"3123212321\"}",
            "is_active": false,
            "created_at": "2024-08-30T14:22:52.000000Z",
            "updated_at": "2025-04-17T03:53:49.000000Z",
            "deleted_at": null,
            "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
            "deleted_by": null
        }
    ],
    "error": ""
}

Store new Customer Service Channel.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-channel
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-channel" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Aut ut voluptas qui assumenda tenetur qui.\"
}"

Show Customer Service Channel Detail.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-channel/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs channel.

Example:
1
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-channel/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Customer service channel detail",
    "data": {
        "id": 1,
        "channel_id": "Sleekflow",
        "name": "Sleekflow",
        "description": "{\"sleekflow_staff_id\":\"3123212321\"}",
        "is_active": false,
        "created_at": "2024-08-30T14:22:52.000000Z",
        "updated_at": "2025-04-17T03:53:49.000000Z",
        "deleted_at": null,
        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "deleted_by": null
    },
    "error": ""
}

Update Customer Service Channel.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-channel/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs channel.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-channel/1" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"description\": \"Voluptatem voluptas vero odit dolorem quaerat similique inventore quis.\"
}"

Set Active/Inactive Customer Service Channel.

PUT
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-channel/{cs_channel}/set-active
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

cs_channel
integer
required
Example:
1
Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-channel/1/set-active" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Customer Service Group

APIs for managing group

List Customer Service Group.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-group

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
q
string

The search query.

Example:
veritatis
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group?page=1&limit=10&q=veritatis" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of groups",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group?page=1",
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group",
        "per_page": 10,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "error": ""
}

Store new Customer Service Group.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-group
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"alias\",
    \"branches\": [
        {
            \"is_active\": true
        }
    ],
    \"teams\": [
        {
            \"is_active\": true
        }
    ]
}"

Show Customer Service Group Detail.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-group/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs group.

Example:
35
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group/35" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Group detail",
    "data": {
        "id": 35,
        "name": "Branch Group 2",
        "created_at": "2025-07-16T01:54:07.000000Z",
        "updated_at": "2025-07-16T01:54:09.000000Z",
        "deleted_at": null,
        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "deleted_by": null,
        "is_active": true,
        "cs_teams": [
            {
                "id": 17,
                "name": "Branch CS 2",
                "created_at": "2025-07-16T01:47:32.000000Z",
                "updated_at": "2025-07-16T01:47:32.000000Z",
                "deleted_at": null,
                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "deleted_by": null,
                "is_active": null,
                "pivot": {
                    "cs_group_id": 35,
                    "cs_team_id": 17,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-07-16T01:54:07.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            },
            {
                "id": 19,
                "name": "Branch SPV",
                "created_at": "2025-07-16T01:48:15.000000Z",
                "updated_at": "2025-07-16T01:48:15.000000Z",
                "deleted_at": null,
                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "deleted_by": null,
                "is_active": null,
                "pivot": {
                    "cs_group_id": 35,
                    "cs_team_id": 19,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-09-05T01:03:39.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            }
        ],
        "branches": [
            {
                "branch_id": 4,
                "branch_uid": "b6572f91-5bb8-4c23-9268-31d2ccd8b5f6",
                "code": "JOGJA",
                "name_branch": "JOGJA - JOGJA",
                "img_url": "branches/Z2tIgLBKCm2zWALmItaeZyyTwdOxUVrIqUYQdLSs.jpg",
                "status": 1,
                "created_at": "2023-05-15T07:18:32.000000Z",
                "updated_at": "2024-01-11T09:01:28.000000Z",
                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "pivot": {
                    "cs_group_id": 35,
                    "branch_id": 4,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-07-16T01:54:07.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            },
            {
                "branch_id": 5,
                "branch_uid": "fc352b1e-6fc4-420d-9b39-4dbfa6a77264",
                "code": "LAMPUNG",
                "name_branch": "Bandar Lampung - Lampung",
                "img_url": "branches/47mkQHLSeXMN2fwqx3R98BRWmed7xkROtZs73fW9.jpg",
                "status": 1,
                "created_at": "2023-06-05T06:03:25.000000Z",
                "updated_at": "2024-12-20T06:25:19.000000Z",
                "updated_by": "1a4fbc7d-3652-4d35-bc9a-c645ff8d6a49",
                "pivot": {
                    "cs_group_id": 35,
                    "branch_id": 5,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-07-16T01:54:07.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            },
            {
                "branch_id": 7,
                "branch_uid": "a6bb2f65-6712-4b62-91f7-917330971466",
                "code": "MEDAN",
                "name_branch": "MEDAN - SUMATRA",
                "img_url": "branches/luwoj3ogbuvmDF5iTVzbAh650hsZdrHJQfLYvnXw.jpg",
                "status": 1,
                "created_at": "2024-06-03T05:13:25.000000Z",
                "updated_at": "2024-06-03T05:13:37.000000Z",
                "updated_by": "e5984302-2b2e-4cc7-ae9d-f4fb44b3d582",
                "pivot": {
                    "cs_group_id": 35,
                    "branch_id": 7,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-07-16T01:54:07.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            },
            {
                "branch_id": 11,
                "branch_uid": "ae62d13e-028d-4bfb-89f0-666739ebfcba",
                "code": "SEMARANG",
                "name_branch": "SEMARANG - JATENG",
                "img_url": "branches/cQyADLaNTqa1aDa2LSgn0FFHWG7LGZoZrk8kSar1.png",
                "status": 1,
                "created_at": "2025-05-01T07:39:58.000000Z",
                "updated_at": "2025-05-01T07:39:58.000000Z",
                "updated_by": "system",
                "pivot": {
                    "cs_group_id": 35,
                    "branch_id": 11,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-07-16T01:54:07.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            },
            {
                "branch_id": 12,
                "branch_uid": "16c90942-ff15-4ae3-8036-4ef42ee4981e",
                "code": "BEKASI",
                "name_branch": "BEKASI - JABAR",
                "img_url": "branches/R1ULdCmdJmFhD1KXMpjmPc3swNi3hOcGZW1m3hOq.png",
                "status": 1,
                "created_at": "2025-05-01T07:40:28.000000Z",
                "updated_at": "2025-05-01T07:40:28.000000Z",
                "updated_by": "system",
                "pivot": {
                    "cs_group_id": 35,
                    "branch_id": 12,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-07-16T01:54:07.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            },
            {
                "branch_id": 14,
                "branch_uid": "8843541a-cb6a-4f7d-be4f-0420a9587321",
                "code": "JOGJA GONDOKUSUMAN",
                "name_branch": "JOGJA GONDOKUSUMAN - JOGJA",
                "img_url": "branches/fAeWWbd2rfP4bCENm3iN2QO7l46gbbBofQXwWgYP.png",
                "status": 1,
                "created_at": "2025-10-18T02:01:39.000000Z",
                "updated_at": "2025-10-18T02:12:13.000000Z",
                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "pivot": {
                    "cs_group_id": 35,
                    "branch_id": 14,
                    "is_active": true,
                    "created_by": null,
                    "updated_by": null,
                    "deleted_by": null,
                    "created_at": "2025-11-05T17:07:13.000000Z",
                    "updated_at": "2025-11-05T17:07:13.000000Z"
                }
            }
        ]
    },
    "error": ""
}

Update Customer Service Group.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-group/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs group.

Example:
35

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group/35" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ut\",
    \"branches\": [
        {
            \"is_active\": false
        }
    ],
    \"teams\": [
        {
            \"is_active\": true
        }
    ]
}"

Delete Customer Service Group.

DELETE
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-group/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs group.

Example:
35
Example request:
curl --request DELETE \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group/35" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Set Status Customer Service Group.

PUT
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-group/{cs_group}/set-active
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

cs_group
integer
required
Example:
35
Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-group/35/set-active" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Customer Service Team

APIs for managing customer service team

List Team Customer Service.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-team

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
q
string

The search query.

Example:
John
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team?page=1&limit=10&q=John" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of teams",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team?page=1",
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team",
        "per_page": 10,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "error": ""
}

Store Team Customer Service.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-team
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"dolores\",
    \"customer_service\": [
        {
            \"id\": 3
        }
    ]
}"

Detail Team Customer Service.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-team/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs team.

Example:
13
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team/13" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Team detail",
    "data": {
        "id": 13,
        "name": "Retired CS",
        "created_at": "2025-02-12T06:33:12.000000Z",
        "updated_at": "2025-02-12T06:33:12.000000Z",
        "deleted_at": null,
        "created_by": "623567a0-5aad-42d3-a508-a072ff5bb888",
        "updated_by": "623567a0-5aad-42d3-a508-a072ff5bb888",
        "deleted_by": null,
        "customer_services": [
            {
                "id": 16,
                "id_officer": 255,
                "counter": null,
                "percent": 100,
                "name": "Andy yusmant",
                "username": "Jeka",
                "is_active": true
            },
            {
                "id": 6,
                "id_officer": 67,
                "counter": null,
                "percent": 90,
                "name": "jihanabdiah11",
                "username": "tia",
                "is_active": true
            },
            {
                "id": 5,
                "id_officer": 69,
                "counter": null,
                "percent": 100,
                "name": "izanugroho92",
                "username": "ryas",
                "is_active": true
            }
        ]
    },
    "error": ""
}

Update Team Customer Service.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-team/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the cs team.

Example:
13

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team/13" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"quidem\",
    \"customer_service\": [
        {
            \"id\": 20,
            \"is_active\": false,
            \"channel_requirement\": [
                {
                    \"id\": 4,
                    \"is_active\": false
                }
            ]
        }
    ]
}"

Delete Team Customer Service.

DELETE
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-team/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the Cs Team.

Example:
1
Example request:
curl --request DELETE \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team/1" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Set Customer Service Active/InActive ON Team.

PUT
https://debug-lead.commercial.kampunginggrislc.com
/api/cs-team/{team_id}/set-active
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

team_id
integer
required

The ID of the team.

Example:
13
Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/cs-team/13/set-active" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Endpoints

GET api/sending-initiate-whatsapp

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/sending-initiate-whatsapp

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/sending-initiate-whatsapp" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "WhatsApp initiation sent",
    "data": [],
    "error": ""
}

GET api/start-of-pause-assignment

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/start-of-pause-assignment

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/start-of-pause-assignment" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Pause assignment started",
    "data": [],
    "error": ""
}

Main function to trigger the update process

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/update-qontak-tags

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/update-qontak-tags" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

POST api/label-chat/update

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/label-chat/update

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/label-chat/update" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payload\": []
}"

Lead

APIs for managing lead

List Lead Histories.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/lead/histories

Headers

Authorization
Example:
Bearer {Token}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
lead_name
string

The search query for lead name.

Example:
aut
lead_history_name
string

The search query for lead history name.

Example:
et
email
string

The search query for email.

Example:
bgusikowski@example.org
whatsapp
string

The search query for whatsapp.

Example:
sed
course_package_name
string

The search query for course package name.

Example:
perferendis
bank
string

The search query for bank.

Example:
rerum
registration_id
string

The search query for registration id.

Example:
natus
utm_campaign
string

The search query for utm campaign.

Example:
molestias
utm_source
string

The search query for utm source.

Example:
at
utm_medium
string

The search query for utm medium.

Example:
ipsum
utm_content
string

The search query for utm content.

Example:
laudantium
clid
string

The search query for clid.

Example:
earum
response_info
string

The search query for response info.

Example:
ea
source
string

The search query for source.

Example:
est
cs_id
string

The customer service id.

Example:
1
start_date
string

The start date.

Example:
2021-01-01
end_date
string

The end date.

Example:
2021-12-31
start_period
string

The start period date.

Example:
2021-01-01
end_period
string

The end period date.

Example:
2021-12-31
start_registration
string

The start registration date.

Example:
2021-01-01
end_registration
string

The end registration date.

Example:
2021-12-31
start_payment
string

The start payment date.

Example:
2021-01-01
end_payment
string

The end payment date.

Example:
2021-12-31
branch_id
string

The branch id.

Example:
1
category_id
string

The category id.

Example:
1
status_id
string

The status id.

Example:
1
is_replied
string

The is replied status.

Example:
true
show
string

The show status.

Example:
own
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories?page=1&limit=10&lead_name=aut&lead_history_name=et&email=bgusikowski%40example.org&whatsapp=sed&course_package_name=perferendis&bank=rerum&registration_id=natus&utm_campaign=molestias&utm_source=at&utm_medium=ipsum&utm_content=laudantium&clid=earum&response_info=ea&source=est&cs_id=1&start_date=2021-01-01&end_date=2021-12-31&start_period=2021-01-01&end_period=2021-12-31&start_registration=2021-01-01&end_registration=2021-12-31&start_payment=2021-01-01&end_payment=2021-12-31&branch_id=1&category_id=1&status_id=1&is_replied=true&show=own" \
    --header "Authorization: Bearer {Token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of lead histories",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories?page=1",
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories",
        "per_page": 10,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "error": ""
}

Send Message to Lead.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/lead/histories/send-message

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories/send-message" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"history_lead_id\": 6
}"

Lead History Detail.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/lead/histories/detail

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

lead_id
string
required

The lead id.

Example:
109468
registration_id
string
required

The registration id.

Example:
058534
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/lead/histories/detail?lead_id=109468&registration_id=058534" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Lead History Detail",
    "data": {
        "id": 131320,
        "created_at": "2023-06-17T17:00:00.000000Z",
        "name": "David Martin Munthe",
        "course_package_name": "Paket Holiday Ceria 2 Minggu",
        "branch_name": "PARE - JATIM",
        "category_name": "LC OFFLINE",
        "registration_date": "2023-06-18 00:00:00+00",
        "payment_date": "2023-06-20",
        "registration_number": "058534",
        "period_date": "2023-06-26",
        "bank": "IDN",
        "status_name": "ENGAGED",
        "utm_campaign": null,
        "utm_source": null,
        "utm_medium": null,
        "utm_content": null,
        "clid": null,
        "response_info": null,
        "source": "Registrasi",
        "is_replied": null,
        "lead_name": "David Martin Munthe",
        "lead_email": "davidmmunthe8sg@gmail.com",
        "lead_whatsapp": "6282190187672",
        "lead_created_at": "2023-06-18T03:22:47.000000Z"
    },
    "error": ""
}

Get List of Lead Categories.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/lead/get-category-list

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/lead/get-category-list" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of lead categories",
    "data": [
        {
            "id": 2,
            "name": "LC OFFLINE"
        },
        {
            "id": 1,
            "name": "LC ONLINE"
        }
    ],
    "error": ""
}

Get List of Lead Statuses.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/lead/get-status-list

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/lead/get-status-list" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of lead statuses",
    "data": [
        {
            "id": 2,
            "name": "ENGAGED"
        },
        {
            "id": 1,
            "name": "NEW LEAD"
        }
    ],
    "error": ""
}

List Leads.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/lead

Headers

Authorization
Example:
Bearer {Token}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
q
string

The search query.

Example:
repudiandae
cs_id
string

The customer service id.

Example:
1
start_date
string

The start date.

Example:
2021-01-01
end_date
string

The end date.

Example:
2021-12-31
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/lead?page=1&limit=10&q=repudiandae&cs_id=1&start_date=2021-01-01&end_date=2021-12-31" \
    --header "Authorization: Bearer {Token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of leads",
    "data": [],
    "error": ""
}

Show Lead Detail.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/lead/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the lead.

Example:
165228
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/lead/165228" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Detail of lead",
    "data": {
        "id": 165228,
        "created_at": "2024-01-29T01:18:19.000000Z",
        "name": "Denta Eka Wijaya",
        "email": null,
        "whatsapp": "628977583352",
        "histories": [
            {
                "id": 194724,
                "created_at": "2024-01-29T01:18:19.000000Z",
                "history_name": "Denta Eka Wijaya",
                "course_package_name": "VIP Program (1 Bulan)",
                "branch_name": "PARE - JATIM",
                "category_name": "LC OFFLINE",
                "registration_date": null,
                "payment_date": null,
                "registration_number": null,
                "period_date": null,
                "bank": null,
                "status_name": "NEW LEAD",
                "cs_name": "Retha Febrianasari",
                "cs_team_name": "ZURI",
                "cs_group_name": "Area 1",
                "utm_campaign": null,
                "utm_source": null,
                "utm_medium": null,
                "utm_content": null,
                "clid": null,
                "response_info": null,
                "source": "TanyaCs",
                "is_replied": null
            }
        ]
    },
    "error": ""
}

Dashboard of Customer Service.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/dashboard-cs
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/dashboard-cs" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": false,
    "message": "Customer Service Not Found",
    "data": null,
    "error": ""
}

Dashboard of Spv Selling.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/dashboard-spv

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/dashboard-spv" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Dashboard of Spv Selling",
    "data": {
        "statistics": {
            "total_lead_count": 513356,
            "lead_count_today": 41,
            "lead_count_yesterday": 476,
            "lead_count_this_month": 11261,
            "lead_count_last_month": 23403,
            "total_registered_lead_count": 55844,
            "registered_lead_count_today": 4,
            "registered_lead_count_yesterday": 36,
            "registered_lead_count_this_month": 898,
            "registered_lead_count_last_month": 2095,
            "total_payment_lead_count": 31284,
            "payment_lead_count_today": 0,
            "payment_lead_count_yesterday": 12,
            "payment_lead_count_this_month": 359,
            "payment_lead_count_last_month": 740
        },
        "per_team": [
            {
                "team_name": "ARIEL",
                "total_lead_count": 84721,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 9648,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 5703,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 10,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T00:50:13.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 1,
                        "name": "Ismi Sofiatul Q.",
                        "username": "Hana",
                        "team_id": 4,
                        "team_name": "ARIEL",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13611
                    },
                    {
                        "id": 4,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:17:29.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 4,
                        "name": "ajaynursyamsu2211",
                        "username": "Max",
                        "team_id": 4,
                        "team_name": "ARIEL",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13612
                    }
                ]
            },
            {
                "team_name": "DIAZ",
                "total_lead_count": 77625,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 8525,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 4907,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 2,
                        "schedule_shift_id": 1801,
                        "percent": 80,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:24:18.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Irfan Mohamad Sukri",
                        "username": "Evan",
                        "team_id": 5,
                        "team_name": "DIAZ",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13613
                    },
                    {
                        "id": 13,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:44:37.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 4,
                        "name": "Fitria Rachmawati Oemardi",
                        "username": "Yuki",
                        "team_id": 5,
                        "team_name": "DIAZ",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13614
                    }
                ]
            },
            {
                "team_name": "IZZY",
                "total_lead_count": 99808,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 10943,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 6471,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 3,
                        "schedule_shift_id": 1801,
                        "percent": 0,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T00:00:00.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 0,
                        "name": "dewintan",
                        "username": "Fita",
                        "team_id": 6,
                        "team_name": "IZZY",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13615
                    },
                    {
                        "id": 17,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:33:20.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 1,
                        "name": "Nashiha Afidah",
                        "username": "Ryas",
                        "team_id": 6,
                        "team_name": "IZZY",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13616
                    }
                ]
            },
            {
                "team_name": "ZURI",
                "total_lead_count": 55923,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 6731,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 3819,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 11,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:35:50.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Devina Dyah",
                        "username": "Zea",
                        "team_id": 7,
                        "team_name": "ZURI",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13620
                    },
                    {
                        "id": 12,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:44:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 4,
                        "name": "Retha Febrianasari",
                        "username": "Ara",
                        "team_id": 7,
                        "team_name": "ZURI",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13619
                    }
                ]
            },
            {
                "team_name": "NIKY",
                "total_lead_count": 26543,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 2287,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 1474,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 15,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:16:16.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Tiara Selling",
                        "username": "Kenzie",
                        "team_id": 8,
                        "team_name": "NIKY",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13617
                    },
                    {
                        "id": 7,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:35:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "eko wicaksono",
                        "username": "Kia",
                        "team_id": 16,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13618
                    }
                ]
            },
            {
                "team_name": "Unknown",
                "total_lead_count": 8930,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 828,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 485,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": []
            },
            {
                "team_name": "SPV",
                "total_lead_count": 45252,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 7825,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 4275,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 9,
                        "schedule_shift_id": 1801,
                        "percent": 10,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:09:21.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 2,
                        "name": "Ms. Rossy Selling",
                        "username": "Nada",
                        "team_id": 11,
                        "team_name": "SPV",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13621
                    }
                ]
            },
            {
                "team_name": "Frontline",
                "total_lead_count": 456,
                "lead_count_today": 0,
                "lead_count_this_month": 17,
                "total_registered_lead_count": 358,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 17,
                "total_payment_lead_count": 168,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 2,
                "schedule": []
            },
            {
                "team_name": "Retired CS",
                "total_lead_count": 4103,
                "lead_count_today": 0,
                "lead_count_this_month": 106,
                "total_registered_lead_count": 303,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 10,
                "total_payment_lead_count": 119,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 4,
                "schedule": []
            },
            {
                "team_name": "NEW CS",
                "total_lead_count": 884,
                "lead_count_today": 0,
                "lead_count_this_month": 0,
                "total_registered_lead_count": 89,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 0,
                "total_payment_lead_count": 45,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 0,
                "schedule": [
                    {
                        "id": 18,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:40:34.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Thomas Aldi Setiawan",
                        "username": "Vyn",
                        "team_id": 14,
                        "team_name": "NEW CS",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13622
                    },
                    {
                        "id": 19,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:40:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Evryta P.",
                        "username": "Gea",
                        "team_id": 14,
                        "team_name": "NEW CS",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13623
                    }
                ]
            },
            {
                "team_name": "HQ CS",
                "total_lead_count": 62391,
                "lead_count_today": 26,
                "lead_count_this_month": 6459,
                "total_registered_lead_count": 4409,
                "registered_lead_count_today": 4,
                "registered_lead_count_this_month": 434,
                "total_payment_lead_count": 1941,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 148,
                "schedule": [
                    {
                        "id": 15,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:16:16.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Tiara Selling",
                        "username": "Kenzie",
                        "team_id": 8,
                        "team_name": "NIKY",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13617
                    },
                    {
                        "id": 4,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:17:29.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 4,
                        "name": "ajaynursyamsu2211",
                        "username": "Max",
                        "team_id": 4,
                        "team_name": "ARIEL",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13612
                    },
                    {
                        "id": 2,
                        "schedule_shift_id": 1801,
                        "percent": 80,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:24:18.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Irfan Mohamad Sukri",
                        "username": "Evan",
                        "team_id": 5,
                        "team_name": "DIAZ",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13613
                    },
                    {
                        "id": 18,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:40:34.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Thomas Aldi Setiawan",
                        "username": "Vyn",
                        "team_id": 14,
                        "team_name": "NEW CS",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13622
                    },
                    {
                        "id": 19,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:40:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Evryta P.",
                        "username": "Gea",
                        "team_id": 14,
                        "team_name": "NEW CS",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13623
                    },
                    {
                        "id": 12,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:44:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 4,
                        "name": "Retha Febrianasari",
                        "username": "Ara",
                        "team_id": 7,
                        "team_name": "ZURI",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13619
                    },
                    {
                        "id": 20,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:46:03.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Ana Ismatul Mubarokah",
                        "username": "CS Tia",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13624
                    }
                ]
            },
            {
                "team_name": "Branch CS 1",
                "total_lead_count": 24385,
                "lead_count_today": 10,
                "lead_count_this_month": 2635,
                "total_registered_lead_count": 1908,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 198,
                "total_payment_lead_count": 997,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 108,
                "schedule": [
                    {
                        "id": 7,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:35:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "eko wicaksono",
                        "username": "Kia",
                        "team_id": 16,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13618
                    },
                    {
                        "id": 11,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:35:50.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Devina Dyah",
                        "username": "Zea",
                        "team_id": 7,
                        "team_name": "ZURI",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13620
                    },
                    {
                        "id": 13,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:44:37.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 4,
                        "name": "Fitria Rachmawati Oemardi",
                        "username": "Yuki",
                        "team_id": 5,
                        "team_name": "DIAZ",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13614
                    }
                ]
            },
            {
                "team_name": "Branch CS 2",
                "total_lead_count": 18451,
                "lead_count_today": 2,
                "lead_count_this_month": 1728,
                "total_registered_lead_count": 1641,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 213,
                "total_payment_lead_count": 732,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 87,
                "schedule": [
                    {
                        "id": 21,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T00:00:00.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 0,
                        "name": "Nur Rafida",
                        "username": "Oliv",
                        "team_id": 17,
                        "team_name": "Branch CS 2",
                        "group_id": 35,
                        "group_name": "Branch Group 2",
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13625
                    },
                    {
                        "id": 10,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T00:50:13.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 1,
                        "name": "Ismi Sofiatul Q.",
                        "username": "Hana",
                        "team_id": 4,
                        "team_name": "ARIEL",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13611
                    },
                    {
                        "id": 17,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:33:20.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 1,
                        "name": "Nashiha Afidah",
                        "username": "Ryas",
                        "team_id": 6,
                        "team_name": "IZZY",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13616
                    },
                    {
                        "id": 19,
                        "schedule_shift_id": 1801,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:40:39.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Evryta P.",
                        "username": "Gea",
                        "team_id": 14,
                        "team_name": "NEW CS",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13623
                    }
                ]
            },
            {
                "team_name": "HQ SPV",
                "total_lead_count": 1959,
                "lead_count_today": 0,
                "lead_count_this_month": 130,
                "total_registered_lead_count": 123,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 8,
                "total_payment_lead_count": 54,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 1,
                "schedule": [
                    {
                        "id": 3,
                        "schedule_shift_id": 1801,
                        "percent": 0,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T00:00:00.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 0,
                        "name": "dewintan",
                        "username": "Fita",
                        "team_id": 6,
                        "team_name": "IZZY",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13615
                    }
                ]
            },
            {
                "team_name": "Branch SPV",
                "total_lead_count": 1925,
                "lead_count_today": 3,
                "lead_count_this_month": 186,
                "total_registered_lead_count": 226,
                "registered_lead_count_today": 0,
                "registered_lead_count_this_month": 18,
                "total_payment_lead_count": 94,
                "payment_lead_count_today": 0,
                "payment_lead_count_this_month": 9,
                "schedule": [
                    {
                        "id": 9,
                        "schedule_shift_id": 1801,
                        "percent": 10,
                        "is_active": true,
                        "created_at": "2026-01-21T00:00:00.000000Z",
                        "updated_at": "2026-01-21T01:09:21.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 2,
                        "name": "Ms. Rossy Selling",
                        "username": "Nada",
                        "team_id": 11,
                        "team_name": "SPV",
                        "group_id": null,
                        "group_name": null,
                        "schedule_shift": {
                            "id": 1801,
                            "schedule_id": 681,
                            "shift_id": 4,
                            "is_active": true,
                            "created_at": "2026-01-21T00:00:00.000000Z",
                            "updated_at": "2026-01-21T00:00:00.000000Z",
                            "deleted_at": null,
                            "created_by": "system",
                            "updated_by": "system",
                            "deleted_by": null,
                            "shift": {
                                "id": 4,
                                "name": "24 Jam",
                                "start_time": "00:00:00",
                                "end_time": "23:59:00",
                                "created_at": "2024-10-29T09:17:33.000000Z",
                                "updated_at": "2024-10-29T09:17:33.000000Z",
                                "deleted_at": null,
                                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                                "deleted_by": null
                            }
                        },
                        "template_schedule_shift_cs_id": 13621
                    }
                ]
            }
        ]
    },
    "error": ""
}

Send Message to Lead.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/affiliate/check-phone

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/affiliate/check-phone" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"whatsapp\": \"numquam\"
}"

Retrieving Lead

APIs for managing retrieve lead

Getting Secret Key For Retrieving Lead

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/retrieve-lead/token

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

secret_key
string
required

The secret key for retrieving lead.

Example:
lcokaoke
number_whatsapp
string
required

The number whatsapp for retrieving lead

Example:
dolore
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/retrieve-lead/token?secret_key=lcokaoke&number_whatsapp=dolore" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "success",
    "data": {
        "secret_key": "lcokaoke",
        "number_whatsapp": "dolore",
        "token": "af282ca18893640e1cd5b90727bf4c62"
    },
    "error": ""
}

Get CLID by WhatsApp Number

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/retrieve-lead/clid

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

whatsapp
string
required

The whatsapp number.

Example:
628951596034

Body Parameters

Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/retrieve-lead/clid?whatsapp=628951596034" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"whatsapp\": \"animi\"
}"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": false,
    "message": "No CLID found for this WhatsApp number within 30 days",
    "data": null,
    "error": ""
}

Assign Customer Service To Room ( Qontak )

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/qontak/assign-cs

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/qontak/assign-cs" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"room_id\": \"fugit\",
    \"phone_number\": \"consequatur\",
    \"name\": \"assumenda\"
}"

Assign Unassigned Customer Service To Room ( Qontak )

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/assign-unassigned-lead

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/assign-unassigned-lead" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "No unassigned leads",
    "data": null,
    "error": ""
}

Retrieving Lead.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/retrieve-lead

Headers

Authorization
Example:
Bearer {Token}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/retrieve-lead" \
    --header "Authorization: Bearer {Token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Akbar Hidayat\",
    \"whatsapp\": \"081393597900\",
    \"branch_code\": \"PARE\",
    \"course_package_name\": \"Basic English\",
    \"source\": \"TanyaCs\",
    \"email\": \"john@example.com\",
    \"period_date\": \"2024-09-01\",
    \"registration_id\": 1001,
    \"registration_date\": \"2023-09-10 00:00:00\",
    \"payment_date\": \"2023-09-15 00:00:00\",
    \"cs_id\": \"N0F3ZStvZGxyL202c3FhOFBpUENOdz09OjpwTZypzA8lmuaybr4w4paO\",
    \"affiliate\": \"Affiliate XYZ\",
    \"description\": \"Interested in advanced course packages.\",
    \"utm_source\": \"FB\",
    \"utm_medium\": \"\",
    \"utm_campaign\": \"PAID\",
    \"utm_term\": \"\",
    \"utm_content\": \"pare\",
    \"clid\": {
        \"campaign_id\": \"12345\",
        \"ad_group_id\": \"67890\",
        \"keyword\": \"belajar bahasa inggris\"
    }
}"

Update Payment Lead.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/update-payment-lead

Headers

Authorization
Example:
Bearer {Token}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/update-payment-lead" \
    --header "Authorization: Bearer {Token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"registration_id\": 0,
    \"payment_date\": \"2021-08-01\",
    \"bank\": \"BCA\",
    \"whatsapp\": \"081393597900\"
}"

Update Status Bio Filled.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/update-status-bio

Headers

Authorization
Example:
Bearer {Token}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/update-status-bio" \
    --header "Authorization: Bearer {Token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"registration_id\": 0,
    \"bio_filled\": true,
    \"whatsapp\": \"081393597900\"
}"

Select Customer Service.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/select-cs

Headers

Authorization
Example:
Bearer {Token}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/select-cs" \
    --header "Authorization: Bearer {Token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"cs_id\": \"voluptatem\",
    \"whatsapp\": \"081393597900\",
    \"branch_code\": \"PARE\"
}"

Schedule

APIs for managing schedule

Create Schedule

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/schedule/create-today

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/schedule/create-today" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Schedule already created today",
    "data": [],
    "error": ""
}

List Schedule.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/schedule

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
date
string

The date of the schedule.

Example:
2021-09-01
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/schedule?page=1&limit=10&date=2021-09-01" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List Schedule",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/schedule?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/schedule?page=1",
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://debug-lead.commercial.kampunginggrislc.com/api/schedule?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://debug-lead.commercial.kampunginggrislc.com/api/schedule",
        "per_page": 10,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "error": ""
}

Detail Schedule.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/schedule/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the schedule.

Example:
618
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/schedule/618" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Detail Schedule",
    "data": {
        "id": 618,
        "created_at": "2025-11-19T08:38:31.000000Z",
        "updated_at": "2025-11-19T08:38:31.000000Z",
        "deleted_at": null,
        "created_by": "system",
        "updated_by": "system",
        "deleted_by": null,
        "updated_by_name": "system",
        "schedule_shift": [
            {
                "id": 1632,
                "schedule_id": 618,
                "shift_id": 4,
                "is_active": true,
                "created_at": "2025-11-19T08:38:31.000000Z",
                "updated_at": "2025-11-19T08:38:31.000000Z",
                "deleted_at": null,
                "created_by": "system",
                "updated_by": "system",
                "deleted_by": null,
                "shift": {
                    "id": 4,
                    "name": "24 Jam",
                    "start_time": "00:00:00",
                    "end_time": "23:59:00",
                    "created_at": "2024-10-29T09:17:33.000000Z",
                    "updated_at": "2024-10-29T09:17:33.000000Z",
                    "deleted_at": null,
                    "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                    "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                    "deleted_by": null
                },
                "schedule_shift_cs_with_customer_service": [
                    {
                        "id": 3,
                        "schedule_shift_id": 1632,
                        "percent": 0,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T08:38:31.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 0,
                        "name": "dewintan",
                        "username": "Fita",
                        "team_id": 18,
                        "team_name": "HQ SPV",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11200
                    },
                    {
                        "id": 20,
                        "schedule_shift_id": 1632,
                        "percent": 80,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:21:30.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 16,
                        "name": "Ana Ismatul Mubarokah",
                        "username": "CS Tia",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11209
                    },
                    {
                        "id": 12,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:38:23.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 20,
                        "name": "Retha Febrianasari",
                        "username": "Ara",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11204
                    },
                    {
                        "id": 18,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:39:13.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 20,
                        "name": "Thomas Aldi Setiawan",
                        "username": "Vyn",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11207
                    },
                    {
                        "id": 7,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:42:23.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 23,
                        "name": "eko wicaksono",
                        "username": "Kia",
                        "team_id": 16,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "template_schedule_shift_cs_id": 11203
                    },
                    {
                        "id": 19,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:43:52.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 20,
                        "name": "Evryta P.",
                        "username": "Gea",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11208
                    },
                    {
                        "id": 11,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:45:32.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 23,
                        "name": "Devina Dyah",
                        "username": "Zea",
                        "team_id": 16,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "template_schedule_shift_cs_id": 11205
                    },
                    {
                        "id": 4,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:45:36.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 21,
                        "name": "ajaynursyamsu2211",
                        "username": "Max",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11197
                    },
                    {
                        "id": 13,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:46:59.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 24,
                        "name": "Fitria Rachmawati Oemardi",
                        "username": "Yuki",
                        "team_id": 16,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "template_schedule_shift_cs_id": 11199
                    },
                    {
                        "id": 21,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:52:44.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 16,
                        "name": "Nur Rafida",
                        "username": "Oliv",
                        "team_id": 17,
                        "team_name": "Branch CS 2",
                        "group_id": 35,
                        "group_name": "Branch Group 2",
                        "template_schedule_shift_cs_id": 11210
                    },
                    {
                        "id": 10,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:53:13.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 17,
                        "name": "Ismi Sofiatul Q.",
                        "username": "Hana",
                        "team_id": 17,
                        "team_name": "Branch CS 2",
                        "group_id": 35,
                        "group_name": "Branch Group 2",
                        "template_schedule_shift_cs_id": 11196
                    },
                    {
                        "id": 2,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:54:26.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 21,
                        "name": "Irfan Mohamad Sukri",
                        "username": "Evan",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11198
                    },
                    {
                        "id": 17,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:54:58.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 17,
                        "name": "Nashiha Afidah",
                        "username": "Ryas",
                        "team_id": 17,
                        "team_name": "Branch CS 2",
                        "group_id": 35,
                        "group_name": "Branch Group 2",
                        "template_schedule_shift_cs_id": 11201
                    },
                    {
                        "id": 15,
                        "schedule_shift_id": 1632,
                        "percent": 100,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T23:58:35.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 21,
                        "name": "Tiara Selling",
                        "username": "Kenzie",
                        "team_id": 15,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 11202
                    },
                    {
                        "id": 9,
                        "schedule_shift_id": 1632,
                        "percent": 10,
                        "is_active": true,
                        "created_at": "2025-11-19T08:38:31.000000Z",
                        "updated_at": "2025-11-19T22:41:03.000000Z",
                        "deleted_at": null,
                        "created_by": "system",
                        "updated_by": "system",
                        "deleted_by": null,
                        "counter": 3,
                        "name": "Ms. Rossy Selling",
                        "username": "Nada",
                        "team_id": 19,
                        "team_name": "Branch SPV",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "template_schedule_shift_cs_id": 11206
                    }
                ]
            }
        ]
    },
    "error": ""
}

Update Schedule.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/schedule/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the schedule.

Example:
618

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/schedule/618" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"schedule_shifts\": [
        {
            \"id\": 10,
            \"is_active\": true,
            \"customer_services\": [
                {
                    \"id\": 20,
                    \"percent\": 19,
                    \"is_active\": true,
                    \"counter\": 3
                }
            ]
        }
    ]
}"

Setting

APIs for managing setting

Show Setting.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/setting

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/setting" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Setting",
    "data": {
        "id": 1,
        "max_cs_per_team": 10,
        "max_days_lead": 2,
        "updated_by": null,
        "created_by": null,
        "deleted_by": null,
        "deleted_at": null,
        "created_at": "2024-08-30T02:35:06.000000Z",
        "updated_at": "2024-09-16T02:59:01.000000Z",
        "cs_time_create": "00:00",
        "user_initiate": true
    },
    "error": ""
}

Store Setting.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/setting

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/setting" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"max_cs_per_team\": 10,
    \"max_days_lead\": 10,
    \"cs_time_create\": \"00:00:00\"
}"

Update Setting.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/setting/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the setting.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/setting/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"max_cs_per_team\": 10,
    \"max_days_lead\": 10,
    \"cs_time_create\": \"00:00:00\"
}"

Shift

APIs for managing shift

Show all shifts

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/shift

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
q
string

The search query.

Example:
John
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/shift?page=1&limit=10&q=John" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "List of shifts",
    "data": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/shift?page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/shift?page=1",
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://debug-lead.commercial.kampunginggrislc.com/api/shift?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://debug-lead.commercial.kampunginggrislc.com/api/shift",
        "per_page": 10,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "error": ""
}

Store Shift

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/shift
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/shift" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"qui\",
    \"start_time\": \"vel\",
    \"end_time\": \"ullam\"
}"

Detail Shift

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/shift/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the shift.

Example:
2
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/shift/2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Shift detail",
    "data": {
        "id": 2,
        "name": "Sore",
        "start_time": "14:00:00",
        "end_time": "23:59:00",
        "created_at": "2024-09-02T04:14:00.000000Z",
        "updated_at": "2024-10-03T08:29:46.000000Z",
        "deleted_at": null,
        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "deleted_by": null
    },
    "error": ""
}

Update Shift

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/shift/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the shift.

Example:
2

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/shift/2" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"aut\",
    \"start_time\": \"debitis\",
    \"end_time\": \"quae\"
}"

Remove shift

DELETE
https://debug-lead.commercial.kampunginggrislc.com
/api/shift/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the shift.

Example:
2
Example request:
curl --request DELETE \
    "https://debug-lead.commercial.kampunginggrislc.com/api/shift/2" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Template Schedule

APIs for managing template schedule

List Template Schedule.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/template-schedule

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

page
string
required

The page of the list.

Example:
1
limit
string
required

The limit of the list.

Example:
10
q
string

The search query.

Example:
All Shift
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule?page=1&limit=10&q=All+Shift" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "1",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 7,
                "name": "All Shift",
                "created_at": "2025-05-08T02:25:34.000000Z",
                "updated_at": "2025-10-27T04:23:29.000000Z",
                "deleted_at": null,
                "created_by": "5cb9b47b-8da5-47dd-98fb-92b2fff31476",
                "updated_by": "e04549b0-5d1b-43c0-bc3a-cdd4e4fbb187",
                "deleted_by": null,
                "is_active": true
            }
        ],
        "first_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule?page=1",
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule",
        "per_page": 10,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "error": ""
}

Store Template Schedule.

POST
https://debug-lead.commercial.kampunginggrislc.com
/api/template-schedule
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"id\",
    \"shifts\": [
        {
            \"id\": 18,
            \"customer_services\": [
                {
                    \"id\": 11,
                    \"percent\": 0
                }
            ]
        }
    ]
}"

Detail Template Schedule.

GET
https://debug-lead.commercial.kampunginggrislc.com
/api/template-schedule/{id}

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the template schedule.

Example:
3
Example request:
curl --request GET \
    --get "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule/3" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            content-type
                                                            : application/json
                                                                                                                    cache-control
                                                            : no-cache, private
                                                                                                                    access-control-allow-origin
                                                            : *
                                                         
{
    "success": true,
    "message": "Success get detail template schedule",
    "data": {
        "id": 3,
        "name": "Daily",
        "created_at": "2024-09-18T01:49:56.000000Z",
        "updated_at": "2024-10-09T09:18:57.000000Z",
        "deleted_at": null,
        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
        "updated_by": "5cb9b47b-8da5-47dd-98fb-92b2fff31476",
        "deleted_by": null,
        "is_active": false,
        "template_shift": [
            {
                "id": 14,
                "template_schedule_id": 3,
                "shift_id": 1,
                "created_at": "2024-09-21T05:27:47.000000Z",
                "updated_at": "2024-09-21T05:27:47.000000Z",
                "deleted_at": null,
                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "deleted_by": null,
                "shift": {
                    "id": 1,
                    "name": "Tes",
                    "start_time": "00:00:00",
                    "end_time": "13:59:00",
                    "created_at": "2024-09-02T01:51:56.000000Z",
                    "updated_at": "2024-10-07T07:11:12.000000Z",
                    "deleted_at": null,
                    "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                    "updated_by": "5cb9b47b-8da5-47dd-98fb-92b2fff31476",
                    "deleted_by": null
                },
                "customer_service": [
                    {
                        "id": 4,
                        "customer_service_id": 4,
                        "template_schedule_shift_id": 14,
                        "percent": 10,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "ajaynursyamsu2211",
                        "username": "Max",
                        "team_id": 15,
                        "officer_id": 46,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 33
                    },
                    {
                        "id": 2,
                        "customer_service_id": 2,
                        "template_schedule_shift_id": 14,
                        "percent": 10,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "Irfan Mohamad Sukri",
                        "username": "Evan",
                        "team_id": 15,
                        "officer_id": 247,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 34
                    },
                    {
                        "id": 3,
                        "customer_service_id": 3,
                        "template_schedule_shift_id": 14,
                        "percent": 10,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "dewintan",
                        "username": "Fita",
                        "team_id": 18,
                        "officer_id": 61,
                        "team_name": "HQ SPV",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 35
                    },
                    {
                        "id": 11,
                        "customer_service_id": 11,
                        "template_schedule_shift_id": 14,
                        "percent": 0,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "Devina Dyah",
                        "username": "Zea",
                        "team_id": 16,
                        "officer_id": 48,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "template_schedule_shift_cs_id": 36
                    },
                    {
                        "id": 14,
                        "customer_service_id": 14,
                        "template_schedule_shift_id": 14,
                        "percent": 10,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "Team IT",
                        "username": "IT IT",
                        "team_id": null,
                        "officer_id": 1,
                        "team_name": null,
                        "group_id": null,
                        "group_name": null,
                        "template_schedule_shift_cs_id": 37
                    }
                ]
            },
            {
                "id": 15,
                "template_schedule_id": 3,
                "shift_id": 2,
                "created_at": "2024-09-21T05:27:47.000000Z",
                "updated_at": "2024-09-21T05:27:47.000000Z",
                "deleted_at": null,
                "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                "deleted_by": null,
                "shift": {
                    "id": 2,
                    "name": "Sore",
                    "start_time": "14:00:00",
                    "end_time": "23:59:00",
                    "created_at": "2024-09-02T04:14:00.000000Z",
                    "updated_at": "2024-10-03T08:29:46.000000Z",
                    "deleted_at": null,
                    "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                    "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                    "deleted_by": null
                },
                "customer_service": [
                    {
                        "id": 10,
                        "customer_service_id": 10,
                        "template_schedule_shift_id": 15,
                        "percent": 20,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "Ismi Sofiatul Q.",
                        "username": "Hana",
                        "team_id": 17,
                        "officer_id": 250,
                        "team_name": "Branch CS 2",
                        "group_id": 35,
                        "group_name": "Branch Group 2",
                        "template_schedule_shift_cs_id": 38
                    },
                    {
                        "id": 13,
                        "customer_service_id": 13,
                        "template_schedule_shift_id": 15,
                        "percent": 10,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "Fitria Rachmawati Oemardi",
                        "username": "Yuki",
                        "team_id": 16,
                        "officer_id": 249,
                        "team_name": "Branch CS 1",
                        "group_id": 33,
                        "group_name": "Branch Group 1",
                        "template_schedule_shift_cs_id": 39
                    },
                    {
                        "id": 5,
                        "customer_service_id": 5,
                        "template_schedule_shift_id": 15,
                        "percent": 30,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "izanugroho92",
                        "username": "ryas",
                        "team_id": 13,
                        "officer_id": 69,
                        "team_name": "Retired CS",
                        "group_id": 29,
                        "group_name": "Retired Group CS",
                        "template_schedule_shift_cs_id": 40
                    },
                    {
                        "id": 12,
                        "customer_service_id": 12,
                        "template_schedule_shift_id": 15,
                        "percent": 100,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "Retha Febrianasari",
                        "username": "Ara",
                        "team_id": 15,
                        "officer_id": 246,
                        "team_name": "HQ CS",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 41
                    },
                    {
                        "id": 8,
                        "customer_service_id": 8,
                        "template_schedule_shift_id": 15,
                        "percent": 20,
                        "created_at": "2024-09-21T05:27:47.000000Z",
                        "updated_at": "2024-09-21T05:27:47.000000Z",
                        "deleted_at": null,
                        "created_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "updated_by": "351214d7-db5f-4be8-bdf8-6a0fbe2d8e39",
                        "deleted_by": null,
                        "name": "jehanadani",
                        "username": "Lucy",
                        "team_id": 12,
                        "officer_id": 44,
                        "team_name": "Frontline",
                        "group_id": 32,
                        "group_name": "HQ Group",
                        "template_schedule_shift_cs_id": 42
                    }
                ]
            }
        ]
    },
    "error": ""
}

Update Template Schedule.

PUT
PATCH
https://debug-lead.commercial.kampunginggrislc.com
/api/template-schedule/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the template schedule.

Example:
3

Body Parameters

Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule/3" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"laborum\",
    \"shifts\": [
        {
            \"id\": 14,
            \"customer_services\": [
                {
                    \"id\": 17,
                    \"percent\": 0
                }
            ]
        }
    ]
}"

Delete Template Schedule.

DELETE
https://debug-lead.commercial.kampunginggrislc.com
/api/template-schedule/{id}
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the template schedule.

Example:
3
Example request:
curl --request DELETE \
    "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule/3" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Change status Template Schedule.

PUT
https://debug-lead.commercial.kampunginggrislc.com
/api/template-schedule/{template_schedule_id}/set-active
requires authentication

Headers

Authorization
Example:
Bearer { BEARER_TOKEN }
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

template_schedule_id
string
required

The ID of the template schedule.

Example:
1
Example request:
curl --request PUT \
    "https://debug-lead.commercial.kampunginggrislc.com/api/template-schedule/1/set-active" \
    --header "Authorization: Bearer { BEARER_TOKEN }" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"