🔐 Aadhaar Attendance API Tester

1. Insert Aadhaar Attendance Details

Endpoint: POST /insert-aadhar-attendence-details/{api_key}
This endpoint inserts attendance details with starting info, Aadhaar info, live face, and matching data.

📋 cURL Command

curl --location --request POST 'http://aadhar-offline-qr-attendence.bonrix.in:4050/insert-aadhar-attendence-details/Oo4fWLDXbAeXckk6fCnhcA' \
--header 'Content-Type: application/json' \
--data '{
  "starting": {
    "startdatetime": "15-Dec-2025 09:49:05 am",
    "latitude": "23.1919578",
    "longitude": "72.6062562",
    "startlocation": "A- 18, Sargasan, Gandhinagar"
  },
  "aadhaarinfo": {
    "aadhaardatetime": "15-Dec-2025 09:49:12 am",
    "latitude": "23.1919578",
    "longitude": "72.6062562",
    "diffwithstart": "0 Meters",
    "aadhaarno": "xxxxxxxx5837",
    "name": "Gajjar Kinjal",
    "mobile": "1234567890",
    "gender": "M",
    "dob": "21-03-1983",
    "address": "1, Triveni Complex, Near Devendra Bus Stop, Naranpura, Ahmedabad, Gujarat, 380013",
    "imagebase64": "iVBORw0KGgo...",
    "aadhaarlocation": "A- 18, Sargasan, Gandhinagar"
  },
  "liveface": {
    "livefacedatetime": "15-Dec-2025 09:49:17 am",
    "latitude": "23.1919495",
    "longitude": "72.6062431",
    "diffwithstart": "1 Meters",
    "imagebase64": "iVBORw0KGgo...",
    "livefacelocation": "Sharan Residency, Sargasan, Gandhinagar"
  },
  "matching": {
    "matchingdatetime": "15-Dec-2025 09:49:19 am",
    "latitude": "23.1919495",
    "longitude": "72.6062431",
    "diffwithstart": "1 Meters",
    "matchratio": "78",
    "matchstatus": "matched",
    "matchinglocation": "Sharan Residency, Sargasan, Gandhinagar"
  }
}'

Response:

2. Decode Aadhaar QR (Decimal String)

Endpoint: POST /decode-aadhaar-qr-formatted
Decodes an Aadhaar QR code from a decimal string and returns formatted data.

📋 cURL Command

curl --location 'http://aadhar-offline-qr-attendence.bonrix.in:4050/decode-aadhaar-qr-formatted' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer Oo4fWLDXbAeXckk6fCnhcA' \
--data '{"decimal_string": "88092600241094394840965273451574647432406629182584508088545511496204513495575189524229717984851559137904095781583444645545139319122458461757918268697988608709481017280623659488242057907275869186714539743320036114473353842651861216762159120259600722412396959802237116008168530986427966678917283225556421406597526533688522632828303282669277256735169033477368440940161242853183985920338469749926459157687221420992894592689174720911819395563297804963021103999953237196748500846477846046569614151193728040658874399880475092708374028656500034888950329349489748544900365995638218822157317694790328208413284963475850177218812781169173021647343331735697839499625728004599939451924010456440575430564310988497155724660732577322445860225089313481121719373930825227538393693677905733420700333246308986354984945331466434557934002179067604535185581283678153293172387923812095866661359616703225368739402385660088807673576754579088734189477026888841222580700199671764034907302266181717907711757999524740094709003161358964347296981746815152196188429830082227340539286654435655273775569186500877938605746682585255465060848303168952939540534670193914296216152854395010935387661037355215146644612550173784116022559205022493455433859929725238651392447370044221637018332217152263894983635144756222285701886103560184438326266702237858910410080778220257033570500890952436992083952309708157465718250990072217560861052461777439532068036596840168629570365125717288993776723891486623033757608726144227762220093532730296514121330893611508707089004260082973069580444234336101556984863976742158236818420778573061149999857862020426713423914131186273725709391225815108338747157102327648537532806997273679186597709799934215676986945079696591181990204194363349347660021377240939067004325541226359957542666060943438303871890955805670285868146668392638698482258510440790221697888661423336846553267985987894254159990078267750256543928784341766167618222055466661198037274069565263091724271603390802895416232060304567259734872707944560653449198731535409793016242265496483620549541684934746608708122162416687610844161137494689738278092336411645617063290777039717780861944015161422402565612358579023265038726351007984580679252217210922945472501005969615788087630104395367956976370086962782377202408198798013787079590513484330474720682212172524395156368682990614157811927833606190592564423297135564592219029315378763736868832809740407122491108479398272430921104654570881176300216880098616849945376310091123643052635372060828886513277205013912572022894943988673347236150454257525313632617873706306705085359481252379790065512527580597841466269282847966610025539652734564542850735535809425734667372915959572679398470395481391425794388989071827835978350527433117945860774401596296453449737242709340319449602447107753983198824062904842993499060662056542149934363494743849989933252755449105414850425816000159324198412685719197753318528067638666409663049038995001759012221859214366069340681568097754517919891885124445388021487528241599491874230985102549355939669216490819771998788887557917680607685369957284472461398618470036060705124845932050915414448953960497152"}'

Response:

3. Decode Aadhaar QR (XML String)

Endpoint: POST /decode-aadhaar-qr-formatted
Decodes an Aadhaar QR code from an XML string and returns formatted data.

📋 cURL Command

curl --location 'http://aadhar-offline-qr-attendence.bonrix.in:4050/decode-aadhaar-qr-formatted' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer Oo4fWLDXbAeXckk6fCnhcA' \
--data '{
  "xml_string": ""
}'

Response:

4. Upload QR Image

Endpoint: POST /upload-qr-image
Uploads a QR code image file and decodes the Aadhaar information from it.

📋 cURL Command

curl --location 'http://aadhar-offline-qr-attendence.bonrix.in:4050/upload-qr-image' \
--header 'Authorization: Bearer Oo4fWLDXbAeXckk6fCnhcA' \
--form 'qr_image=@"/path/to/your/qr_code_image.png"'

Response: