功能介绍:按需转包周期下单接口
POSThttps://[endpoint].ctapi.ctyun.cn/v1/spuInst/transChargeType
Content-Type:application/json
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
masterOrderType | toCycle | string | 是 | toCycle 转包周期 |
cycleType | ORD_101_11_0004 | string | 是 | 月 ORD_101_11_0004年 ORD_101_11_0006 |
cycleCnt | 1 | Int | 是 | |
resourceId | 76d1f92688cc4c22bb907a71debb1c3b | string | 是 | |
autoPay | true | Boolean | 否 | 是否自动付费 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | 800 | Integer | 响应状态码 |
message | success | String | 响应信息 |
returnObj | Object | 响应对象 |
请求示例:
POST https://dcs2-global.ctapi.ctyun.cn/v1/spuInst/transChargeType
{
"masterOrderType": "toCycle",
"cycleType": "ORD_101_11_0004",
"cycleCnt": "1",
"resourceId": "76d1f92688cc4c22bb907a71debb1c3b",
"autoPay": true
}
返回示例:
{
"statusCode": 800,
"message": "success",
"returnObj": {
"msg": null,
"returnObj": [{
"statusDate": "2022-11-11 10:46:27",
"iamUserId": null,
"orderId": null,
"chargeOffType": null,
"updateOrg": null,
"source": "ORD_121_13_0008",
"lanId": "8130100",
"packageType": "ORD_121_18_0006",
"payType": "ORD_100_11_0001",
"his": null,
"productInfos": null,
"serviceTag": null,
"chargingStatus": 0,
"extAccountId": null,
"finishedDate": null,
"accountType": null,
"extUserId": null,
"toBusiness": false,
"paymentPattern": null,
"orderMetaDTOs": null,
"eventType": "-1",
"provinceId": "8130000",
"createStaff": null,
"ordApplyType": "ORD_100_04_0002",
"paymentChannel": null,
"accountId": "fa87d145a35b4513b06e78f37a2e0ea3",
"extCustOrderId": null,
"agencyAccountId": null,
"masterOrderType": "toCycle",
"shardingId": "fa87d145a35b4513b06e78f37a2e0ea3",
"isTrialOrder": null,
"updateStaff": null,
"updateDate": null,
"paymentSite": null,
"verNum": 0,
"eventTypeItem": null,
"isAgencyOrder": null,
"masterOrderNo": "20221111104626179057",
"totalPrice": 2122.5,
"isVirtualOrder": null,
"discountPrice": null,
"finlePrice": null,
"batchOrderId": null,
"description": null,
"finalPrice": 2122.5,
"remark": null,
"provincialManagerCode": null,
"finishType": null,
"paymentLimitation": null,
"toBusinessDate": null,
"extContractId": null,
"calculatePrice": null,
"paymentPlanInitialMonth": null,
"createDate": null,
"acctOriginalChannel": "CUS_103_05_0002",
"customPrice": null,
"createOrg": null,
"buildingChannel": "ORD_121_13_0002",
"statusCd": "ORD_117_23_0001",
"userId": "803195a1c6a44e558820723d77b3d749",
"masterOrderIds": null,
"masterOrderId": "d43999e0ef7143dcb04156c888270d0f",
"regionId": "0",
"yunNan": null,
"contractId": null,
"masterOrderTypeName": null
}],
"message": null,
"statusCode": 800
}
}