
1)login

method: post
url : http://localhost/fashion_world/api/user/login

{	"API_ACCESS_KEY":"ZkC6BDUzxz",		
    "username":"sadmin",
    "password":"sadmin",
    "branch_id":"1",
    "fin_year":"2023-2024",
    "token":"xyz"			
}			

{
    "status": true,
    "data": {
        "user_id": "1",
        "user_role": "SUPER ADMIN",
        "user_name": "sadmin",
        "user_fullname": "Super Admin",
        "user_branch_id": "1",
        "user_branch": "HO",
        "branch_default": "1",
        "fin_year": "2023-2024",
        "start_year": "2023-04-01",
        "end_year": "2024-03-31",
        "token_auth": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1dWlkIjoiMTE3MTQ0NzcyMTEiLCJ1c2VyX2lkIjoiMSIsInVzZXJfcm9sZSI6IlNVUEVSIEFETUlOIiwidXNlcl9uYW1lIjoic2FkbWluIiwidXNlcl9mdWxsbmFtZSI6IlN1cGVyIEFkbWluIiwidXNlcl9icmFuY2hfaWQiOiIxIiwidXNlcl9icmFuY2giOiJITyIsImJyYW5jaF9kZWZhdWx0IjoiMSIsImZpbl95ZWFyIjoiMjAyMy0yMDI0Iiwic3RhcnRfeWVhciI6IjIwMjMtMDQtMDEiLCJlbmRfeWVhciI6IjIwMjQtMDMtMzEifQ.pF38NPZxKrRW775T-o6OicDilHTL7bif681eqskP9pw"
    },
    "message": "User login successful"
}

2)Sale
method: post
url : http://localhost/fashion_world/api/sale/sale_add_update
{
    "sm_id":"0",
    "sm_entry_date": "01-05-2024",
    "sm_customer_id": "1",
    "customer_mobile": "9955442255",
    "sm_disc_per": "0",
    "sm_person_id": "1",
    "sm_total_qty": "1",
    "sm_sub_amt":"0",
    "sm_disc_amt": "0",
    "sm_exchange_amt": "0",
    "sm_round_off": "0",
    "sm_total_amt": "0",
    "sm_payment_mode": "0",
    "sm_collected_amt": "0",
    "sm_to_pay": "0",
    "sm_notes": " ",
    "trans_data": [
        {
            "st_id": "0",
            "st_bm_id": "1",
            "st_pm_id": "1",
            "st_pt_id": "1",
            "st_gender_id": "1",
            "st_category_id": "1",
            "st_color_id": "1",
            "st_size_id": "1",
            "st_qty": "1",
            "st_rate": "1",
            "st_amt": "1",
            "st_disc_amt": "1",
            "st_disc_per": "1",
            "st_total_amt": "1"
        }
    ]
}          

{
    "status": true,
    "data": [],
    "message": "added successfully"
}