云商店-查询订单:错误码

时间:2024-11-21 17:38:51

错误码

表2 错误码

http状态码

resultCode

resultMsg

描述

200

MKT.0000

Success.

请求成功

500

MKT.0999

System internal error.

其它服务内部错误

500

MKT.0100

Failure of input parameter

输入参数校验失败

参数范围超限,非法值或格式错误

400

MKT.0101

Invalid parameter

参数无效

输入非接口定义的参数,多参数或少必选参数

400

MKT.0199

Request parameter error

请求参数错误

其它参数错误

401

MKT.0150

Illegal operation

通常是进行了不被授权的操作,例如instanceId对应的产品不是AK/SK对应的商家发布的

401

MKT.0151

No authority

无API访问权限

token非商家角色

401

MKT.0154

Illegal token

鉴权失败

token无效

406

MKT. 0250

Access frequency overlimit

访问频率超限

500

MKT.9001

Instance ID not found.

实例ID不存在(商品续费、过期、资源释放接口可能返回)

500

MKT.9002

Invalid usage enties.

计量实体无效

500

MKT.9003

Usage records extends size limit.

计量记录数超出限制(100条)

500

MKT.9004

Record beginTime extends Limit.

计量记录的起始时间超出有效期(当前时间21天以内)

其中,仅在resultCode为MKT.0100、MKT.0150、MKT.0250、MKT.9001、MKT.9002、MKT.9004、MKT.9005时,失败响应中包含extra_info字段。失败响应中resultMsg除字段描述,还包含响应失败详情。您可以结合失败详情和extra_info内容定位并解决问题。

成功响应示例

HTTP/1.1 200 OK 
Content-Type: application/json;charset=UTF-8 
Content-Length: length 
Date: response time  
 
{
  "resultCode": "MKT.0000",
  "resultMsg": "Success",
  "orderInfo": {
    "orderId": " CS 2207261447AUY4H",
    "orderType": "NEW",
    "createTime": "20220726064736",
    "orderLine": [
      {
        "orderLineId": "CS2207261447AUY4H-000001",
        "chargingMode": "PERIOD",
        "periodType": "year",
        "periodNumber": 1,
        "expireTime": "20230726155959",
        "productInfo": [
          {
            "productId": "OFFI758576253042421760",
            "skuCode": "da9b4d34-ee8a-4355-a823-13e034e49986",
            "linearValue": 10,
            "productName": "SaaS测试商品,测试规格,基础版,包周期"
          }
        ],
        "extendParams": []
      }
    ],
    "buyerInfo": {
      "mobilePhone": "18699999999",
      "email": 123@test.com,
      "customerId": "688055390f3049f283fe9f1aa90f7ds3",
      "customerName": "hw1235sd3123"
 
    }
  }
}

失败响应示例

HTTP/1.1 401 UnauthorizedContent-Type: application/json;charset=UTF-8Content-Length: lengthDate: response time { 
    "resultCode": "CBC.0150", 
    "resultMsg": "Illegal operation. param[isvId] and param[instanceId] does not match."  }
support.huaweicloud.com/accessg-marketplace/zh-cn_topic_0070649466.html