Cardholder Document Upload

POST Cardholder Document Upload

POST /api/mastercard/holderPhotoUpload.html

Document upload status: 1 - Upload successful, 2 - Upload failed

Request Body

{
  "holderId": "1234567890",
  "photoData": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQw6AJue90hxccUAACFeEAAAhAAAIX/2Q==",
  "photoType": "3",
  "randomStr": "abcdef12345ssss67890ssss"
}

Request Parameters

NameTypeRequiredBase64 EncodingField NameDescription
holderIdstringtruenoneCardholder IDThe ID of the cardholder
photoTypeintegertruenoneType1 - ID card front, 2 - ID card back, 3 - Passport, 5 - Proof of address, 8 - Facial photo
photoDatastringtrueYPhoto DataPhoto data (base64-encoded string, maximum 1MB)
randomStrstringtruenoneRandomstrA random string of 32 characters

Example Response

200 Response

{
  "errMsg": "string",
  "uploadStatus": 0
}

Response Fields

NameTypeRequiredConstraintsDescription
errMsgstringtruenoneStatus description
uploadStatusintegertruenone1 - Upload successful, 2 - Upload failed