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
Name | Type | Required | Base64 Encoding | Field Name | Description |
---|---|---|---|---|---|
holderId | string | true | none | Cardholder ID | The ID of the cardholder |
photoType | integer | true | none | Type | 1 - ID card front, 2 - ID card back, 3 - Passport, 5 - Proof of address, 8 - Facial photo |
photoData | string | true | Y | Photo Data | Photo data (base64-encoded string, maximum 1MB) |
randomStr | string | true | none | Randomstr | A random string of 32 characters |
Example Response
200 Response
{
"errMsg": "string",
"uploadStatus": 0
}
Response Fields
Name | Type | Required | Constraints | Description |
---|---|---|---|---|
errMsg | string | true | none | Status description |
uploadStatus | integer | true | none | 1 - Upload successful, 2 - Upload failed |
Updated 9 days ago