# 创建消费订单接口

# 请求

POST https://apigate.glodon.com/meter/consumeOrders
1

# 请求参数

{
  "appKey":"UBOFrpVMZXZdqDX3ucJYPjPQ6S1CUdPg",
  "resourceId":"resource_test_id",
  "point": 1,
  "description":"测试消费订单调用",
  "bizTime":"2020-06-30 11:22:23",
  "userId":"111111111"
}
1
2
3
4
5
6
7
8
参数名 参数类型 是否必填 描述
appKey String ISV appKey
resourceId String SP的service ID(等同于account的resourceId)
bizId String SP的业务定单ID
point BigDecimal 耗点
chargeRule String 扣点规则说明(服务说明)
description String 描述
bizTime String SP的业务发生时间,例如api调用时间
tradeType String 交易类型
userId String 用户ID
bizData String 业务质量数据,json格式

# 返回参数

{
  "code": "success",
  "message": null,
  "data": {
    "id": 1898373840072704,
    "appKey": "UBOFrpVMZXZdqDX3ucJYPjPQ6S1CUdPg",
    "resourceId": "wm_resource_id1",
    "bizId": null,
    "pointCost": 1,
    "status": "success",
    "tradeType": null,
    "createTime": "2020-06-30 11:47:09",
    "updateTime": "2020-06-30 11:47:09",
    "description": "测试消费订单调用",
    "userId": "111111111",
    "bizData":null,
    "errorMsg":null
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
参数名 参数类型 描述
id Long 订单编号
appKey String ISV appKey
resourceId String SP的service ID(等同于account的resourceId)
bizId String SP的业务定单ID
pointCost BigDecimal 耗点
status String 状态(”fail”;“success”;“cancel”)
tradeType String 交易类型
chargeRule String 扣点规则说明(服务说明)
description String 描述
userId String 用户ID
bizData String 业务质量数据,json格式
errorMsg String 失败信息
  • 在线客服

  • 意见反馈