文档中心 > API类目 > 天猫精灵供应链网关API

alibaba.gsc.openapi.shark.month.query (sap成本月结查询接口)

sap成本月结查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bill_detail_query_request BillDetailQueryRequest 可选 入参
  • └ shop_id
  • String
  • 可选
  • DM01
  • 店铺id
  • └ source_order_id_list
  • String []
  • 可选
  • 123131,242423
  • 订单id
  • └ tenant
  • String
  • 可选
  • gsc202
  • 租户
  • └ source_order_type
  • String
  • 可选
  • Z001
  • 类型

响应参数

名称 类型 示例值 描述
bill_detail_month_response BillDetailMonthResponse 出参
  • └ month_code
  • String
  • 200
  • 出参码
  • month_datas
  • BillDetailMonthlyCheckDto []
  • 出参内容
  • └ source_order_id
  • String
  • 1321
  • 所属订单编号
  • └ biz_date
  • String
  • 20212323
  • 所属订单交易日期
  • └ item_code
  • String
  • 1D231
  • 物料编码
  • └ quantity
  • Number
  • 12
  • 物料数量
  • └ price
  • Number
  • 12
  • 成本
  • └ sale_unit
  • String
  • 销售单位
  • └ currency_type
  • String
  • 人民币
  • 货币类型
  • └ month_msg
  • String
  • 成功
  • 出参信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGscOpenapiSharkMonthQueryRequest req = new AlibabaGscOpenapiSharkMonthQueryRequest();
AlibabaGscOpenapiSharkMonthQueryRequest.BillDetailQueryRequest obj1 = new AlibabaGscOpenapiSharkMonthQueryRequest.BillDetailQueryRequest();
obj1.setShopId("DM01");
obj1.setSourceOrderIdList("123131,242423");
obj1.setTenant("gsc202");
obj1.setSourceOrderType("Z001");
req.setBillDetailQueryRequest(obj1);
AlibabaGscOpenapiSharkMonthQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_gsc_openapi_shark_month_query_response>
    <bill_detail_month_response>
        <month_code>200</month_code>
        <month_datas>
            <bill_detail_monthly_check_dto>
                <source_order_id>1321</source_order_id>
                <biz_date>20212323</biz_date>
                <item_code>1D231</item_code>
                <quantity>12</quantity>
                <price>12</price>
                <sale_unit>元</sale_unit>
                <currency_type>人民币</currency_type>
            </bill_detail_monthly_check_dto>
        </month_datas>
        <month_msg>成功</month_msg>
    </bill_detail_month_response>
</alibaba_gsc_openapi_shark_month_query_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

返回
顶部