文档
测试

2.4.3 translate

POST
/api/user/transfer

接口描述

Transfer in and transfer out members' money (availble to multiple currencies)

Headers

参数名
类型
描述
必填
Authorization
string
Example:9b358d8549004bd0bb48b3f94ae7e2a5
必填
Content-Language
string
Language packs (optional), the default language for opening an account, Example:ENG
必填

Form Data

参数名
类型
描述
必填
UserName
string
Transfer username Example:ceshi01
必填
Type
string
Transfer-In : IN, Transfer-Out : OUT Example:IN
必填
Currency
string
Optional. Currency, the default is the currency of the account. Example: CNY. If the user's account opening currency is different from the merchant's default currency, this item is required.
必填
Money
number
Transaction amount, available to 2 decimal places. Example:1
必填
ID
number
Teansfer order number, by letters, numbers and underscores, up to 32 characters long. Example : 15855743353601
必填

Response

参数名
类型
描述
必填
success
number
Example : 1
必填
msg
string
Example : Transaction Successful
必填
info
object
Data dictionary
必填
ID
number
Transfer order number of system. Example:4782
必填
OrderID
string
Customer's transfer order number. Example:15855743353601
必填
Currency
string
Currency of this transfer example:CNY
必填
Balance
number
Member's balance after transfer (local currency) . Example:1005337.83
必填
Credit
number
Member's remaining points after transfer Example:1005337.8301
必填

Description / Example

`curl https://api.xx.com/api/user/translate -X POST -H "Authorization: 9b358d8549004bd0bb48b3f94ae7e2a5" -H "Content-Type:application/x-www-form-urlencoded" -d "UserName=ceshi01&Type=IN&Currency=CNY&Money=1&ID=1585574335360"` Response body example: ```language { success: 1, msg: "trnaslate success", info: { ID: 4777, OrderID: "1585574335360", Currency:"CNY", Balance: 1005336.83, Credit: 1005336.8301 } } ``` ### Exception handling If an error page content other than the JSON format is returned or an exception prompt as shown below, it means that the transfer cannot be determined at this time. Please use the *2.4.2 transferinfo / transfer order query* interface for status query to confirm whether the transfer is successful. ``` { "success":0, "msg":"Exception reason description", "info":{ "RequestID":"Exception number", "ErrorType":"Exception" } } ```