接口文档 / 体检支付接口

支付

POST/api/v2/open-agency/pe-charge/{id}/pay在线调试

请求参数

名称说明类型
Path 参数
id必填

id

string
Body 参数
payMode必填

1:现金 2:微信支付 3:阿里云 4:银行卡 7:现金券 8:美团支付 9:口碑支付 10:糯米支付 11:收钱吧 12:点评 13:付呗 14:拉卡拉 15:连连支付 16:有赞零售 17:有赞抵现 18:营销卡项

示例:1

integer
amount必填

支付金额(小数点前最多为12位,小数点后最多4位)

示例:1000

number
operatorId可选

操作人ID

示例:00000000000000000000000000000000

string

请求示例

json
{
  "payMode": 1,
  "amount": 1000,
  "operatorId": "00000000000000000000000000000000"
}

响应参数

名称说明类型
Body 参数
data可选

数据

object
id可选

体检收费单id

string
patientOrderId可选

体检就诊单id

string
chargeStatus可选

支付状态 10:待支付 20:支付成功 30:支付成功业务处理失败 40:支付失败

integer
errorMessage可选

错误信息

string

响应示例

json
{
  "data": {
    "id": "string",
    "patientOrderId": "string",
    "chargeStatus": 0,
    "errorMessage": "string"
  },
  "error": null
}

业务失败包装示意

json
{
  "data": null,
  "error": {
    "code": 11003,
    "message": "不支持的授权类型{grantType}"
  }
}

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

如有疑问,请扫码加入企业微信群咨询。

企业微信群二维码
没有匹配结果

诊所管家