- 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
Order interface
POST
https://api.easytransfer.cn/server
英文
Please note that if an unpaid order is not paid within 7 days, it will be closed and the merchant will need to place the order again.
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:
add_special_rent_order
version
string
Version
callback_process
integer
required
data
object
required
sensitive_data
object
required
institution_code
string
Institution code
institution_name
string
Institution name/ Apartment name
merchant_order_id
string
Merchant order number
<= 50 characters
merchant_user_key
string
Merchant User Unique Identification Key
<= 200 characters
country_code
string
Country code
<= 5 characters
currency_code
string
Currency code
source_country_code
string
source country code
price_mode
integer
Pricing Model
tuituon
number
tuition(Currency of the order)
pay_currency_code
string
Payment currency code
merchant_service_fee
number
Merchant service fee
merchant_service_fee_currency_code
string
Currency code of merchant service fee
order_tuition
number
order tuition(Currency of the order)
first_name_en
string
first_name
middle_name_en
string
middle_name
last_name_en
string
last_name
name_ch
string
Chinese name
student_id_number
string
Student ID number
id_type
integer
ID Type
student_tel_code
string
Tel Code
student_mobile
string
Mobile
student_email
string
Student Email
student_address
string
Student address
school_name
string
School
wechat_number
string
Wechat Number
invoice_number
string
Invoice Number
fee_type_list
array [object {2}]
Payment Purpose List
notify_url
string
Asynchronous notification address
status_change_notify_url
string
Order status change 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
city_name_en
string
City English name
city_name_ch
string
Chinese name of the city
data_of_birth
string
date of birth
gender
integer
gender
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": "add_special_rent_order",
"version": "string",
"callback_process": 0,
"data": {},
"sensitive_data": {
"institution_code": "string",
"institution_name": "string",
"merchant_order_id": "string",
"merchant_user_key": "string",
"country_code": "strin",
"currency_code": "string",
"source_country_code": "string",
"price_mode": 0,
"tuituon": 0,
"pay_currency_code": "string",
"merchant_service_fee": 0,
"merchant_service_fee_currency_code": "string",
"order_tuition": 0,
"first_name_en": "string",
"middle_name_en": "string",
"last_name_en": "string",
"name_ch": "string",
"student_id_number": "string",
"id_type": 0,
"student_tel_code": "string",
"student_mobile": "string",
"student_email": "string",
"student_address": "string",
"school_name": "string",
"wechat_number": "string",
"invoice_number": "string",
"fee_type_list": [
{
"fee_type": "string",
"fee_type_desc": "string"
}
],
"notify_url": "string",
"status_change_notify_url": "string",
"back_jump_url": "string",
"back_page_url": "string",
"appid": "string",
"city_name_en": "string",
"city_name_ch": "string",
"data_of_birth": "string",
"gender": 0
},
"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": "add_special_rent_order",
"version": "string",
"callback_process": 0,
"data": {},
"sensitive_data": {
"institution_code": "string",
"institution_name": "string",
"merchant_order_id": "string",
"merchant_user_key": "string",
"country_code": "strin",
"currency_code": "string",
"source_country_code": "string",
"price_mode": 0,
"tuituon": 0,
"pay_currency_code": "string",
"merchant_service_fee": 0,
"merchant_service_fee_currency_code": "string",
"order_tuition": 0,
"first_name_en": "string",
"middle_name_en": "string",
"last_name_en": "string",
"name_ch": "string",
"student_id_number": "string",
"id_type": 0,
"student_tel_code": "string",
"student_mobile": "string",
"student_email": "string",
"student_address": "string",
"school_name": "string",
"wechat_number": "string",
"invoice_number": "string",
"fee_type_list": [
{
"fee_type": "string",
"fee_type_desc": "string"
}
],
"notify_url": "string",
"status_change_notify_url": "string",
"back_jump_url": "string",
"back_page_url": "string",
"appid": "string",
"city_name_en": "string",
"city_name_ch": "string",
"data_of_birth": "string",
"gender": 0
},
"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 {4}]
Data
order_id
string
ET order id
pay_config_list
array [object {4}]
required
tuition_rmb
number
optional
counter_fee
number
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": [
{
"order_id": "string",
"pay_config_list": [
{
"pay_url": "string",
"pay_type": 0,
"appid": "string",
"original_id": "string"
}
],
"tuition_rmb": 0,
"counter_fee": 0
}
],
"sensitive_data": [
{}
],
"return_info": "string",
"extend_info": "string",
"sign": "string",
"aeskey": "string"
}