Open API
English
  • English
  • 简体中文
API DOC
API DOC
English
  • English
  • 简体中文
  1. API
  • Open API
    • 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
      • pay_type description
      • order_status description
      • status_code description
      • fee_type description
      • attachment_type description
      • country_code description
      • currency_code description
      • Gender Description
      • ID type Description
      • Funding Source Description
    • API
      • Order interface
        POST
      • Attachment upload interface
        POST
      • Interface for obtaining payment address
        POST
      • Order batch query interface
        POST
      • Get exchange rate interface
        POST
      • Obtain estimated amount
        POST
    • [Legacy] Asynchronous notification description v1
      • [Successful Payment] Asynchronous notification parameter description for successful payment
      • Explanation of Asynchronous Notification Signature Generation Process
    • Asynchronous notification description v2
      • Asynchronous Notification Description
      • Asynchronous Notification Signature Generation Process
      • [Successful Payment] Asynchronous notification parameter description for successful payment
      • [Order Status Change] Asynchronous notification parameter description for order status change
  1. API

Interface for obtaining payment address

POST
https://testapi.easytransfer.cn/server
server_type value get_special_pay_url
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

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://testapi.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

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"
}
Modified at 2024-12-12 02:40:58
Previous
Attachment upload interface
Next
Order batch query interface
Built with