# 买菜订单商品金额及税率查询

# 1.接口说明

名称 描述
功能 买菜订单商品金额及税率查询, 支付完成后订单支持查询
HTTP方法 POST
请求方 第三方平台
响应方 美团企业版平台
uri $API_HOST/invoice/queryMaicaiDetail
method invoice.maicai.detail.query

说明:接口对接如下请知悉 1、在订单支付完成后才能获取到商品及税率信息,建议支付和退款完成5分钟后拉取最新信息 2、极个别商品信息会存在税率获取延迟,延迟时间为1个工作日(建议对接企业,有定时任务针对未获取到税率的订单进行补偿) 3、该接口适用于该订单给下游开票,商品信息和订单详情接口每个商品金额可能会存在差异,因该接口已经将所有优惠活动进行了拆分

# 2.公共参数

详见:公共参数说明-公共请求参数

# 3.业务参数

名称 类型 是否必填 示例 说明
sqtBizOrderId Long 123456765432452 美团企业版订单ID
tradeNo Long 123456765432453 三方支付对接中的交易号,该字段和美团企业版订单ID不能同时为空

# 4.业务响应

名称 类型 是否非空 示例 说明
orderAmount String 53.2 订单金额,单位:元
invoiceList List<MaicaiInvoiceDetailInfo> - 预定商品开票信息列表
refundInvoiceList List<MaicaiInvoiceDetailInfo> - 退款商品开票信息列表,返回顺序与退款顺序无关,请不要依赖列表返回顺序,如需匹配请使用操作id

MaicaiInvoiceDetailInfo字段说明

名称 类型 是否非空 示例 说明
id String 1064470324 商品交易内部用于区分操作的id,与三方收银的交易号等字段无关
productInvoiceList List<MaicaiInvoiceItemInfo> - 商品开票信息列表

MaicaiInvoiceItemInfo字段说明

名称 类型 是否非空 示例 说明
skuId String 18060 商品skuId
spuId String 14833 商品品类spuId
itemId String 4521934718 商品Id
itemName String 生和堂秘制龟苓膏新款三连杯215g*3 商品名称
itemCount String 1 商品数量
itemAmount String 12.8 商品金额,单位:元
discountAmount String 0.0 折扣金额,单位:元
unit String 单位
model String 215g*3 规格型号
taxRate String 6% 税率,免税时值为0%,值为null或空字符串时表示未维护,可联系美团企业版维护
productionCode String 1030107010100000000 税务分类末级编码

# 5.示例结果

{
  "status": 0,
  "message": "success",
  "data": {
    "orderAmount": "29.78",
    "invoiceList": [
      {
        "id": "90305648718",
        "productInvoiceList": [
          {
            "spuId": "47607",
            "skuId": "56711",
            "unit": "份",
            "model": "500g ",
            "itemId": "4521741539",
            "itemName": "【水八仙】莲藕500g",
            "itemCount": "1",
            "itemAmount": "5.99",
            "discountAmount": "1.0",
            "taxRate": "0%",
            "productionCode": "1010112110000000000"
          },
          {
            "spuId": "56928",
            "skuId": "66710",
            "unit": "盒",
            "model": "200g ",
            "itemId": "4521741538",
            "itemName": "手剥毛豆粒200g",
            "itemCount": "1",
            "itemAmount": "6.99",
            "discountAmount": "2.39",
            "taxRate": "0%",
            "productionCode": "1010112100000000000"
          },
          {
            "spuId": "82914",
            "skuId": "103232",
            "unit": "份",
            "model": "150g ",
            "itemId": "4521741541",
            "itemName": "【嫩苗菜】菠菜苗150g",
            "itemCount": "1",
            "itemAmount": "2.99",
            "discountAmount": "0.69",
            "taxRate": "0%",
            "productionCode": "1010112070000000000"
          },
          {
            "spuId": "84842",
            "skuId": "440237",
            "unit": "条",
            "model": "300g ",
            "itemId": "4521741542",
            "itemName": "鲜活白鲫鱼1条300-400g",
            "itemCount": "1",
            "itemAmount": "12.8",
            "discountAmount": "2.9",
            "taxRate": "9%",
            "productionCode": "1010401000000000000"
          },
          {
            "spuId": "484099",
            "skuId": "508655",
            "unit": "份",
            "model": "350g 鲜香软糯",
            "itemId": "4521741540",
            "itemName": "【高山鲜】高山糯茄350g",
            "itemCount": "1",
            "itemAmount": "11.9",
            "discountAmount": "3.91",
            "taxRate": "0%",
            "productionCode": "1010112090000000000"
          }
        ]
      }
    ],
    "refundInvoiceList": [
      {
        "id": "282742596",
        "productInvoiceList": [
          {
            "spuId": "82914",
            "skuId": "103232",
            "unit": "份",
            "model": "150g ",
            "itemId": "4521741541",
            "itemName": "【嫩苗菜】菠菜苗150g",
            "itemCount": "0",
            "itemAmount": "0.09",
            "discountAmount": "0.0",
            "taxRate": "0%",
            "productionCode": "1010112070000000000"
          }
        ]
      }
    ]
  }
}
上次更新: 4/22/2024, 4:15:08 PM