Skip to main content

UploadFile API

Endpoints

Live POST https://pay.onlinepay.ai/file/upload

Sandbox POST https://testpay.onlinepay.ai/file/file

Request Parameters

Basic Information

ParameterTypeRequiredDescription
merNoIntegerYesMerchant Number, Unique identifier assigned to the merchant by the onlinepay payment platform when registering with onlinepay
fileMultipartFileYes
typeStringYesFile suffix, such as .png
signStringYesSignature, MD5(type+merNo+PrivateKey) or RSA

Example Request

{
"merNo": "104001001",
"type": ".png",
"file": "file1",
"sign": "egwhertjnrytkumthnfbgdfvsd"
}

Responses Body

ParameterTypeRequiredDescription
codeStringYesIf the value is 00000, it will return success, other please refer to Error Code
messageStringYesInterface returns description
dataStringYesfid:file id

Example Responses

{
"code":"00000",
"message":"SUCCESS",
"data":"1727235173391.png"
}