Upload photo

Uplaoad user photo

Http method and path
  • GET /open/api/kyc/share/fileUpload
Http body

Element

Mandatory

Data Type

Remarks

file

Y

stream

file size(Maximum 5M)

requestNo

Y

string

Request number

type

Y

enum

Front of IDcard:idFront
Back of IDcard:idBack
Face:Front face
aml report:amlReport
idv report:idvReport

notices

  • Supported formats for document photos and face photos: jpg, jpeg, png
  • Supported format for AML/IDV reports: pdf
  • All types must be uploaded except for the back side of the document, or the verification will fail.

Request Example

{
    "file": "",
    "requestNo": "123",
    "type": "idFront"
}

Response Parameter

Data TypeData TypeRemarks
successbooleanSuccess flag
errorbooleanFail flag
msgstringreturn message
codeintegerreturn code
modelObjectreturn data
traceIdstringtraceId

Response Example

{
    "code": "0",
    "msg": "SUCCESS",
    "model": null,
    "traceId": "652366764a52596446c629939e486913",
    "success": true,
    "error": false
}

Remarks

  • For more error codes, please refer to the error code descriptions on the homepage.