- Document Revision History
- Overview of Study Abroad Payment API Access
- API Call Address
- Request for serial number generation instructions
- API Request Parameter Description
- API Response Parameter Description
- Interface encryption and signing steps
- Interface decryption and verification process
- Constant Description
- API
- Asynchronous notification description v1
- Asynchronous notification description v2
Attachment upload interface
POST
https://api.easytransfer.cn/server
英文
The limit for uploading attachments of each attachment type is 5
Request
Body Params application/json
serial_number
string
Request serial number
merchant_number
string
Merchant ID
sub_merchant_number
string
Second level merchant account
server_type
enum<string>
Service Type
Allowed value:
upload_attachment
version
string
Version
callback_process
integer
required
data
object
required
order_id
string
order id
attachment_type
integer
attachment type
base64
string
attachement Base64
file_name
string
file name
sensitive_data
object
required
sign
string
required
aeskey
string
required
extend_info
string
required
return_info
string
required
Example
{
"serial_number": "string",
"merchant_number": "string",
"sub_merchant_number": "string",
"server_type": "upload_attachment",
"version": "string",
"callback_process": 0,
"data": {
"order_id": "string",
"attachment_type": 0,
"base64": "string",
"file_name": "string"
},
"sensitive_data": {},
"sign": "string",
"aeskey": "string",
"extend_info": "string",
"return_info": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.easytransfer.cn/server' \
--header 'Content-Type: application/json' \
--data-raw '{
"serial_number": "string",
"merchant_number": "string",
"sub_merchant_number": "string",
"server_type": "upload_attachment",
"version": "string",
"callback_process": 0,
"data": {
"order_id": "string",
"attachment_type": 0,
"base64": "string",
"file_name": "string"
},
"sensitive_data": {},
"sign": "string",
"aeskey": "string",
"extend_info": "string",
"return_info": "string"
}'
Responses
🟢200成功
application/json
Body
status_code
string
Status Code
>= 6 characters<= 6 characters
Example:
000000
message
string
Message
>= 0 characters<= 100 characters
count
integer
Count
data
array[string]
Data
sensitive_data
array [object]
Sensitive Data
return_info
string
return_info
extend_info
string
Extend Info
sign
string
Sign
aeskey
string
aes encryption key
Example
{
"status_code": "000000",
"message": "string",
"count": 0,
"data": [
"string"
],
"sensitive_data": [
{}
],
"return_info": "string",
"extend_info": "string",
"sign": "string",
"aeskey": "string"
}