您的位置 : 文档中心 -> API信息

com.alibaba.trade:alibaba.trade.quotationOrder.create-1
创建订单 (采购询报价) 免费

大企业采购专用。根据报价单ID创建询报价业务订单。注意,当报价单中包含超过50条详细信息时会自动拆单,届时将返回多个订单号

API用户授权类型

需要授权

系统级输入参数

名称 类型 是否必须 描述
_aop_timestamp String 请求时间戳
_aop_signature String 请求签名
access_token String 用户授权令牌

应用级输入参数

名称 类型 是否必须 描述 示例值 默认值
+ makeSingleOrderGroup alibaba.openplatform.trade.BizMakeSingleOrderGroup 下单详情信息 {"receiveAddressGroup":{"address":"聚合路699号","areaCode":"330108","fullName":"洪洲阳","mobile":"13817748888","postCode":"311200"}}
+ quotationInfo alibaba.openplatform.trade.QuotationIdParam 询报价单参数标志 {"buyerMemberId":"b2b-2248564064","quoteItemIds":[1107742990902],"supplyNoteId":"959751330902"}
subBiz java.lang.String 下单流程类型,普通询报价:"buyoffer";分阶段付款:"bostep";多种类交易(item种类大于50个):"mulitem";其他方式,在交易下单页面选取:"other"; buyoffer
subUser Boolean 是否子账号 true
subUserId Long 子账号userid 122455
subLoginId String 子账号登录ID 测试:子账号1

返回结果

名称 类型 是否必须 描述 示例值
+ orderResult alibaba.openplatform.trade.result.TradeCreateGeneralOrderResult 订单创建结果 {}
errorCode String 错误码 true
errorMessage String 错误信息

返回结果

返回多订单出参示例

  {
  "orderResult": {
    "success": true,
    "commitResults": [
      {
        "customOffer": false,
        "orderAmmount": 200,
        "orderId": 167689972437615400,
        "success": true,
        "orderModel": {
          "sellerAlipayId": "2088****90002805",
          "buyerUserId": 281****054,
          "orderEntryModel": [
            {
              "id": 167689972437615400,
              "tbId": 167689972437615400,
              "succSumPayment": 0,
              "outOrderId": "634041816420"
            }
          ],
          "buyerAlipayId": "2088****92613764",
          "buyerMemberId": "b2b-****0054a915f",
          "id": 167689972437615400,
          "tradeTypeStr": "50060",
          "sellerMemberId": "b2b-****624086",
          "succSumPayment": 200,
          "sellerUserId": 224****4086,
          "outOrderId": "634041816420"
        }
      },
      {
        "customOffer": false,
        "orderAmmount": 9000,
        "orderId": 167689972438615400,
        "success": true,
        "orderModel": {
          "sellerAlipayId": "20886****712805",
          "buyerUserId": 28****10054,
          "orderEntryModel": [
            {
              "attr": [
                {
                  "value": "634041816471",
                  "key": "ods_ump_outid"
                }
              ],
              "id": 167689972488615400,
              "tbId": 167689972488615400,
              "succSumPayment": 0,
              "outOrderId": "634041816471"
            }
          ],
          "buyerAlipayId": "208861149****764",
          "buyerMemberId": "b2b-28****0054a915f",
          "id": 167689972438615400,
          "tradeTypeStr": "50060",
          "sellerMemberId": "b2b-22****4086",
          "succSumPayment": 9000,
          "sellerUserId": 22****4086,
          "outOrderId": "634041816421"
        }
      }
    ],
    "mutilOrderPublicData": {
      "supportInvoice": false
    },
    "failOrderMap": [],
    "successOrderMap": [
      {
        "key": "quotation_1",
        "value": {
          "customOffer": false,
          "orderModel": {
            "sellerAlipayId": "208861****712805",
            "buyerUserId": 281****0054,
            "orderEntryModel": [
              {
                "id": 167689972437615400,
                "tbId": 167689972437615400,
                "succSumPayment": 0,
                "outOrderId": "634041816420"
              }
            ],
            "buyerAlipayId": "208861****613764",
            "buyerMemberId": "b2b-2****10054a915f",
            "id": 167689972437615400,
            "tradeTypeStr": "50060",
            "sellerMemberId": "b2b-224****4086",
            "succSumPayment": 200,
            "sellerUserId": 22****24086,
            "outOrderId": "634041816420"
          },
          "orderAmmount": 200,
          "success": true,
          "orderId": 167689972437615400
        }
      },
      {
        "key": "quotation_0",
        "value": {
          "customOffer": false,
          "orderModel": {
            "sellerAlipayId": "20886****90712805",
            "buyerUserId": 2813****54,
            "orderEntryModel": [
              {
                "attr": [
                  {
                    "value": "634041816434",
                    "key": "ods_ump_outid"
                  }
                ],
                "id": 167689972451615400,
                "tbId": 167689972451615400,
                "succSumPayment": 0,
                "outOrderId": "634041816434"
              }
            ],
            "buyerAlipayId": "20886****92613764",
            "buyerMemberId": "b2b-28****0054a915f",
            "id": 167689972438615400,
            "tradeTypeStr": "50060",
            "sellerMemberId": "b2b-22****24086",
            "succSumPayment": 9000,
            "sellerUserId": 224****4086,
            "outOrderId": "634041816421"
          },
          "orderAmmount": 9000,
          "success": true,
          "orderId": 167689972438615400
        }
      }
    ]
  }
} 

API工具

SDK 示例