跳到主要内容

换汇结果查询

请求地址

[POST] /v1/mid-open-api/exchange/query
需要验证签名

接口描述

通过换汇申请订单号或者平台返回订单号查询换汇结果

请求头

ParameterTypeRequiredDescription
AuthorizationstringMaccess_token
Content-TypestringMapplication/json

请求参数

ParameterTypeRequiredDescription
client_idstring(64)M客户ID
order_idstring(64)C平台订单ID , 与客户订单号二选一
partner_order_idstring(64)C客户订单号 , 与平台订单号二选一

返回响应

ParameterTypeRequiredDescription
partner_order_idstring(64)M客户订单号
order_idstring(64)M平台订单号
client_idstring(64)M客户ID
statusstring(64)M状态 ,见换汇申请文档
sell_currencystring(3)M卖出币种
buy_currencystring(3)M买入币种
sell_amountdecimal(18,2)M卖出金额
buy_amountdecimal(18,2)M买入金额
create_timelongM下单时间
ratedecimal(18,9)M汇率
finish_timelongC完成时间,状态为终态时有值
fail_reasonstringC失败原因,状态为失败时有值

返回示例

    {
"code": 200,
"message": "SUCCESS",
"data": {
"rate": 0.912659,
"status": "PROCESSING",
"created": 1692176037000,
"finish_time": null,
"order_id": "OE2308160000364769",
"client_id": "IT8623081103775418152",
"partner_order_id": "test_b1988c893f1f",
"sell_currency": "USD",
"buy_currency": "EUR",
"sell_amount": 52.08,
"buy_amount": 56.33,
"fail_reason": null
}
}

错误码

错误码描述解决方案
900000system error系统错误,请联系PingPong技术人员核查
900002illegal param参数有误,请根据提示更正信息
900004order not exist换汇申请不存在,请核对后再发起