POST FreezePay/Freeze

申请资金冻结接口,收银员使用扫码设备读取用户手机“付款码”信息后,将“付款码”信息通过本接口发起资金冻结,若约定时间内没有明确的授权结果再调用,请调用【取消资金冻结接口】取消本次资金冻结。

请求信息

请求URI参数

请求数据参数

冻结资金信息

FreezeInfo
名称说明类型扩展说明
store_no

门店编码.

字符串

必填

字符长度: 必须在 1 和 32 之间

operator

操作员.

字符串

必填

字符长度: 必须在 1 和 16 之间

barcode

付款码

字符串

必填

字符长度: 必须在 18 和 18 之间

amount

本次交易金额,以分为单位,不超过10位纯数字字符串

整数

必填

数值范围: 必须在 1 和 9999999999 之间

order_no

商户单据号,必须在此商户系统内唯一,推荐 机构号+门店号+订单编号

字符串

必填

字符长度: 必须在 1 和 32 之间

order_title

订单描述

字符串

请求数据格式

application/json, text/json

例子:
{
  "store_no": "sample string 1",
  "operator": "sample string 2",
  "barcode": "sample string 3",
  "amount": 4,
  "order_no": "sample string 5",
  "order_title": "sample string 6"
}

响应数据

资源说明

本次资金冻结结果

ResultInfoOfFreezeResultInfo
名称说明类型扩展说明
code

ResultCode

msg

字符串

data

FreezeResultInfo

响应数据格式

application/json, text/json

例子:
{
  "code": "SUCCESS",
  "msg": "sample string 1",
  "data": {
    "transaction_status": "CREATE",
    "error": "sample string 1",
    "order_title": "sample string 2",
    "store_no": "sample string 3",
    "paytype": "WECHATPAY_NATIVE",
    "amount": 4,
    "order_no": "sample string 5",
    "transaction_no": "sample string 6",
    "transaction_time": "sample string 7",
    "buyer": "sample string 8"
  }
}