首页API文档商城业务API接口 Thisshop business API interface
4.19 店铺运费模板列表List of store freight templates
09/03/2021

4.19、店铺运费模板列表List of store freight templates

名称

说明

接口名称

thisshop.ship.model.list.get

功能描述

店铺运费模板列表查询

访问路径

/api/shop/router/rest

数据格式

json

请求方式

Post

请求示例报文

//备注:appIdnoncetimestamptoken为公共参数

{

"appId":"TF10000",

"nonce":"8ds9a921",

"timestamp":"1564630934531",

"token":"46DE554983BA4E41BB59A61FA50CCE",

"method":"thisshop.biggo.item.list.get",

    "data":{

    }

}

返回数据

错误

{

       "transactionStatus":   {

              "errorCode":   "1",

              "replyCode":   "10000",

              "replyText":   "请求参数错误",

              "memo":   null,

              "appName":   "tft-shop-server",

              "success":   false

       },

       "page":   null,

       "result":   null

}

 

成功

{

      "transactionStatus": {

          "errorCode": "0",

          "replyCode": null,

          "replyText": null,

        "memo":   null,

        "appName":   "tft-shop-server",

        "success":   true

    },

    "page": null,

    "result": {

          "dataList": [

            {

                  "modelId": "3372AD38ADB44306801226C451B1C0BC",

                  "modelName": "单品-顾客承担"

            },

            {

                  "modelId": "86890F48DD2D4382AEDAB85A535A8CF8",

                  "modelName": "单品-店铺承担运费"

            },

            {

                  "modelId": "978027448FBD49B697FEF927D1B40348",

                  "modelName": "全国 按件计费"

            },

            {

                  "modelId": "19313088BEA0466C9A5E426B6FE1E4FE",

                  "modelName": "按件计费2"

            }

        ],

          "modelType": 2

    }

}

 

 

 

 

English:

name

illustrate

interface name

thisshop.ship.model.list.get

Function description

Store Freight Template List Query

access path

/api/shop/router/rest

Data Format

json

request method

Post

Request sample message

//Note: appId , nonce, timestamp, token are public parameters

{

"appId":"TF10000",

"nonce":"8ds9a921",

"timestamp":"1564630934531",

"token":"46DE554983BA4E41BB59A61FA50CCE",

"method":" thisshop.biggo.item.list.get ",

"data ":{

}

}

return data

mistake

{

       "   transactionStatus ": {

              "   errorCode ": "1",

              "   replyCode ": "10000",

              "   replyText ": "Request parameter error",

              "memo":   null,

              " appName   ": " tft -shop-server",

              "success":   false

       },

       "page":   null,

       "result":   null

}

 

success

{

" transactionStatus ": {

" errorCode ": "0",

" replyCode ": null,

" replyText ": null,

"memo": null,

" appName ": " tft -shop-server",

"success": true

},

"page": null,

"result": {

" dataList ": [

{

" modelId ": "3372AD38ADB44306801226C451B1C0BC",

" modelName ": "Single product - customer   responsibility"

},

{

" modelId ":   "86890F48DD2D4382AEDAB85A535A8CF8",

" modelName ": "Single product - the store bears   the shipping cost"

},

{

" modelId ": "978027448FBD49B697FEF927D1B40348",

" modelName ": "Nationwide charge by piece"

},

{

" modelId ":   "19313088BEA0466C9A5E426B6FE1E4FE",

" modelName " : "Pay Per Piece 2"

}

],

" modelType ": 2

}

}

 

响应参数response parameter

字段名

类型

描述

必填

备注

transactionStatus

Object

交易响应对象



page

Object

页码对象


该接口没有分页对象

result

Object

集合对象



 

transactionStatus

字段名

类型

描述

必填

备注

errorCode

String

错误标识


0:正确;1:错误

replyCode

String

错误代码



replyText

String

错误信息



memo

String

备注



appName

String

服务名称



success

boolean

是否成功


true:成功 false:失败

 

result:

字段名

类型

描述

必填

备注

modelType

Integer

模板类型


1、店铺2、单品

dataList

List

模板列表



 

dataList[]:

字段名

类型

描述

必填

备注

modelId

String

模板编号



modelName

String

模板名称



 

 

English:

field name

type

describe

Required

Remark

transactionStatus

Object

Transaction response object



page

Object

page number object


There is no paging object for this   interface

result

Object

collection object



 

transactionStatus :

field name

type

describe

Required

Remark

errorCode

String

error flag


0: correct;

1: incorrect

replyCode

String

error code



replyText

String

error message



memo

String

Remark



appName

String

service name



success

boolean

whether succeed


true: success false: failure

 

result :

field name

type

describe

Required

Remark

modelType

Integer

Template type


1. Store

2. Single product

dataList

List

Template list



 

dataList [ ] :

field name

type

describe

Required

Remark

modelId

String

Template number



modelName

String

template name