- 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
Interface for obtaining payment address
POST
https://api.easytransfer.cn/server
英文
The payment address will only be returned when the order status is waiting for payment, and an error code of 200003 will be returned for other statuses.
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:
get_special_pay_url
version
string
Version
callback_process
integer
required
data
object
required
order_id
string
order id
merchant_user_key
string
Merchant User Unique Identification Key
notify_url
string
Asynchronous notification address
back_jump_url
string
Jump address
back_page_url
string
Jump to page address
appid
string
The appid of the merchant's WeChat mini program
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": "get_special_pay_url",
"version": "string",
"callback_process": 0,
"data": {
"order_id": "string",
"merchant_user_key": "string",
"notify_url": "string",
"back_jump_url": "string",
"back_page_url": "string",
"appid": "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": "get_special_pay_url",
"version": "string",
"callback_process": 0,
"data": {
"order_id": "string",
"merchant_user_key": "string",
"notify_url": "string",
"back_jump_url": "string",
"back_page_url": "string",
"appid": "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 [object {1}]
Data
pay_config_list
array [object {4}]
required
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": [
{
"pay_config_list": [
{
"pay_url": "string",
"pay_type": 0,
"appid": "string",
"original_id": "string"
}
]
}
],
"sensitive_data": [
{}
],
"return_info": "string",
"extend_info": "string",
"sign": "string",
"aeskey": "string"
}