# Franchise Courses Kit

## Get user franchise

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /franchise
</span> 


```shell
curl -X GET https://vedaay-api.mulika.in/franchise \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "code": 200,
    "message": "Franchise details retrieved successfully",
    "data": {
        "user_id": "402",
        "user_name": "avi",
        "first_name": "avi",
        "middle_name": "a",
        "last_name": "avi",
        "email": "avi@gmail.com",
        "mobile": "9876543210",
        "role_id": "5",
        "parent_id": "476",
        "profile_img": "100",
        "created_at": "2026-03-28 16:49:04",
        "updated_at": "2026-03-28 16:49:04",
        "status": "active",
        "created_by": "107",
        "scope": "/"
    }
}
```


## Get courses-kit

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /franchise/courses-kit
</span> 

```shell
curl -X GET https://vedaay-api.mulika.in/franchise/courses-kit \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "code": 200,
    "message": "Franchise courses kit retrieved successfully.",
    "data": [
        {
            "course_id": "272",
            "course_title": "Vedpad Basics",
            "course_img": {
                "media_id": "100",
                "media_src": "https://dev-api.vedaay.mulika.in/media/src/201/1774351338_vedaay_logo.png"
            },
            "levels": [
                {
                    "level_id": "85",
                    "level_name": "Masterclass",
                    "avaliable_quantity": 11
                },
                {
                    "level_id": "84",
                    "level_name": "Expert",
                    "avaliable_quantity": 5
                },
                {
                    "level_id": "86",
                    "level_name": "null",
                    "avaliable_quantity": 20
                }
            ],
            "status": "inprogress",
            "price": "121",
            "created_by": "366"
        }
    ]
}
```

## Get single course kit

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /franchise/courses-kit/{id}
</span> 

```shell
curl -X GET https://vedaay-api.mulika.in/franchise/courses-kit/165 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "code": 200,
    "message": "Franchise courses retrieved successfully.",
    "data": [
        {
            "course_id": "188",
            "course_img": null,
            "levels": "26",
            "status": "pending",
            "quantity": "20",
            "available_quantity": "11",
            "price": "800",
            "created_by": "1"
        }
    ]
}
```

## Franchises assigns courses to student

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #d7be4e; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /franchise/student/course-assign/{student-id}
</span> 

```shell
curl -X post https://vedaay-api.mulika.in/franchise/student/course-assign/343 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
  "courses_id": 272,
  "level_id": [85,86],
  "price": 121,
  "payment_method": "bank_transfer"
}
'
```
> Responce:

```json
{
    "status": "success",
    "code": 200,
    "message": "Student Course assigned successfully",
    "data": {
        "student_id": "343",
        "order_id": 776,
        "course_kit_id": [
            "38",
            "40"
        ],
        "courses_id": "272",
        "level_id": [
            85,
            86
        ],
        "price": 121,
        "status": "complete",
        "scope": "/107/357/385",
        "payment_method": "bank_transfer",
        "created_at": "2026-05-15 22:41:43",
        "updated_at": "2026-05-15 22:41:43"
    }
}
```



## Get student courses kit 

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /franchise/student/course-assign/{student-id}
</span> 

```shell
curl -X get https://vedaay-api.mulika.in/franchise/student/course-assign/343 \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "Success",
    "code": 200,
    "message": "Data fetched successfully",
    "total_rows": 2,
    "total_courses": 1,
    "data": [
        {
            "student_id": "343",
            "course_kit_id": "20",
            "franchise_id": "394",
            "courses_id": "188",
            "course_title": "1. Adhiti: Introduction & Activation",
            "course_img": null,
            "levels": [
                {
                    "level_id": "26",
                    "level_name": "Abacus Level 1 – Abacus & Brain-Based Learning",
                    "status": "inprogress",
                    "lesson_status": "lock"
                },
                {
                    "level_id": "79",
                    "level_name": "Catlog level",
                    "status": "incompleted",
                    "lesson_status": "lock"
                }
            ],
            "status": "complete"
        }
    ]
}
```

## Put student courses kit 

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #4e92d7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">PUT</span> /franchise/student/course-assign/{student-id}/level-status
</span> 

```shell
curl -X put https://vedaay-api.mulika.in/franchise/student/course-assign/343/level-status \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE \
-d '{
    "courses_id": 1,
    "level_id": 2,
    "status": "complete"
    "lesson_status": "unlock"

}'
```
> Responce:

```json
{
    "status": "Success",
    "code": 200,
    "message": "Status updated",
    "data": {
        "id": "9",
        "lesson_status": "unlock"
    }
}

```
