Get started

Magtec ERP API provides programmatic access to to integrate various applications like ecommerce, biometric machine etc.

To use this API, you need an API key / Client No. Please contact us at info.magtecsolutions.com to get your own API key / Client No.




API Endpoint (demo)

https://api-demo.magtec.ae/

TEST Client No

MAG139
                


get product categories

To get intgeration category list you need to make a GET call to the following url :
https://api-demo.magtec.ae/ProductsParentList/Product




Headers:
{
"Accept": "application/json",
"Content-Type": "application/json"
}

                



Result example :

  result: [
    {
      Id: 1,
      Name: "Category 1",
      Code: "123"
    },
    {
      Id: 2,
      Name: "Category 2",
       Code: "123"
    },
    {
      Id: 3,
      Name: "Category 3",
       Code: "123"
    }
  ]
                


get Sub Category list

To get sub category list you need to make a GET call to the following url :
https://api-demo.magtec.ae/ProductSubList/[CategoryId]/Product



QUERY PARAMETERS

Field Type Description
[CategoryId] number category id from category list api.



Headers:
{
"Accept": "application/json",
"Content-Type": "application/json"
}

                



Result example :

   result: [
    {
      Id: 1,
      Name: "Category 1",
      Code: "123"
    },
    {
      Id: 2,
      Name: "Category 2",
       Code: "123"
    },
    {
      Id: 3,
      Name: "Category 3",
       Code: "123"
    }
  ]
                


get Product List

To get product list by category you need to make a GET call to the following url :
https://api-demo.magtec.ae/GetProductsForSales/[SubCategoryId]



QUERY PARAMETERS

Field Type Description
[SubCategoryId] number sub category id from sub category list api.



Headers:
{
"Accept": "application/json",
"Content-Type": "application/json"
}

                



Result example :

  result: [
    result: [
    {
      Id: 1,
      Name: "Product 1",
      Code: "123",
      Image: "",
      Price : 100
    },
    {
      Id: 2,
      Name: "Product 2",
       Code: "123",
       Image: "",
        Price : 100
    },
    {
      Id: 3,
      Name: "Product 3",
       Code: "123",
       Image: "",
        Price : 100
    }
  ]
  ]
                


send Attendance

To send attendance to erp you need to make a POST call to the following url :
https://api-demo.magtec.ae/SaveEmployeeAttendance



QUERY PARAMETERS

Field Type Description
AuthCode string Customer code registered in erp software.
BranchCode string branch code registered in erp software.
DeviceCode string device code registered in erp software.
DateStr string attendance date by dd/mm/yyyy format.
Remarks string remaks if any.
EmployeeCode string employee code registered in erp software
StartHour string employee checkin hour in hh format.
StartMinute string employee checkin minute in mm format.
EndHour string employee checkout hour in hh format.
EndMinute string employee checkout minute in mm format.



Headers:
{
"Accept": "application/json",
"Content-Type": "application/json"
}

                





Request Body:
{
AuthCode: "customer unique code",
DeviceCode: "registered device code",
BranchCode: "branch code if any",
DateStr: “25/02/2024”,
Remarks: "",

EmployeeAttendanceDetails : [
{
EmployeeCode : "123",
StartHour: "10",
StartMinute: "00",
EndHour: "18",
EndMinute: "00"
},
{
EmployeeCode : "124",
StartHour: "10",
StartMinute: "00",
EndHour: "18",
EndMinute: "00"
},
{
EmployeeCode : "125",
StartHour: "10",
StartMinute: "00",
EndHour: "18",
EndMinute: "00"
}
]

}

                



Result example :

result: "Success"
                



Error example :

result: "Employee Not Found , Device Code Not Registered  etc"