Sumsub. Get verification data

POST https://exchange-core.whitebird.io/api/v1/merchant/client/{linkId}/sumsub/photos/external/upload

Request headers

NameTypeRequiredDescription
x-api-keyStringYesMerchant security key

Request params

NameTypeRequiredDescription
linkIdStringYesLinked client id

Request body

NameTypeRequiredDescription
kycLevelTypeStringYesMAIN or LIVENESS
actionIdStringNoApplied only when not null and kycLevelType = LIVENESS
tokenStringNoToken for forwarding

Response

{
"status": "ok"
}
{
 "message": "Upload url was not set",
 "code": "INVALID_VALUE"
}
{
 "message": "link not found",
 "code":"404"
 "status": "NOT_FOUND"
}
{
 "message": "invalid x-api-key",
 "code":"401"
 "status": "UNAUTHORIZED"
}

Example request

{
"kycLevelType": "MAIN/LIVENESS",
"actionId": "string", //optional. Applied only when not null and kycLevelType = LIVENESS
"token": "token for forwarding"
}
curl -X POST 'https://exchange-core.whitebird.io/api/v1/merchant/client/{linkId}/sumsub/{level_type}' \
  -H 'Content-Type: application/json'

When merchant init request for sending data Whitebird send data to merchant as photo arrays.
Each photo in “file” array has:

  • content-type header
  • filename

Example request

curl --location --request POST '<api-url-set-in-merchant-settings>' \
--form 'file=<sumsub-photo-1>' \
--form 'file=<sumsub-photo-2>' \
--form 'file=<sumsub-photo-3>' \
--form 'file=<sumsub-photo-4>' \
--form 'details="{\"token\": \"token for forwarding\"}"'