提交订单

HTTP API

HTTP 请求格式说明

  • 对于GET请求,参数需要通过URL传递
  • 对于Post请求,Body必须使用Json格式传递数据
  • 请求参数必须包含appIdtimestamp 和数据签名sign

HTTP 返回参数说明

参数名 参数类型 描述
code int 返回码,0为请求成功
msg string 返回消息

创建参会报名订单

HTTP 请求

Post https://opentest.31huiyi.com/api/Registration/Order/SubmitOrder

请求参数

{
   "data":{
        "bventId": "aa740000-0047-5254-ea9c-08d7bc27b772", // 会议id
        "attendeeTypeId": "aa740000-0047-5254-fa8e-08d7bc282010", // 参会人类别id
        "miniAppId": "",//小程序id
        "visitorId": "",//企点VisitorId
        "attendee": {
            "smsCode":"245891",
            "fields": [
                {
                    "fieldName": "fullName",
                    "fieldValue": "徐铉"
                },
                {
                    "fieldName":"company",
                    "fieldValue":"China"
                },
                {
                    "fieldName":"mobile",
                    "fieldValue":"15900020001"
                },
                {
                    "fieldName":"email",
                    "fieldValue":"15900020001@31huiyi.com"
                }
            ]
        },
        "items": [
            {
                "itemSkuId": "aa740000-0047-5254-736a-08d7bc282ac2", // 商品 skuId
                "itemSkuName": "嘉宾",
                "quantity": 1 // 数量
            }
        ]
   },
  "appId":"...",
  "sign":"...",
  "timestamp":"..."
}

响应结果

{
  "code":0,
  "msg":"",
  "data": {
    "orderId": "c3650000-c635-10e7-b8cf-08d7c4139cba", // 订单id
    "orderNo": "2003091821405912800", // 订单号
    "orderStatus": "Paid", // 订单状态
    "orderAmount": 0.00,  // 订单金额
    "status":0 //处理状态 0.创建成功 3.缺少手机验证码 4.手机验证码校验失败
  }
}

Was this article helpful?

Related Articles

Leave A Comment?