帮助中心

1240-电子质保单

2021-08-12

1240-电子质保单

接口说明:

添加电子质保单。

请求说明:

HTTP请求方式:POST

返回数据格式:JSON

请求路径:/api/CSale/SaveWarrantyInfo

请求参数:


字段类型为空描述
QualityContentstring质保单内容
ShopCodestring门店代码
SalerCodestring导购工号
OldCodestring会员线下卡号
SaleNostring订单编号
SaleDateDateTime订单日期
QualityNostring质保单号

QualityContent 参数内容:


key描述示例
QualityWarrantyList质保单列表[{"自定义code":"值"},{"之定义code":"值"}]
QualityWarrantyDetail质保单详情{"自定义code":"值","自定义code":"值","自定义code":"值"  ,"自定义code":"值"}

注意:自定义code ,是各个品牌在EZR客户后台自己维护的,如图所示:



请求参数示例代码(json对象):

{
   "OldCode": "1204264",
   "ShopCode": "HQT001",
   "SalerCode": "yuy2",
   "SaleDate": "2021-08-04 13:04:12",
   "SaleNo": "1",
   "QualityNo": "1",
   "QualityContent": "json格式字符串",
}

QualityContent质保单内容json实例:{"QualityWarrantyList":[{"key1":"商品名称1","key2":"商品货号1","key3":"商品价格1","key4":"商品主图url1"},{"key1":"商品名称2","key2":"商品货号2","key3":"商品价格2","key4":"商品主图url2"}],"QualityWarrantyDetail":{"key1":"品牌logo url","key2":"一级标题","key3":"副标题","key4":"会员姓名","key5":":会员卡号","key6":"销售员姓名","key8":"购买门店","key9":"自定义文本内容","key10":"自定义标题","key7":"[{\"key7-1\":\"商品名称\",\"key7-2\":\"商品货号\",\"key7-3\":\"标签价\",\"key7-4\":\"商品主图url\",\"key7-5\":\"{\\\"材质\\\":\\\"纯金\\\",\\\"规格\\\":\\\"标准\\\",\\\"颜色\\\":\\\"金黄\\\",\\\"重量\\\":\\\"100克\\\"}\",\"key7-6\":\"实收金额(大写)\",\"key7-7\":\"实收金额数字\"},{\"key7-1\":\"商品名称2\",\"key7-2\":\"商品货号2\",\"key7-3\":\"标签价2\",\"key7-4\":\"商品主图url2\",\"key7-5\":\"{\\\"材质\\\":\\\"纯银\\\",\\\"规格\\\":\\\"标准\\\",\\\"颜色\\\":\\\"银色\\\",\\\"重量\\\":\\\"101克\\\"}\",\"key7-6\":\"实收金额(大写)2\",\"key7-7\":\"实收金额数字2\"}]"}}

系统级返回结果示例(json):

{
   "Status": true,
   "StatusCode": 200,
   "Msg": "成功",
   "Timestamp": "20150622093101",
   "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",
   "Result": 见业务返回结果示例,
}




1269