Upload Supporting Documents

Upload cardholder document

Request URL

POST https://card-api-sandbox.pagsmile.com/issuing/holder/upload-document

Request Header

Name
Type
Description

Content-Type*

string

application/json; chartset=UTF-8

Request Body

Refer to : common

Biz_data :

Name
Type
Description

holder_id*

long

holder ID

file_type*

integer

Tip: ID and address are required

file_name*

string(5-80)

file name,

Supported formats:pdf、jpg、png、bmp、tif、gif、pcx、tga、exif、fpx、svg、psd、cdr、pcd、dxf、ufo、eps、ai、raw、WMF、webp、avif、apng

for example:xxx.pdf

file_content*

string

File content

Base64 encoding.

Max size: 2M

file_desc

string(128)

file description

Response

{
    "code": "10000",
    "msg": "Success",
    "random_key":"abssdddd2wdw==",
    "sign_type": "RSA",
    "app_id": "2017051914172236111"
}

Example

curl --location --request POST 'https://card-api-sandbox.pagsmile.com/issuing/holder/upload-document' \
--header 'Content-Type: application/json' \
--data-raw '{
    "app_id": "2017051914172236111",
    "partner_id": "000000000000001",
    "sub_partner_id": "",
    "timestamp": "2011-09-23 04:24:03",
    "format": "JSON",
    "version": "2.0",
    "random_key": "jJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE",
    "request_id": "F6bEd39c-EecF-C1a2-AFcb-bA9BAeC6",
    "sign_type": "RSA",
    "biz_data": {
        "holder_id": "8512345678",
        "file_type": 1,
        "file_name": "aaa11.pdf",
        "file_content": "xxxxxxx",
        "file_desc": "desc"
    } 
}'

Note: 201************11 is pagsmile's test app id for sandbox

Please use your own app_id when testing.

Last updated