文档中心 > API类目 > pos交易api

alibaba.pos.service.features.get (APOS服务特性配置获取)

APOS服务特性配置获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
get_config_request GetPosConfigRequest 必须 查询配置入参
  • └ merchant_code
  • String
  • 必须
  • HM
  • 商家编码
  • └ shop_id
  • String
  • 必须
  • 151491291
  • 门店ID
  • └ extra
  • String
  • 可选
  • {"key":"value"}
  • 请求扩展信息

响应参数

名称 类型 示例值 描述
result PosResult result
  • model
  • GetConfigResponse
  • ""
  • model
  • available_features
  • AvailableFeature []
  • 可用特性
  • └ code
  • String
  • "YUNSHANFU_UNION_FACEPAY"
  • 功能编码
  • └ name
  • String
  • "云闪付"
  • 功能名称
  • └ prompt
  • String
  • ""
  • 功能提示文案
  • └ msg_code
  • String
  • ""
  • msgCode
  • └ msg_info
  • String
  • ""
  • msgInfo
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPosServiceFeaturesGetRequest req = new AlibabaPosServiceFeaturesGetRequest();
AlibabaPosServiceFeaturesGetRequest.GetPosConfigRequest obj1 = new AlibabaPosServiceFeaturesGetRequest.GetPosConfigRequest();
obj1.setMerchantCode("HM");
obj1.setShopId("151491291");
obj1.setExtra("{\"key\":\"value\"}");
req.setGetConfigRequest(obj1);
AlibabaPosServiceFeaturesGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pos_service_features_get_response>
    <result>
        <model>
            <available_features>
                <available_feature>
                    <code>&quot;YUNSHANFU_UNION_FACEPAY&quot;</code>
                    <name>&quot;云闪付&quot;</name>
                    <prompt>&quot;&quot;</prompt>
                </available_feature>
            </available_features>
        </model>
        <msg_code>&quot;&quot;</msg_code>
        <msg_info>&quot;&quot;</msg_info>
        <success>true</success>
    </result>
</alibaba_pos_service_features_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部