NiKSi

مستندات api

مستندات استفاده API احراز هویت دیجیتال نیکسی

Get token

POST: https://niksi.tech/auth/users/signin?password=${your_password}&username=${your_username} 
HTTP/1.1 200 OK

:Response Body

${token_string_not_json}

Refresh Token

GET: https://niksi.tech/auth/users/refresh
HTTP/1.1 200 OK

:Header

Authorization: ${your_bearer_token}

:Response Body

${token_string_not_json}

Create new KYC transaction

POST: https://niksi.tech/services/kyc/user/transaction
HTTP/1.1 200 OK

:Header

Authorization: ${your_bearer_token}

:Response Body

{
  "id": 387,
  "inqCode": "8bdf9edb-2e05-474e-b5d3-ce5e48d70a2d",
  "state": "REGISTER",
  "callBackUrl": "string",
  "createDate": 1632661477845
}

:Request Body

{
  "age": 0, //optional
  "callBackUrl": "string",
  “resultCallBack”:”string”,
  "family": "string", //optional
  "idCode": "string", //optional
  "imageAddress": "string", //optional
  "instName": "string", //optional
  "name": "string", //optional
  "nationalCode": "string", //optional
  "phoneNumber": "string" //optional
}

ResultCallback

Pull result

GET: https://niksi.tech/services/kyc/user/log/inq/${inqId}
HTTP/1.1 200 OK

:Header

Authorization: ${your_bearer_token}

:Request Body

{
  "inqId": "8bdf9edb-2e05-474e-b5d3-ce5e48d70a2d",
  "history": [
    {
      "eventDate": "2021-01-01",
      "state": “KYC_SUCCESS”, or "STATUS": “KYC_FAILED”
    }
  ]
}

Push result

HTTP/1.1 200 OK

:Header

Authorization: ${your_bearer_token}

:Request Body

{
  "inqId": "8bdf9edb-2e05-474e-b5d3-ce5e48d70a2d",
  "state": “KYC_SUCCESS” or "STATUS": “KYC_FAILED”
}

در صورت داشتن سوال و نیاز به پشتیبانی لطفا اطلاعات تماس خود را برای ما ارسال نمایید، ما در اسرع وقت با شما تماس حاصل خواهیم کرد.

    021-73694988

    با ما تماس بگیرید