Digital ID With SBT

API SBT NEW ID


Payload Data

NameData Type
NoIdString
ClientIdString
SignerSignatureString
WalletAddressString
QtagString
HospitalNameString
HospitalAddressString

Example Request & Response

{
    "Subject":"digitalid",
    "SubjectType":"enrollment",
    "SubjectIdentifier":"sbt",
    "Action":"newid",
    "ResourceType":"",
    "Resource":"",
    "ResourceId":"",
    "Data":{
      "NoId": "Q-12AB98123",
      "ClientId": "Qoin Membership",
      "SignerSignature" : "0x949f0d31691f40d207e5b4c5244bc8763a2ec054fcca661da52d42a8ce564ced1eef4050615348a10c65085d27786a16e3317895893b0e906b576157922d5ef81b",
      "WalletAddress" : "0x3e516a503ee399f08898d6b98b066679203fA700",
      "Qtag": "Q-12AB98123",
      "HospitalName" : "Qoin Hospital As-Syifa Gaza",
      "HospitalAddress" : "Jalan tel.Aviv Gaza Timur"
    }
 }
{
   "ClientId": 1,
   "Subject": "digitalid",
   "SubjectType": "enrollment",
   "SubjectIdentifier": "sbt",
   "Action": "newid",
   "ResourceType": "",
   "Resource": "",
   "ResourceId": "",
   "UserId": "660",
   "MemberId": 1,
   "TicketId": "",
   "Date": "2023-11-16 05:05:00",
   "Result": {
     "status_code": 201,
     "message": "SBT Token created successfully",
     "data": {
       "userData": {
         "noID": "Q-12AB98123",
         "clientID": "Qoin Membership",
         "q-tag": "Q-12AB98123",
         "hospitalName": "Qoin Hospital As-Syifa Gaza",
         "hospitalAddress": "Jalan tel.Aviv Gaza Timur"
       },
       "tokenID": "31"
     }
   }
 }


API SBT REGISTRATION


Payload Data

NameData Type
NoIdString
ClientIdString
PhotoString
NIKString
NameString
DateOfBirthString
InstanceNameString
InstanceAddressString
DepartmentString
PositionString
JoinDateString
EmployeeStatusString
EmployeeTypeString

Example Request & Response

{
    "Subject":"digitalid",
    "SubjectType":"enrollment",
    "SubjectIdentifier":"sbt",
    "Action":"register",
    "ResourceType":"",
    "Resource":"",
    "ResourceId":"",
    "Data":{
       "NoId":"NIK1231",
       "ClientId":"dukcapil",
       "Photo":"https://www.google.com/imgres?imgurl=https%3A%2F%2Fpng.pngtree.com%2Fpng-vector%2F20210604%2Fourmid%2Fpngtree-gray-network-placeholder-png-image_3416659.jpg&tbnid=FDbea6Z_zJGhsM&vet=12ahUKEwii-MD_kpaCAxVc7DgGHdlVAq8QMygHegQIARB3..i&imgrefurl=https%3A%2F%2Fpngtree.com%2Fso%2Fplaceholders&docid=zTW-avJdMZOxkM&w=360&h=360&q=gambar%20placeholder&ved=2ahUKEwii-MD_kpaCAxVc7DgGHdlVAq8QMygHegQIARB3",
       "Nik":"0987654321",
       "Name":"PRABU KIAN SANTANG",
       "DateOfBirth":"2000-11-20",
       "InstanceName":"instansi",
       "InstanceAddress":"alamat instansi",
       "Department":"HRD",
       "Position":"staff",
       "JoinDate":"2023-11-15 10:05:00",
       "EmployeeStatus":"contract",
       "EmployeeType":"testing"
    }
 }
{
   "ClientId": 1,
   "Subject": "digitalid",
   "SubjectType": "enrollment",
   "SubjectIdentifier": "sbt",
   "Action": "register",
   "ResourceType": "",
   "Resource": "",
   "ResourceId": "",
   "UserId": "660",
   "MemberId": 1,
   "TicketId": "",
   "Date": "2023-11-16 05:05:00",
   "Result": {
     "status_code": 201,
     "message": "SBT Token created successfully",
     "data": {
       "userData": {
         "noID": "NIK1231",
         "clientID": "dukcapil",
         "photo": "https://www.google.com/imgres?imgurl=https%3A%2F%2Fpng.pngtree.com%2Fpng-vector%2F20210604%2Fourmid%2Fpngtree-gray-network-placeholder-png-image_3416659.jpg&tbnid=FDbea6Z_zJGhsM&vet=12ahUKEwii-MD_kpaCAxVc7DgGHdlVAq8QMygHegQIARB3..i&imgrefurl=https%3A%2F%2Fpngtree.com%2Fso%2Fplaceholders&docid=zTW-avJdMZOxkM&w=360&h=360&q=gambar%20placeholder&ved=2ahUKEwii-MD_kpaCAxVc7DgGHdlVAq8QMygHegQIARB3",
         "NIK": "0987654321",
         "name": "PRABU KIAN SANTANG",
         "dateOfBirth": "2000-11-20",
         "instanceName": "instansi",
         "instanceAddress": "alamat instansi",
         "department": "HRD",
         "position": "staff",
         "joinDate": "2023-11-15 10:05:00",
         "employeeStatus": "contract",
         "employeeType": "testing"
       },
       "walletData": {
         "walletAddress": "0x5a12B246684A649B10aDad41c3ab04eFB6834A2e",
         "privateKey": "0xe4c4fcb8207f848ffb312ae387ba6c536eca3be384d344957a9d5c60572a1104",
         "mnemonic": "common unusual lottery danger destroy sight artefact domain heavy cute gossip mom"
       },
       "tokenID": "30"
     }
   }
 }


API SBT VALIDATION

Payload Data

NameData Type
SignerSignatureString
WalletAddressString
TokenIDString

Example Request & Response

{
    "Subject":"digitalid",
    "SubjectType":"enrollment",
    "SubjectIdentifier":"sbt",
    "Action":"validation",
    "ResourceType":"",
    "Resource":"",
    "ResourceId":"",
    "Data":{
       "SignerSignature":"0x949f0d31691f40d207e5b4c5244bc8763a2ec054fcca661da52d42a8ce564ced1eef4050615348a10c65085d27786a16e3317895893b0e906b576157922d5ef81b",
       "WalletAddress":"0x3e516a503ee399f08898d6b98b066679203fA700",
       "TokenID":"29"
    }
 }
{
   "ClientId": 1,
   "Subject": "digitalid",
   "SubjectType": "enrollment",
   "SubjectIdentifier": "sbt",
   "Action": "validation",
   "ResourceType": "",
   "Resource": "",
   "ResourceId": "",
   "UserId": "660",
   "MemberId": 1,
   "TicketId": "",
   "Date": "2023-11-16 05:05:00",
   "Result": {
     "status_code": 200,
     "message": "Check Data Success!",
     "data": {
       "noID": "NIK12$#",
       "clientID": "dukcapil",
       "photo": "https://www.google.com/imgres?imgurl=https%3A%2F%2Fpng.pngtree.com%2Fpng-vector%2F20210604%2Fourmid%2Fpngtree-gray-network-placeholder-png-image_3416659.jpg&tbnid=FDbea6Z_zJGhsM&vet=12ahUKEwii-MD_kpaCAxVc7DgGHdlVAq8QMygHegQIARB3..i&imgrefurl=https%3A%2F%2Fpngtree.com%2Fso%2Fplaceholders&docid=zTW-avJdMZOxkM&w=360&h=360&q=gambar%20placeholder&ved=2ahUKEwii-MD_kpaCAxVc7DgGHdlVAq8QMygHegQIARB3",
       "NIK": "0987654321",
       "name": "PRABU KIAN SANTANG",
       "dateOfBirth": "20-11-2000",
       "instanceName": "instansi",
       "instanceAddress": "alamat instansi",
       "department": "HRD",
       "position": "staff",
       "joinDate": "2023-11-15 10:05:00",
       "employeeStatus": "contract",
       "employeeType": "testing"
     }
   }
 }