创建新购订单-计费外接

最近更新时间:11/9/2023, 4:22:11 PM作者:andrewren(任豪)

接口描述

接口请求域名:http://billing-api.{工业环境域名}

接口类型:OpenAPI

接口请求方式:POST

接口名:CreateOrderOut

接口是否需要携带Token:是

本接口用于计费外接方式创建新购订单。

输入参数

字段名 字段类型 字段描述
Action String openapi公共参数,本接口取值:CreateOrderOut
ProductId string 产品ID
ProductName string 产品名称
BuyType int32 订单类型,1-新购,不需要传入
SellerType int32 服务商类型,不需要则填入0
SellerAccountID string 卖方账号ID,,没有传'none'
SellerCorpName string 商品服务商企业名称,没有传'none'
SellerNickName string 服务商联系姓名,没有传'none'
SellerMobile string 服务商联系电话,没有传'none'
SellerEmail string 服务商联系邮箱,没有传'none'
SellerStoreId int64 店铺ID,没有传'0'
SellerCorpID int64 服务商企业ID,没有传'0'
ProductSource int64 商品来源,工业云提供(iop_third)
Bid int32 业务ID,工业云提供( 1004)
NotifyUrl string 通知发货回调的url,仅本地计费需要,公有云计费不需要
TotalPriceOriginal int64 原售价
TotalPriceDeal int64 成交价
DetailProducts Array of DetailProduct 商品详细信息
ExternalID ExternalID 外部关联订单ID(腾讯云产品不传)

DetailProduct

字段名 字段类型 字段描述
SpecUuid string 产品规格ID,商品规格号,没有填'none'
SaleSpecName string 产品规格名称,商品规格号,没有填'none'
TimeSpan int64 购买时长
TimeUnit string 购买时间单位: y(年) m(月) d(天)t(一次性买断))
Quantity int32 数量
ProductAppId string 商品所属模块,没有填'none'
productDeliveryType int32 交付类型 1-人工交付; 2- 自动交付
ProductType string 商品类型:cvm, cbs, ip,没有填'none'
PriceOriginal int64 单个-原售价(单位 分)
PriceDeal int64 单个-成交价(单位 分)
AttachInfo string 附加信息,json串

ExternalID

字段名 字段类型 字段描述
BigIdealId string 外部关联订单ID
OrderIds string[] 外部子订单ID

输出参数

字段名 字段类型 字段描述
OrderID String 订单ID
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId

示例

示例1 请求例子

输入示例

{
        "Action":"CreateOrderOut",
        "BuyType":1,
        "SellerType":1,
        "SellerAccountID":"1",
        "SellerCorpName":"商品服务商企业名称,没有传'none'",
        "SellerNickName":"服务商联系姓名,没有传'none'",
        "SellerMobile":"服务商联系电话,没有传'none'",
        "SellerEmail":"服务商联系邮箱,没有传'none'",
        "SellerStoreId":1,
        "SellerCorpID":1,
        "ProductSource":"open_api",
        "Bid":1003,
        "NotifyUrl":"https://www.baidu.com/",
        "TotalPriceOriginal":100,
        "TotalPriceDeal":100,
        "DetailProducts":[
            {
               "ProductId":"ceshi",
                "ProductName":"ceshi",
                "SpecUuid":"商品规格号,没有填'none'",
                "SaleSpecName":"商品规格号名称,没有填'none'",
                "TimeSpan":3,
                "TimeUnit":"m",
                "Quantity":1,
                "ProductAppId":"商品模块,没有填 none",
                "ProductDeliveryType":1,
                "ProductType":"商品类型,没有填 none",
                "PriceOriginal":1,
                "PriceDeal":1,
                "AttachInfo":"商品其他附加信息json串"
                }
        ],
       "ExternalID":{
           "BigIdealId":"123123",
           "OrderIds":[
               "3435",
               "4343"
           ]
       }
}

输出示例

{
 "Response":{
        "OrderID":"1290259194263171072",
        "RequestId":"e9b0a5b2-06f7-4aa9-a0e4-c202d88f80a1"
      }
}

错误码

以下仅列出了接口业务逻辑相关的错误码

错误码 描述