文档中心 > 返回结果
返回结果

最近更新时间:2021-09-17

调用紫光云交易和账单管理API后返回数据采用统一格式,返回结果格式主要为JSON格式。本文档中的返回示例为了便于用户查看,做了格式化处理,实际返回结果是没有进行换行、缩进等处理的。

成功结果

调用获取订单列表API后,如果返回的HTTP状态码为:200,代表调用成功。

示例

{    "OrderList": {        "Order": [
            {                "PromotionAmount": 0,                "Note": null,                "InstanceId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6",                "Id": "1144155076852449280",                "PromotionRule": null,                "PaidAmount": null,                "FinalPrice": 17.5,                "OrderCategory": "NEW",                "OrderNo": "P21785800229503",                "PayTime": null,                "CreateTime": 1561622802000,                "UpdateTime": 1561622802000,                "ChargeType": "postpaid",                "CouponAmount": 0,                "IsOffine": false,                "IsInvoice": false,                "PayType": "YEAR_MONTH",                "UserId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6",                "ProductCategory": "DATA_HARD_DISK",                "AccountId": null,                "AccountName": null,                "TotalPrice": 17.5,                "UserName": "haha",                "ProductRegionId": "8b128f0c-e9ad-472c-9c20-451b9f310e94",                "ProductRegionName": "cloudos-tj",                "OrderStatus": "UNPAID"
            },
            {                "PromotionAmount": 0,                "Note": null,                "InstanceId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6",                "Id": "1144119593783001088",                "PromotionRule": null,                "PaidAmount": null,                "FinalPrice": 0,                "OrderCategory": "NEW",                "OrderNo": "P21784954245923",                "PayTime": 1561614343000,                "CreateTime": 1561614343000,                "UpdateTime": 1561614343000,                "ChargeType": "postpaid",                "CouponAmount": 0,                "IsOffine": false,                "IsInvoice": false,                "PayType": "CHARGING_HOURS",                "UserId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6",                "ProductCategory": "DATA_HARD_DISK",                "AccountId": null,                "AccountName": null,                "TotalPrice": 0,                "UserName": "haha",                "ProductRegionId": "8b128f0c-e9ad-472c-9c20-451b9f310e94",                "ProductRegionName": "cloudos-tj",                "OrderStatus": "PAID"
            }
        ]
    },    "TotalCount": 80,    "PageNum": 1,    "PageSize": 2}

错误结果

调用紫光云交易和账单管理API后,如果返回的HTTP状态码为:400500,代表调用失败,系统将不会返回结果数据。此时,返回的消息体中包含:具体的错误代码、错误信息、全局唯一的请求ID:RequestId。您可以通过错误码定位问题。

示例

{    "RequestId": "7463B73D-35CC-4D19-A010-6B8D65D242EF",    "Code": "SystemError",    "Message": "System Error"}