UploadFile API
Endpoints
Live POST
https://pay.onlinepay.ai/file/upload
Sandbox POST
https://testpay.onlinepay.ai/file/file
Request Parameters
Basic Information
Parameter | Type | Required | Description |
---|---|---|---|
merNo | Integer | Yes | Merchant Number, Unique identifier assigned to the merchant by the onlinepay payment platform when registering with onlinepay |
file | MultipartFile | Yes | |
type | String | Yes | File suffix, such as .png |
sign | String | Yes | Signature, MD5(type+merNo+PrivateKey) or RSA |
Example Request
{
"merNo": "104001001",
"type": ".png",
"file": "file1",
"sign": "egwhertjnrytkumthnfbgdfvsd"
}
Responses Body
Parameter | Type | Required | Description |
---|---|---|---|
code | String | Yes | If the value is 00000, it will return success, other please refer to Error Code |
message | String | Yes | Interface returns description |
data | String | Yes | fid:file id |
Example Responses
{
"code":"00000",
"message":"SUCCESS",
"data":"1727235173391.png"
}