换汇


汇率查询

端点目标 URL

生产环境请求地址:POST https://api.futurepay.global/api/v1/fx/rate

字段说明

调用的特定输入参数

字段名称必填类 型描述
directionOint查询方向 0:指定买入 1:指定卖出 默认为0
buyCcyMstring买入币种
sellCcyMstring卖出币种

响应data参数

字段名类型说明
sellCcyString商户请求流水号
buyCcyString状态 0-待审核 1-审核通过 2-审核拒绝
rateBigDecimal汇率
expireTimelong过期时间 单位时间戳 秒

集成

创建付款方调用输入

{
    "direction":1,
    "buyCcy":"USD",
    "sellCcy":"CNH"
}

创建付款方调用输出

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1763113556851,
    "data": {
        "sellCcy": "USD",
        "buyCcy": "CNH",
        "rate": 7.012345,
        "expireTime": 321382105521
    },
    "success": true
}

换汇汇率查询

端点目标 URL

生产环境请求地址:POST https://api.futurepay.global/api/v1/fx/inquiry

字段说明

调用的特定输入参数

字段名称必填类 型描述
directionOint查询方向 0:指定买入 1:指定卖出 默认为0
buyCcyMstring买入币种
sellCcyMstring卖出币种
amountMBigDecimal交易金额

响应data参数

字段名类型说明
sellingMoney商户请求流水号
buyingMoney状态 0-待审核 1-审核通过 2-审核拒绝
rateBigDecimal汇率
expireTimelong过期时间 单位时间戳 秒
tokenString询价token,发起换汇时需要携带发起
directionint汇率查询方向

Money

字段名类型说明
amountBigdecimal金额
currencyString币种
accuracyint精度

集成

换汇汇率查询调用输入

{
    "direction":1,
    "buyCcy":"USD",
  	"sellCcy":"CNH",
		"amount":100.00
}

换汇汇率查询调用输出

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1763113556851,
    "data": {
      "selling": {
        "currency":"CNH",
				 "amount":"100",
				"accuracy":2
      },
				"buying": {
        "currency":"USD",
				 "amount":"15.00",
				"accuracy":2
        },
				"direction":1,
        "token":"3213920195dsfksjq",
        "rate": 7.012345,
        "expireTime": 321382105521
    },
    "success": true
}

换汇申请

端点目标 URL

生产环境请求地址:POST https://api.futurepay.global/api/v1/fx/apply

字段说明

调用的特定输入参数

字段名称必填类 型描述
referenceMstring商户请求流水号,不可重复
tokenMstring换汇汇率查询token

响应data参数

字段名类型说明
tradeNostring换汇订单号
statusint状态 10:处理中,2000:成功,2500:失败,3000:取消

集成

换汇汇率查询调用输入

{
    "reference":"3213145131",
  "token":"23141242321sdsas"
}
  	  	

换汇汇率查询调用输出

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1763113556851,
    "data": {
      "tradeNo":"23132167udds",
			"status":10
    },
    "success": true
}


换汇申请

端点目标 URL

生产环境请求地址:POST https://api.futurepay.global/api/v1/fx/apply

字段说明

调用的特定输入参数

字段名称必填类 型描述
referenceMstring商户请求流水号,不可重复
tokenMstring换汇汇率查询token

响应data参数

字段名类型说明
tradeNostring换汇订单号
statusint状态 10:处理中,2000:成功,2500:失败,3000:取消

集成

换汇申请调用输入

{
    "reference":"3213145131",
  "token":"23141242321sdsas"
}
  	  	

换汇申请调用输出

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1763113556851,
    "data": {
      "tradeNo":"23132167udds",
      "status":10
}
	}					

换汇订单详情查询

端点目标 URL

字段说明

调用的特定输入参数

字段名称必填类 型描述
merchantReferenceOstring商户请求流水号,不可重复
tradeNoOstring换汇订单号

响应data参数

字段名类型说明
tradeNostring换汇订单号
statusint状态 10:处理中,2000:成功,2500:失败,3000:取消
buyAmountMoney买入金额
sellAmountMoney卖出金额
rateBigDecimal汇率
directionint换汇方向 0-买入 1-卖出
createTimelong创建时间 时间戳 单位秒

集成

换汇汇率查询调用输入

{
    "merchantReference":"3213145131",
  "tradeNo":"23141242321sdsas"
}
  	  	

换汇汇率查询调用输出

{
    "code": "0",
    "msg": "succeeded",
    "serverTime": 1763113556851,
    "data": {
       
      "tradeNo":"23132167udds",
      "status":10,
			"buyAmount": {
        "currency":"CNH",
				 "amount":"100",
				"accuracy":2
      },
			"sellAmount": {
        "currency":"USD",
				 "amount":"15.00",
				"accuracy":2
      },
      "rate":7.012345,
      "direction":1, 
      "createTime":32132141321
    },
    "success": true
}