Onerway
POST

申请退款

使用此接口为入金通知 Webhook 的交易申请退款,匹配入金成功的交易不支持退款。通过退款结果 Webhook 通知退款结果。

请求

apiKey
用于访问嵌入式金融 API 的 API key。
示例:
Content-Type
请求内容类型。
示例:
rechargeId
申请退款的充值 ID。
示例:
reasonForReturn
申请退款的原因。
示例:
可选值
AccountCannotBeIdentified
无法识别账户。
Other
其他原因。

请求示例

curl -X POST 'https://sandbox-baas.onerway.com/embedded-finance/api/v2/refund/apply' \
  -H 'apiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "rechargeId": 12345678,
  "reasonForReturn": "AccountCannotBeIdentified"
}'

响应

respCode
Onerway 返回的响应码;20000 表示请求成功。
示例:
respMsg
响应码对应的可读消息。
示例:
data
响应数据;成功示例中为 null。

响应示例

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": null
}
该接口暂未记录错误响应。