POST api/UnPos/Shop/V/Add

新增店铺,需要判断这个参数的返回值,errcode=0表示成功。

Request Information

URI Parameters

None.

Body Parameters

新增的店铺的信息。

ShopAddParm
NameDescriptionTypeAdditional information
MerchantId

商户ID int FK,PK.

integer

Required

ShopId

店铺ID char(4) PK NOT NULL.

string

Required

Max length: 4

ShopName

店铺名 Varchar(40) NOT NULL.

string

Required

Max length: 40

RentSource

租赁资源 Varchar(60) NOT NULL.

string

Required

Max length: 60

UseDepotManagment

是否启用仓库管理 char(1) NOT NULL.

string

Required

Max length: 1

GuiderDivideStatus

是否启用导游返利 char(1) NOT NULL.

string

Required

Max length: 1

GuiderCalType

导游返利结算方约定 char(1) NOT NULL.

string

Required

Max length: 1

CustomerDivideStatus

是否启用客户单位返利 char(1) NOT NULL.

string

Required

Max length: 1

CustomerCalType

客户单位返利结算方约定 char(1) NOT NULL.

string

Required

Max length: 1

PersonInCharge

店铺负责人名 Varchar(40) NOT NULL.

string

Required

Max length: 40

PersonInChargeMobile

店铺负责人手机 Varchar(20) NOT NULL.

string

Required

Max length: 20

StartOfOperationTerm

起始经营期限 date NOT NULL.

date

Required

EndOfOperationTerm

结束经营期限 date NOT NULL.

date

Required

DelayDaysAfterBusiForCal

结算滞后日数 int NOT NULL.

integer

Required

Memory

备注 Varchar(400)

string

Max length: 400

EnableOrderDeliveryMode

启用订单交付备货叫号 char(1) NOT NULL.

string

Required

Max length: 1

Request Formats

application/json, text/json

Sample:
{
  "MerchantId": 1,
  "ShopId": "sample string 2",
  "ShopName": "sample string 3",
  "RentSource": "sample string 4",
  "UseDepotManagment": "sample string 5",
  "GuiderDivideStatus": "sample string 6",
  "GuiderCalType": "sample string 7",
  "CustomerDivideStatus": "sample string 8",
  "CustomerCalType": "sample string 9",
  "PersonInCharge": "sample string 10",
  "PersonInChargeMobile": "sample string 11",
  "StartOfOperationTerm": "2024-10-06T08:24:29.3157049+08:00",
  "EndOfOperationTerm": "2024-10-06T08:24:29.3157049+08:00",
  "DelayDaysAfterBusiForCal": 14,
  "Memory": "sample string 15",
  "EnableOrderDeliveryMode": "sample string 16"
}

application/xml, text/xml

Sample:
<ShopAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms">
  <CustomerCalType>sample string 9</CustomerCalType>
  <CustomerDivideStatus>sample string 8</CustomerDivideStatus>
  <DelayDaysAfterBusiForCal>14</DelayDaysAfterBusiForCal>
  <EnableOrderDeliveryMode>sample string 16</EnableOrderDeliveryMode>
  <EndOfOperationTerm>2024-10-06T08:24:29.3157049+08:00</EndOfOperationTerm>
  <GuiderCalType>sample string 7</GuiderCalType>
  <GuiderDivideStatus>sample string 6</GuiderDivideStatus>
  <Memory>sample string 15</Memory>
  <MerchantId>1</MerchantId>
  <PersonInCharge>sample string 10</PersonInCharge>
  <PersonInChargeMobile>sample string 11</PersonInChargeMobile>
  <RentSource>sample string 4</RentSource>
  <ShopId>sample string 2</ShopId>
  <ShopName>sample string 3</ShopName>
  <StartOfOperationTerm>2024-10-06T08:24:29.3157049+08:00</StartOfOperationTerm>
  <UseDepotManagment>sample string 5</UseDepotManagment>
</ShopAddParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

新增店铺,需要判断这个参数的返回值,errcode=0表示成功。

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.