功能介绍:包周期转按需下单接口
POSThttps://[endpoint].ctapi.ctyun.cn/v1/spuInst/transToPrePaid
Content-Type:application/json
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
params | Object | 是 | 请求参数 | |
params.prodSpecInstId | 525650b0f7cf4be9a1a244a7d5973f9d | string | 是 | 产品实例标识 |
params.propertys | List | 是 | 属性列表 | |
params.propertys.instId | 525650b0f7cf4be9a1a244a7d5973f9d | string | 是 | 实例标识 |
params.propertys.propertyInfos | List | 是 | 属性信息 | |
params.propertys.propertyInfos.attrNbr | AutoToNeed | string | 是 | 属性编码 |
params.propertys.propertyInfos.attrValue | CUS_300_1_0002 | string | 是 | 属性值 |
params.propertys.propertyInfos.tableColumn | false | Boolean | 是 | 是否表列 |
name | AutoToNeed | string | 是 | 名称 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | 800 | Integer | 响应状态码 |
message | success | String | 响应信息 |
returnObj | Object | 响应对象 |
请求示例:
POST https://dcs2-global.ctapi.ctyun.cn/v1/spuInst/transToPrePaid
{
"params":
{
"prodSpecInstId": "525650b0f7cf4be9a1a244a7d5973f9d",
"propertys": [
{
"instId": "525650b0f7cf4be9a1a244a7d5973f9d",
"propertyInfos": [
{
"attrNbr": "AutoToNeed",
"attrValue": "CUS_300_1_0002",
"tableColumn": false
}
]
}
]
},
"name": "AutoToNeed"
}
返回示例:
{
"statusCode": 800,
"returnObj": {
"masterOrderId": "7e89e7bab4254f979cfa18a801219ca9",
"masterOrderNo": "20211109203149191325",
"masterOrderType": "demoteProd",
"contractId": null,
"accountId": "9e4b629083164a61b6fccdef9b3b25bb",
"accountType": null,
"userId": "f295e4a1ea5c4dffa7e233317d48f009",
"description": null,
"isVirtualOrder": null,
"isAgencyOrder": null,
"payType": null,
"isTrialOrder": null,
"source": "ORD_121_13_0009",
"buildingChannel": null,
"finishedDate": null,
"finishType": null,
"createDate": "2021-11-0920:31:56",
"createStaff": "-1",
"statusCd": "ORD_117_23_0022",
"statusDate": null,
"updateStaff": "-1",
"updateDate": "2021-11-0920:31:56",
"remark": null,
"verNum": null,
"provinceId": "-1",
"lanId": "-1",
"regionId": "1",
"createOrg": "-1",
"updateOrg": "-1",
"extAccountId": null,
"extUserId": null,
"extContractId": null,
"customPrice": 0E-10,
"totalPrice": 0E-10,
"discountPrice": 0E-10,
"chargeOffType": null,
"packageType": null,
"orderId": null,
"eventType": null,
"eventTypeItem": null,
"ordApplyType": null,
"paymentPattern": null,
"paymentSite": null,
"paymentLimitation": null,
"paymentPlanInitialMonth": null,
"paymentChannel": null,
"extCustOrderId": null,
"orderMetaDTOs": null,
"shardingId": "9e4b629083164a61b6fccdef9b3b25bb"
},
"message": null
}