开始使用仓库
使用专用API代币,首先验证测试数据的读取操作.
- 保存代币服务器侧,然后将其发送到Authorization标题中.
- 检查所需参数,并扩大请求或响应方案.
- 在应用错误中处理HTTP状态和稳定的error字段.
通过可编辑的独立合同来支持本页面. 在生产使用之前,验证使用测试数据的写作操作.
/api/warehouse
准备使用的工作流程
使用专用API代币,首先验证测试数据的读取操作.
数据模型
模型在此列出一次,并且可以直接从使用它们的终端点扩展.
idinteger · int32Id.
postCodestring邮政代码.
countryCountry乡村.
regionRegion地区.
regionIdinteger · int32区域ID
streetstring路上.
housestring房子.
districtstring地区.
citystring城市.
localitystring地方.
buildingstring建筑物.
flatstring没有什么.
shortstring短暂.
addressIdAddress联系方式
fullstring满满.
idinteger · int32Id.
read-onlywarehouseIdinteger · int64仓库身份证.
passageIdinteger · int32通过身份证.
shelfIdinteger · int32货架身份证.
rackIdinteger · int32查看身份证.
storageZoneIdinteger · int64存储区的身份.
namestring姓名.
fullNamestring完整名字.
sortNamestring某种名字.
barcodestring条码.
deletedboolean删除了.
widthinteger · int32宽度.
heightinteger · int32高.
depthinteger · int32深度.
volumenumber · double音量.
clientIdinteger · int64客户身份证.
read-onlylastInventoryIdinteger · int32最后的库存身份证.
read-onlytypestringType.
countryIdinteger · int32国家的身份证.
namestring姓名.
code2string代码2
code3string代码3
namesobject他们的名字.
printNamestring打印名字.
idinteger · int64Id.
read-onlynamestring姓名.
必填shortNamestring简短名字.
taxTypestring税收类型.
taxRateinteger · int32税率.
taxNdsinteger · int32税收.
inputTaxNdsinteger · int32输入税税.
outputTaxNdsinteger · int32产出税法
enableNewTaxCalculationboolean启用新的税收计算.
useNdsCostPriceboolean使用NDS成本价格.
innstring酒店.
必填kppstring现在,我们要去.
bankstring银行.
bikstring骑自行车.
corrBillstring科尔比尔.
billNumberstring账号号.
stampPathstring邮票路径.
read-onlystampUrlstring邮票URL.
read-onlystampSizeinteger · int32邮票大小.
read-onlystampWidthinteger · int32盖章宽度.
read-onlystampHeightinteger · int32邮票高度.
read-onlystampFileNamestring邮票文件名称
read-onlysignaturePathstring签字之路.
read-onlysignatureUrlstring签字的URL.
read-onlysignatureFileNamestring签名文件名称
read-onlyfulfillmentContractSignerNamestring履行合同签署人名
fulfillmentContractSignerPositionstring履行合同签署员的位置
signatureSizeinteger · int32签名大小.
read-onlysignatureWidthinteger · int32签字宽度.
read-onlysignatureHeightinteger · int32签字高度.
read-onlyipPersonPerson个人.
formstring形式.
必填ipboolean,我知道.
clientIdinteger · int64客户身份证.
read-onlyaddressAddress现在,我有个地址.
phoneNumberstring电话号码.
addressFullstring地址是完整的.
read-onlysampleboolean样本.
read-onlyidinteger · int32Id.
namestring姓名.
warehouseIdinteger · int64仓库身份证.
deletedboolean删除了.
clientIdinteger · int64客户身份证.
racksRack[]货架.
personIdinteger · int64个人身份证.
read-onlyfirstNamestring姓名
必填lastNamestring姓名
必填surNamestring苏尔名
clientIdinteger · int64客户身份证.
read-onlypositionPersonPosition位置.
必填versionIdinteger · int64版本ID.
read-onlycreatedUserstring创建用户.
read-onlycreatedDatestring · date-time创造日期.
read-onlydeletedboolean删除了.
read-onlyuserIdinteger · int32用户身份证
read-onlyhasChangesboolean有变化.
fullNamestring完整名字.
read-onlyshortNamestring简短名字.
read-onlyidinteger · int64Id.
read-onlynamestring姓名.
必填deletedboolean删除了.
read-onlyclientIdinteger · int64客户身份证.
read-onlydefaultJobIdinteger · int64默认工作身份证.
createdUserstring创建用户.
read-onlycreatedDatestring · date-time创造日期.
read-onlyidinteger · int32Id.
namestring姓名.
warehouseIdinteger · int64仓库身份证.
passageIdinteger · int32通过身份证.
deletedboolean删除了.
clientIdinteger · int64客户身份证.
shelvesShelf[]货架.
regionIdinteger · int32区域ID
countryIdinteger · int32国家的身份证.
namestring姓名.
regionSynonymsRegionSynonym[]区域同义词
idinteger · int64Id.
regionIdinteger · int64区域ID
synonymstring标语是同义词.
servicestring服务.
idinteger · int64Id.
read-onlynamestring姓名.
必填externalIdstring其他身份证.
必填warehouseIdinteger · int64仓库身份证.
必填servicestring服务.
必填organizationIdinteger · int64组织身份证.
必填serviceOrganizationIdinteger · int64服务组织身份证.
idinteger · int32Id.
namestring姓名.
warehouseIdinteger · int64仓库身份证.
rackIdinteger · int32查看身份证.
deletedboolean删除了.
clientIdinteger · int64客户身份证.
cellsCell[]细胞.
idinteger · int64Id.
namestring姓名.
servicestring服务.
organizationIdinteger · int64组织身份证.
organizationIdsinteger[]组织身份证.
fboOrganizationIdinteger · int64联邦调查局组织身份证.
noPlaceCellIdinteger · int32没有地方细胞身份证.
noPlaceCellCell没有地方细胞.
refundCellIdinteger · int32退还电话身份证.
organizationOrganization组织.
priorityinteger · int32优先考虑.
useForOrderboolean为了秩序而使用.
clientIdinteger · int64客户身份证.
externalNamestring其他名字
notSyncStocksboolean没有同步股票.
ignoreOrdersboolean忽略命令.
passagesPassage[]经文.
warehouseServicesServiceWarehouse[]仓库服务.
deliveriesobject交货.
deletedboolean删除了.
captionstring标题
durationHoursinteger · int32时间时间
reservationDaysinteger · int32预订日.
schedulestring时间表.
urAddressstring您的地址
citystring城市.
longitudenumber · double长度.
latitudenumber · double广度.
warehouseServiceIdinteger · int64仓库服务身份证.
warehouseTypestring仓库类型.
descriptionstring描述
inninteger · int64酒店.
kppinteger · int64现在,我们要去.
placeOfBusinessFiasIdstring商业业业务的身份证.
paymentAccountstring支付账户
telephonestring电话.
regionNamestring区域名称
regionRegion地区.
regionIdinteger · int32区域ID
isPrepayOnlineboolean现在,我们在网上做了预付.
isCashboolean这是现金.
isCardboolean是卡德.
isGoodsActiveboolean货物活动.
orgIdWarehouse组织身份证.
addressstring现在,我有个地址.
idinteger · int64Id.
namestring姓名.
publishedboolean发表了.
parentIdinteger · int64亲人身份证.
aliexpressIdinteger · int64快递证件
lastSyncDatestring · date-time最后的同步日期.
notChangedDaysinteger · int32没有改变的日子.
isLeafboolean是叶子.
idinteger · int64Id.
必填namestring姓名.
必填shortNamestring简短名字.
publishedboolean发表了.
parentIdinteger · int64亲人身份证.
lastSyncDatestring · date-time最后的同步日期.
isLeafboolean是叶子.
goodsTypestring货物类型.
categorystring类别.
brandIdinteger · int32品牌身份证.
read-onlynamestring姓名.
必填clientIdinteger · int64客户身份证.
read-onlylogoUrlstring标志 URL
read-onlylogoSizeinteger · int32标志尺寸
read-onlylogoWidthinteger · int32标志宽度
read-onlylogoHeightinteger · int32标志高度.
read-onlydeletedboolean删除了.
ozonNamestring子名字
ozonIdinteger · int64气标识.
oneCIdstring一个公告.
categoryIdinteger · int32类别的ID.
read-onlynamestring姓名.
必填deletedboolean删除了.
read-onlyparentIdinteger · int32亲人身份证.
clientIdinteger · int64客户身份证.
read-onlymarkedboolean标记了.
categoryClassstring类别类.
wildberriesTypeWildberriesType野生类型.
wildberriesCategoryIdinteger · int64野生类别的身份.
wildberriesFbmCommissionnumber · double野生果联邦调查委员会.
read-onlywildberriesFbwCommissionnumber · double野生果Fbw委员会.
read-onlywildberriesFbsCommissionnumber · double野生果联邦调查委员会.
read-onlywildberriesDbsCommissionnumber · double野生果食品委员会.
read-onlywildberriesEdbsCommissionnumber · double野生果养殖委员会.
read-onlywildberriesCAndCCommissionnumber · double果和果委员会.
read-onlywildberriesBookingCommissionnumber · double野生果预订委员会.
read-onlyozonDescriptionCategoryIdinteger · int64臭氧描述类别ID.
yandexMarketCategoryIdinteger · int64亚兰德克斯市场类别身份证
yandexMarketCategoryYandexMarketCategory亚兰德克斯市场类别
ozonDescriptionCategoryOzonDescriptionCategory臭氧描述类别
ozonCommissionnumber · double臭氧委员会
read-onlytnvedTnved没有.
tnvedIdinteger · int64没有人知道.
laundrystring洗衣.
paramsstring帕姆斯.
namePatternstring姓名是模式.
aliexpressCategoryAliexpressCategory车类别
aliexpressCategoryIdinteger · int64标签: 标识:
avitoCategoryAvitoCategory类别
lamodaCategoryLamodaCategory拉莫达类别.
lamodaCategoryIdinteger · int64拉莫达类别的身份证.
avitoCategoryIdinteger · int64果类别的身份
packDepthinteger · int32包装深度.
packWidthinteger · int32包装宽度.
packHeightinteger · int32包高.
packWeightinteger · int32包装重量.
hasSizeboolean有大小.
hasColorboolean有颜色.
autoNameboolean车名.
removeFbsStockboolean删除FBS股票.
oneCIdstring一个公告.
externalIdstring其他身份证.
moySkladIdstring子子的身份.
useClientParamsboolean使用客户端参数.
requiredExpirationDateboolean要求到期日期
serviceCategoryMappingsobject服务类别地图.
productCountinteger · int32产品数量
idinteger · int64Id.
read-onlymodelIdinteger · int64模型身份证.
productIdinteger · int64产品身份证
servicestring服务.
必填urlstring查看一个URL.
必填serviceIdstring服务身份证.
clientIdinteger · int64客户身份证.
read-onlylatestPricenumber · double最新价格.
read-onlycurrencystring货币.
read-onlylatestPriceDatestring · date-time最新价格日期.
read-onlyidinteger · int64Id.
namestring姓名.
必填versionIdinteger · int64版本ID.
clientIdinteger · int64客户身份证.
read-onlycreatedUserstring创建用户.
read-onlylastIncomeDatestring · date-time收益日期.
read-onlydeletedboolean删除了.
read-onlyorganizationIdinteger · int64组织身份证.
legalAddressstring法律地址.
phoneNumberstring电话号码.
emailstring电子邮件.
contactNamestring联系人名字
moySkladIdstring子子的身份.
urlstring查看一个URL.
organizationOrganization组织.
read-onlyidinteger · int64Id.
namestring姓名.
shortNamestring简短名字.
publishedboolean发表了.
isLeafboolean是叶子.
parentIdinteger · int64亲人身份证.
lastSyncDatestring · date-time最后的同步日期.
notChangedDaysinteger · int32没有改变的日子.
manufacturerIdinteger · int32制造商身份
titlestring标题
namestring姓名.
必填addressstring现在,我有个地址.
organizationIdinteger · int64组织身份证.
clientIdinteger · int64客户身份证.
read-onlycountryIdinteger · int32国家的身份证.
countryNamestring国家的名称.
read-onlyinnstring酒店.
deletedboolean删除了.
oneCIdstring一个公告.
baseCommissionnumber · double基委员会.
adjustmentPercentPointsnumber · double调整百分点.
effectiveCommissionnumber · double有效的委员会.
plannedProcessingHoursnumber · double计划处理时间.
processingHoursNormnumber · double处理时间标准.
processingHoursSourcestring处理时间来源
ruleValidFromstring · date规则有效从.
ruleSourcestring规则来源.
idinteger · int64Id.
namestring姓名.
paramIdinteger · int64位名单.
ozonIdinteger · int64气标识.
wildberriesIdinteger · int64果的身份证.
ymIdinteger · int64您的身份.
aliexpressIdinteger · int64快递证件
magnitIdinteger · int64磁铁身份证.
detmirIdstring查看更多
clientIdinteger · int64客户身份证.
deletedboolean删除了.
oneCIdstring一个公告.
dictionaryboolean字典.
optionIdOption选择ID.
idinteger · int64Id.
namestring姓名.
必填publishedboolean发表了.
parentIdinteger · int64亲人身份证.
isLeafboolean是叶子.
lastSyncDatestring · date-time最后的同步日期.
notChangedDaysinteger · int32没有改变的日子.
isErrorboolean是错误.
errorDatestring · date错误日期
typesstring类型.
typeIdinteger · int64打印机号.
purchasePercentAvgnumber · double购买百分比 Avg.
purchasePercentMinnumber · double购买百分比
photoAvginteger · int32照片来源:
photoMininteger · int32照片:
drrAvgnumber · double艾夫博士.
drrMinnumber · double博士.
marginAvgnumber · double边缘 Avg.
marginMinnumber · double边缘分.
promotionCtrAvgnumber · double升级, 检查员.
promotionCtrMinnumber · double升级 升
paramIdinteger · int64位名单.
必填paramNamestring帕兰名字.
optionOption选择.
doubleValuenumber · double双重价值.
longValueinteger · int64长期价值.
booleanValueboolean布尔值.
stringValuestring字符串值
dateValuestring · date-time时间值
servicestring服务.
unitUnit单位.
autoboolean车辆.
createdinteger · int64创造了.
userstring用户.
lockedboolean锁定了.
idinteger · int64Id.
codestringCode.
namestring姓名.
langCodestring兰格代码.
currencystring货币.
servicestring服务.
clientIdinteger · int64客户身份证.
idinteger · int64Id.
productTypestring产品类型
namestring姓名.
必填deletedboolean删除了.
read-onlyprintNamestring打印名字.
realSizestring实质尺寸.
vendorSizestring卖家尺寸.
sizestring尺寸.
wildberriesStockCountinteger · int32野生果股票数量.
read-onlyozonRealFbsboolean森真实电视台.
read-onlyozonStockCountinteger · int32子股票计数.
read-onlyozonStockBetweenWarehousesinteger · int32储备库存之间.
read-onlyremoveFbsStockboolean删除FBS股票.
noStockSyncboolean没有股票同步.
excludeCalculatedStockFromFbsboolean排除从联邦财政局的计算股份.
purchaseCurrencystring购买货币.
purchasePriceInCurrencynumber · double货币的购买价格
deliveryCostInCurrencynumber · double货币的交付成本
versionIdinteger · int64版本ID.
createdDatestring · date-time创造日期.
read-onlycreatedstring · date-time创造了.
read-onlycreatedUserstring创建用户.
read-onlysourceIncomeItemIdinteger · int64收入来源项目ID
sourceProductIdinteger · int64产品来源身份
fulfillmentJobIdsinteger[]工作证件.
ozonRequiredStockinteger · int32子需要的库存.
read-onlywildberriesRequiredStockinteger · int32野生需要的库存.
read-onlywildberriesProfitnumber · double果利.
read-onlywildberriesProfitFbsnumber · double果公司的利.
read-onlywildberriesOrderQuantityinteger · int32野生果订单量.
read-onlywildberriesSupplyingQuantityinteger · int32野生果供应量
read-onlywildberriesQuantityInWayToClientinteger · int32果量到客户端.
read-onlywildberriesQuantityInWayFromClientinteger · int32客户的传递量.
read-onlywildberriesSaleQuantityinteger · int32野生果销售量
read-onlywildberriesQuantityInWayinteger · int32野生果量正在走向.
read-onlywildberriesNoSaleboolean没有卖的野.
read-onlylastStockChangestring · date-time最后的股票变化.
read-onlyozonOrderQuantityinteger · int32子订单量.
read-onlyozonSupplyingQuantityinteger · int32气供应量
read-onlyozonProfitinteger · int32子利.
read-onlyinstockQuantityinteger · int32存量量
read-onlyinstockQuantityValuenumber · double存储量值
read-onlystockUnitstring股票单位.
calculatedInStockQuantityinteger · int32根据库存数量计算.
read-onlycalculatedInStockQuantityValuenumber · double计算在库存量值.
read-onlyclientIdinteger · int64客户身份证.
read-onlyorganizationIdinteger · int64组织身份证.
必填productViewIdinteger · int64产品查看ID.
read-onlyviewProductView景色.
read-onlysuzIdstring苏兹的身份.
cisTypestring科幻病类型.
notChangedStockinteger · int32没有更换股票.
read-onlycardExchangesProductCardExchange[]卡交换.
read-onlywildberriesStatusstring野生的状态.
read-onlywildberriesMessagestring野生果消息.
read-onlywildberriesMessageParamsstring野生果的消息.
read-onlynationalCatalogStatusstring国家目录状态.
read-onlynationalCatalogMessagestring美国国家目录信息.
read-onlynationalCatalogMessageParamsstring美国国家目录信息系统.
read-onlyozonStatusstring臭氧状态
read-onlyozonMessagestring臭氧信息.
read-onlyozonMessageParamsstring子信息系统.
read-onlyozonTaskIdinteger · int64子任务身份证.
read-onlywildberriesFbsOrdersQuantityinteger · int32果公司订单量.
read-onlyozonFbsOrdersQuantityinteger · int32子联邦调查局订单量.
read-onlyymarketFbsOrdersQuantityinteger · int32美国联邦调查局订单量.
read-onlytotalSupplyingQuantityinteger · int32总供应量
read-onlyskuIdinteger · int64现在,我知道.
read-onlyskuSku斯库.
barcodesProductBarcode[]条码.
serviceProductsServiceProduct[]服务产品
siteArticlestring网站文章
siteIdstring网站身份.
paramsstring帕姆斯.
valuesParamValue[]价值观.
groupobject集团.
read-onlyduplicatesProduct[]复制品.
read-onlyhasChangesboolean有变化.
ignoreDuplicateboolean忽略复制.
yandexMarketStockCountinteger · int64亚兰德克斯市场股票计数.
read-onlygroupIdinteger · int64组身份证.
yandexMarketStatusstring亚兰德克斯市场状况
read-onlyyandexMarketMessagestring亚兰德克斯市场信息.
read-onlyyandexMarketMessageParamsstring亚兰德克斯市场信息系统.
read-onlyduplicateboolean复制.
read-onlyozonHasPhotoboolean森有照片.
read-onlyaliexpressStatusstring快速通讯状态
read-onlyaliexpressMessagestring快递信息.
read-onlyaliexpressMessageParamsstring通过Aliexpress消息.
read-onlymoySkladTypestring的类型.
read-onlymoySkladStatusstring摩伊斯克拉德状态.
read-onlyavitoStatusstring果状态.
read-onlymoySkladMessagestring莫伊·斯克拉德的消息.
read-onlymoySkladMessageParamsstring摩伊斯克拉德的信息.
read-onlyremoveFbsStockOzonboolean删除联邦调查局的片.
removeFbsStockWbboolean删除FBS股票Wb.
removeFbsStockAliboolean删除FBI股票阿里.
removeFbsStockYmboolean删除FBS股票YM.
removeFbsStockSberboolean删除FBS股份Sber.
quantityinteger · int32量量.
read-onlyincomeQuantityinteger · int32收入量
orderMinDatestring · date-time订单 Min 日期.
read-onlyexpiredDatestring · date-time截止日期.
read-onlyproductionDatestring · date-time制作日期
read-onlystockinteger · int32股票.
read-onlystockValuenumber · double股票价值
read-onlystocksobject股票.
read-onlycellCell电池.
read-onlyreservedinteger · int32预定.
read-onlyreservedValuenumber · double预留价值
read-onlycalculatedStockinteger · int32计算的股票.
read-onlycalculatedStockValuenumber · double股票的计算值
read-onlypricenumber · double价格.
competitorsCompetitor[]竞争对手.
read-onlyaverageCompetitorPricenumber · double竞争对手的平均价格.
read-onlycompetitorPriceCurrencystring竞争对手价格货币
read-onlyupdatedPricenumber · double更新价格.
priceWithoutDiscountnumber · double价格没有折扣.
updatedPriceWithoutDiscountnumber · double更新价格,没有折扣.
updatedDeliveryCostnumber · double更新的交货成本
updatedPurchasePricenumber · double更新的购买价格.
purchasePricenumber · double买价.
isPurchasePriceUpdatedboolean购买价格更新.
isDeliveryCostUpdatedboolean货物交付费用是否更新
wholesalePricenumber · double批发价格
deliveryCostnumber · double交货成本
strategyIdinteger · int64战略身份.
ozonAverageExpensesnumber · double臭氧平均支出
read-onlywildberriesAverageExpensesnumber · double野生的平均支出.
read-onlyyandexMarketAverageExpensesnumber · double亚兰德克斯市场平均支出
read-onlywildberriesSaleinteger · int32野生果卖.
read-onlyminPricenumber · double价格不到.
ozonPromotionPricenumber · double臭氧提升价格.
read-onlyozonAcquiringPercentnumber · double气收购率
read-onlyozonComissonnumber · double子公司
read-onlysberMegaMarketSupplyingQuantityinteger · int32果市场供应量
read-onlyyandexMarketSupplyingQuantityinteger · int32亚兰德克斯市场供应量
read-onlysalesExpensesOnMpPercentnumber · double销售费用在MP百分比上
salesCountCoefficientnumber · double销售数量系数.
measureUnitIdinteger · int32测量单位ID.
taxeRatenumber · double税率.
desiredMarginalityPercentnumber · double需要的边缘化百分比.
desiredProfitRubnumber · double想要的利.
additionalCostnumber · double额外的成本
packWidthinteger · int32包装宽度.
packHeightinteger · int32包高.
packDepthinteger · int32包装深度.
packWeightinteger · int32包装重量.
maxLoadWeightinteger · int32重量最大.
numOfPiecesInBoxinteger · int32盒子里有很多东西.
lastWildberriesSaleDatestring · date-time最后的"野"销售日期.
lastWildberriesOrderDatestring · date-time最后的"野"订单日期.
lastOzonSaleDatestring · date-time最后的臭氧销售日期.
lastOzonOrderDatestring · date-time最后的奥订单日期.
totalOrdersCountinteger · int32总订单数量.
read-onlytotalFbsOrdersCountinteger · int32总的联邦调查局订单数量.
read-onlywildberriesTotalOrdersCountinteger · int32野生果总订单数量.
read-onlyignoreFbsWarehousesstring忽略了FBI的仓库.
fbsWarehousesstring美国联邦调查局仓库.
minFbsStockinteger · int32美国联邦调查局股票.
maxFbsStockinteger · int32联邦调查局的最大股票.
wildberriesSaleLogisticnumber · double野生果销售物流.
wildberriesReturnLogisticnumber · double野生果回归物流.
wildberriesTotalLogisticsnumber · double野生果总物流.
wildberriesWarehouseRationumber · double野生仓库比例.
wildberriesComissionnumber · double野生果委员会.
ozonSaleLogisticnumber · double子销售物流.
ozonReturnLogisticnumber · double子回归物流.
ozonCommissionnumber · double臭氧委员会
maxDeliveryToPickupPointnumber · double马克斯到达取货点.
ozonPurchasePercentnumber · double气购买率
wildberriesPurchasePercentnumber · double果购买率.
minMarginalitynumber · double没有任何其他东西.
maxMarginalitynumber · double马克斯的边缘性.
minProfitnumber · double利的最小值.
maxProfitnumber · double马克斯利.
minPriceWithDiscountnumber · double价格最低,折扣.
maxPriceWithDiscountnumber · double马克斯价格,折扣.
oldWildberriesPriceWithDiscountnumber · double旧的野价格有折扣.
oldWildberriesSaleinteger · int32旧的野卖场.
wildberriesPromoProfitnumber · double果的促销利.
wildberriesMarginalitynumber · double果边缘化.
wildberriesPromoIdinteger · int64果的促销身份.
oldWildberriesPromoSalePercentnumber · double旧的野促销销售率.
oldWildberriesPromoPriceWithDiscountnumber · double旧的野促销价格,折扣.
endWildberriesPriceWithSppConfignumber · double结束"野"价格与Spp Config.
ozonFbsCommissionnumber · double子联邦调查委员会.
ozonFboCommissionnumber · double子贸易委员会
wbTotalSalesCountinteger · int64总销售额计数.
ozonTotalSalesCountinteger · int64子总销售额计数.
sberTotalSalesCountinteger · int64总销售额.
yandexTotalSalesCountinteger · int64亚兰德克斯总销售额.
ozonRaitingnumber · double子袭击.
read-onlyozonFeedbackCountinteger · int32子反计数.
read-onlyozonPriceWithSppnumber · double气价格与Spp.
read-onlyfboStockCountinteger · int64美国联邦调查局股票计.
fbsStockCountinteger · int64联邦调查局股票计.
stockCoverageDaysinteger · int64股票保险日期.
fboSupplyQuantityinteger · int64美国联邦农业局供应量.
fboSalesinteger · int64美国联邦销售局.
fbsSalesinteger · int64美国联邦调查局.
fboOrdersinteger · int64美国联邦调查局命令.
fbsOrdersinteger · int64联邦调查局的命令.
recommendPlannumber · double建议计划.
baseDeficitinteger · int64基本缺陷.
allocatedWithoutWarehouseinteger · int64没有仓库的分配.
skipDaysCountinteger · int32跳过日数.
organizationShortNamestring组织简称.
contractorNamestring承包商的名字.
supplyPlanBarcodestring供应计划条码.
planCorrectionFactornumber · double计划纠正因素.
orderBeforeinteger · int32之前的命令.
daysBeforeSupplyinteger · int32在供应前几天.
supplyPlanDaysinteger · int32供应计划日期.
warehouseIdForSupplyReportinteger · int64库存供应报告.
read-onlywarehouseNameForSupplyReportstring供应报告的仓库名称.
read-onlywbCanBoxboolean可以盒子.
read-onlywbCanMonopalletboolean片片.
read-onlywbCanSupersafeboolean可以超级安全.
read-onlywbCanBoxOnPalletboolean子上可以.
read-onlymanagerstring经理.
cellIdinteger · int32电话身份证.
drrPercentinteger · int32百分比博士.
percentForParticipationPromoOrAdvertisinginteger · int32参与促销或广告的百分比
selsupLinkstring卖货链接.
tempIdinteger · int64临时身份证.
categoryCategory类别.
findirTipsobject找个提示.
commissionsstring佣金.
commissionCalculationsobject委员会计算
lowStockAlertsstring低股警报.
inputVatnumber · double输入VAT.
outputVatnumber · double输出瓦.
finalVatnumber · double终极的.
incomeTaxnumber · double收入税.
totalTaxnumber · double总税.
netProfitnumber · double净利.
marginnumber · double边缘.
woocomStatusstring姆状态.
read-onlydateStartSeason1string · date开始第一季的日期.
dateEndSeason1string · date时间结束第一季.
dateStartSeason2string · date开始第二季的日期.
dateEndSeason2string · date时间结束第二季.
dateStartSeason3string · date开始时间3季.
dateEndSeason3string · date时间结束第三季.
dateStartSeason4string · date开始时间4.
dateEndSeason4string · date时间结束第四季.
currentGrossProfitobject现货总利
plannedGrossProfitobject预计的总利.
positioninteger · int32位置.
emptyBarcodesboolean没有条码.
uzumStatusstring乌兹姆状态.
read-onlymakroStatusstring宏观状态.
read-onlykaspiStatusstring卡斯皮状态.
read-onlysitestring网站.
anyLinkstring任何联系.
anyArticlestring任何一条.
shopifyStatusstring购物状态.
read-onlytakealotStatusstring取代状态.
read-onlyyandexKitStatusstring亚兰德克斯套件状态.
read-onlybobShopStatusstring勃的商店状态.
read-onlyminPriceForAllMarketplacenumber · double对于所有市场的最低价格.
calculatedInstockQuantityinteger · int32计算的库存量
woocomParentIdinteger · int64姆的父母身份证.
woocomPermalinkstring们的永久链接.
yandexMarketSkuinteger · int64亚兰德克斯市场.
read-onlyexternalArticlestring其他类型
moySkladLinkIdstring子链接身份证.
read-onlydetmirArticlestring关于""的文章.
lamodaArticlestring拉莫达文章.
magnitArticlestring强大的文章.
mvideoArticlestring视频文章.
wildberriesImtIdinteger · int64野生果没有身份.
read-onlyozonProductIdinteger · int64臭氧产品ID
read-onlyleroyMerlinIdstring莱罗伊·默林的身份.
leroyMerlinArticlestring莱罗伊·默林文章.
yandexMarketShopSkustring亚兰德克斯市场商店Sku.
wildberriesSizeIdinteger · int64野生果尺寸身份证.
read-onlysberMegaMarketIdinteger · int64果市场的身份
aliexpressSkustring快速飞机.
uzumProductIdinteger · int64乌兹姆产品身份证.
read-onlylamodaParentSkustring拉莫达父母斯库.
ebayArticlestring关于"Ebay文章"
ozonIdinteger · int64气标识.
read-onlysberArticlestring其他国家
ozonArticlestring臭氧条款
oneCIdstring一个公告.
oneCArticlestring关于"一条条"的规定.
detmirIdstring查看更多
simalandIdinteger · int64马兰特斯拉的身份证.
lamodaSkustring拉莫达斯库.
walmartSkustring沃尔玛斯库.
walmartIdstring沃尔玛的身份证.
woocomSkustring,你是个.
woocomIdinteger · int64们的身份证.
magnitIdstring磁铁身份证.
magnitSkustring,我在.
opencartSkustring开车车Sku.
opencartIdinteger · int64开车身份证.
takealotSkustring拿着斯库洛特.
uzumArticlestring乌兹姆文献.
ozonFbsSkuinteger · int64子联邦调查局.
read-onlyozonFboSkuinteger · int64子子.
read-onlyavitoIdinteger · int64果的身份.
read-onlymoySkladIdstring子子的身份.
read-onlysellerSkustring卖家斯库.
uzumSkuIdinteger · int64乌兹姆斯库特.
read-onlyyandexMarketProductIdinteger · int64亚兰德克斯市场产品身份证
read-onlynationalCatalogFeedIdinteger · int64国家目录料身份.
read-onlynationalCatalogGoodIdinteger · int64美国国家目录的身份证.
read-onlywildberriesPricenumber · double野生价格.
read-onlywildberriesUpdatedPricenumber · double果更新价格
wildberriesPriceWithoutDiscountnumber · double果价格没有折扣.
read-onlywildberriesUpdatedPriceWithoutDiscountnumber · double果 更新价格,没有折扣
aliexpressPricenumber · double快速报价.
read-onlyaliexpressPriceWithoutDiscountnumber · double没有折扣的Aliexpress价格.
aliexpressUpdatedPricenumber · double快速通货机的价格
aliexpressUpdatedPriceWithoutDiscountnumber · double没有折扣的Aliexpress更新价格.
ozonPricenumber · double子价格.
read-onlyozonUpdatedPricenumber · double子更新价格
ozonPriceWithoutDiscountnumber · double气价格没有折扣.
read-onlyozonUpdatedPriceWithoutDiscountnumber · double子更新价格没有折扣.
leroyMerlinPricenumber · double莱罗伊·默林·普莱斯.
leroyMerlinUpdatedPricenumber · double莱罗伊·默林更新了价格.
avitoPricenumber · double艾维托普莱斯.
avitoUpdatedPricenumber · double亚维托更新价格
sberMegaMarketPricenumber · double果超级市场价格
read-onlysberMegaMarketUpdatedPricenumber · double恒达市场更新价格
yandexMarketPricenumber · double亚兰德克斯市场价格.
read-onlyyandexMarketPriceWithoutDiscountnumber · double亚兰德克斯市场价格没有折扣.
read-onlyyandexMarketUpdatedPricenumber · double亚兰德克斯市场更新价格
yandexMarketUpdatedPriceWithoutDiscountnumber · double亚兰德克斯市场更新价格,没有折扣.
productPricesProductPrice[]产品价格
stockRulesProductStockRules股票规则.
idinteger · int64Id.
barcodestring条码.
primaryBarcodeboolean基本条码.
organizationIdinteger · int64组织身份证.
clientIdinteger · int64客户身份证.
productIdinteger · int64产品身份证
useInWildberriesboolean使用在野.
useInOzonboolean在臭氧中使用.
useInYandexMarketboolean在Yandex市场使用.
useInAliexpressboolean使用在Aliexpress中.
useInSberMegamarketboolean在Sber大市场使用.
useInWoocomboolean使用在Woocom.
formatstringFormat.
servicestring服务.
statusstringStatus.
lastAttemptAtstring · date-time最后一次尝试.
errorSourcestring错误源
messagestring信息.
messageParamsstring消息帕拉姆.
idinteger · int64Id.
read-onlyurlstring查看一个URL.
read-onlypositioninteger · int32位置.
productViewIdinteger · int64产品查看ID.
read-onlywildberriesImgUUIDstring野生 Img UUID.
read-onlyservicesstring[]服务.
clientIdinteger · int64客户身份证.
angleNamestring角号
articlestring关于此的文章.
必填organizationIdinteger · int64组织身份证.
必填categoryCategory类别.
read-onlycategoryIdinteger · int32类别的ID.
必填manufacturerManufacturer制造商
read-onlymanufacturerIdinteger · int32制造商身份
必填brandBrand品牌.
read-onlybrandIdinteger · int32品牌身份证.
必填idinteger · int64Id.
namestring姓名.
promoNamestring广告名字.
titlestring标题
wildberriesImtIdinteger · int64野生果没有身份.
read-onlydescriptionstring描述
genderstring性别.
packWidthinteger · int32包装宽度.
packHeightinteger · int32包高.
packDepthinteger · int32包装深度.
packWeightinteger · int32包装重量.
seasonstring赛季.
materialsstring材料.
laundrystring洗衣.
versionIdinteger · int64版本ID.
clientIdinteger · int64客户身份证.
read-onlydeletedboolean删除了.
read-onlyvatstring,,我没有什么.
createdDatestring · date-time创造日期.
read-onlycreatedUserstring创建用户.
read-onlycountryIdinteger · int32国家的身份证.
countryNamestring国家的名称.
read-onlykeywordsstring关键词.
favouriteboolean我最喜欢的.
paramsstring帕姆斯.
valuesParamValue[]价值观.
sourceModelIdinteger · int64来源模型身份证.
additionalInfostring更多信息
createIndexinteger · int32创建索引.
read-onlybulkboolean的.
safetyDocumentsNotRequiredboolean无需安全文件.
safetyDocumentIdsinteger[]安全文件身份证.
safetyDocumentsQualityDocument[]安全文件.
read-onlyoneCIdstring一个公告.
sitestring网站.
shelfLifeinteger · int32货架寿命.
shelfLifeUnitstring货架寿命单位.
shelfLifeCommentstring货架寿命评论
lifeTimeinteger · int32生命时间.
lifeTimeUnitstring生命时间单位.
lifeTimeCommentstring生命时间评论
modelGuaranteeinteger · int32提供保证.
modelGuaranteeUnitstring模型保证单位.
modelGuaranteeCommentstring质量标准
hasChangesboolean有变化.
pricenumber · double价格.
deliveryCostnumber · double交货成本
wholesalePricenumber · double批发价格
purchasePricenumber · double买价.
purchaseCurrencystring购买货币.
deliveryCostInCurrencynumber · double货币的交付成本
purchasePriceInCurrencynumber · double货币的购买价格
priceWithoutDiscountnumber · double价格没有折扣.
viewsProductView[]观看
必填servicesstring[]服务.
contractorsContractor[]承包商.
sourceIncomeItemIdinteger · int64收入来源项目ID
costPricenumber · double价格.
aliexpressGroupIdstring艾利克斯普雷斯集团身份证
read-onlyaliexpressIdstring快递证件
read-onlysimpleImportboolean简单的进口.
selectedProductsinteger[]选择产品
idinteger · int64Id.
productIdinteger · int64产品身份证
productobject产品
priceTypeIdinteger · int64价格类型身份证.
priceTypePriceType价格类型.
servicestring服务.
clientIdinteger · int64客户身份证.
pricenumber · double价格.
updatedPricenumber · double更新价格.
priceWithoutDiscountnumber · double价格没有折扣.
updatedPriceWithoutDiscountnumber · double更新价格,没有折扣.
minPricenumber · double价格不到.
updatedMinPricenumber · double更新的最低价格.
percentForParticipationPromoOrAdvertisinginteger · int32参与促销或广告的百分比
isActiveboolean现在还在行动.
articlestring关于此的文章.
pendingOperationIdstring预期行动证.
stockinteger · int32股票.
stockValuenumber · double股票价值
cellCell电池.
reservedinteger · int32预定.
reservedValuenumber · double预留价值
calculatedStockinteger · int32计算的股票.
calculatedStockValuenumber · double股票的计算值
expiredDatestring · date-time截止日期.
minFbsStockinteger · int32美国联邦调查局股票.
maxFbsStockinteger · int32联邦调查局的最大股票.
subtractFromStockinteger · int32减去从股票.
distributionRulesStockDistributionRule[]分配规则.
idinteger · int64Id.
read-onlyurlstring查看一个URL.
read-onlypositioninteger · int32位置.
productViewIdinteger · int64产品查看ID.
read-onlyproductIdinteger · int64产品身份证
read-onlyvideoUrlsstring视频URL.
read-onlyservicesstring[]服务.
colorstring颜色.
wbArticlestring关于"世界杯"的文章.
needKizboolean需要Kiz.
idinteger · int64Id.
imagesProductImage[]照片.
videosProductVideo[]视频.
productModelIdinteger · int64产品模型身份证
read-onlymodelProductModel模型.
read-onlyactualboolean实际的.
mainImageProductImage标签:
read-onlymainImageIdinteger · int64标签:
mainImageUrlstring标签: 标题:
read-onlyimageUrlsstring图像的URL.
read-onlyimagesUpdatedAtstring · date-time照片更新在
read-onlyimage360Urlsstring图像360的URL.
read-onlywildberriesIdinteger · int64果的身份证.
createdDatestring · date-time创造日期.
read-onlycreatedUserstring创建用户.
read-onlyversionIdinteger · int64版本ID.
clientIdinteger · int64客户身份证.
read-onlydeletedboolean删除了.
read-onlykeywordsstring关键词.
wildberriesRatingnumber · double果排名.
read-onlywildberriesFeedbacksinteger · int32果回复
read-onlywbRaitingnumber · double击的世界.
read-onlywbFeedbackCountinteger · int32查看评论.
read-onlywbPriceWithSppnumber · double价格与Spp.
read-onlywildberriesCardDoesNotOpenboolean果卡没有开放.
read-onlywildberriesHasPhotoboolean野生果有照片.
read-onlyorganizationIdinteger · int64组织身份证.
read-onlyparamsstring帕姆斯.
additionalInfostring更多信息
valuesParamValue[]价值观.
viewSourceIdinteger · int64查看来源ID.
read-onlysizesProduct[]尺寸.
必填hasChangesboolean有变化.
viewWbArticleProductView查看Wb文章.
viewVersionIdinteger · int64查看版本ID.
idinteger · int64Id.
namestring姓名.
typestringType.
numberstring号码.
numberNormalizedstring号码正常化.
clientIdinteger · int64客户身份证.
versionIdinteger · int64版本ID.
createdUserstring创建用户.
startDatestring · date开始日期.
expireDatestring · date截止日期.
indefiniteboolean无限期.
dataQualityDocumentData[]数据.
imagesQualityDocumentImage[]照片.
idinteger · int64Id.
documentIdinteger · int64文件身份证.
productModelIdinteger · int64产品模型身份证
brandBrand品牌.
brandIdinteger · int32品牌身份证.
categoryCategory类别.
categoryIdinteger · int32类别的ID.
clientIdinteger · int64客户身份证.
idinteger · int64Id.
urlstring查看一个URL.
positioninteger · int32位置.
documentIdinteger · int64文件身份证.
clientIdinteger · int64客户身份证.
servicestring服务.
externalIdstring其他身份证.
namestring姓名.
serviceProductIdinteger · int64服务产品身份证
productIdinteger · int64产品身份证
serviceIdinteger · int32服务身份证.
serviceListingIdinteger · int64服务列表身份证.
serviceCardIdinteger · int64服务卡身份证.
fboStockinteger · int32美国联邦调查局.
lastRepricerPriceStatusstring总体而言,
errorMessagestring错误信息
serviceCardstring服务卡.
serviceCardProductstring服务卡产品
serviceCardUrlstring服务卡的URL.
serviceProductUrlstring服务产品URL
serviceBarcodestring服务条码.
fboCommissionsnumber · double联邦调查局委员会.
fbsCommissionsnumber · double联邦调查局委员会.
purchasePercentnumber · double购买百分比.
serviceArticlestring服务条款
clientIdinteger · int64客户身份证.
organizationIdinteger · int64组织身份证.
fieldsToClearstring[]必须清除场地.
idinteger · int64Id.
productProduct产品
productIdinteger · int64产品身份证
servicestring服务.
organizationIdinteger · int64组织身份证.
serviceWarehouseIdinteger · int64服务仓库身份证.
stockAboveinteger · int32股票上.
stockBelowinteger · int32股票下面.
multipliernumber乘以数量.
idinteger · int64Id.
warehouseIdinteger · int64仓库身份证.
clientIdinteger · int64客户身份证.
namestring姓名.
cellIdsinteger[]电话身份证.
productIdsinteger[]产品身份证
productsProduct[]产品.
idinteger · int64Id.
namestring姓名.
deletedboolean删除了.
typestringType.
categoryClassstring类别类.
parentIdinteger · int64亲人身份证.
keywordsstring关键词.
descriptionstring描述
paramsTnvedIdinteger · int64帕拉姆斯特内维德身份证.
isInParamboolean在帕拉姆.
certificationstring证书.
codestringCode.
parentCodestring家庭代码.
certificationRequiredboolean需要获得证书.
namestring姓名.
measureIdinteger · int32测量ID.
idinteger · int32Id.
idinteger · int64Id.
namestring姓名.
publishedboolean发表了.
hasSizeboolean有大小.
monoBoxMinQuantityinteger · int32单盒子最小量.
monoTypestring单一类型.
monoMinPriceinteger · int32单小价格.
hasParentboolean有父母.
parentIdinteger · int64亲人身份证.
wildberriesIdinteger · int64果的身份证.
lastSyncDatestring · date-time最后的同步日期.
notChangedDaysinteger · int32没有改变的日子.
commissionnumber · double委员会.
fbsCommissionnumber · double联邦调查局.
fbwCommissionnumber · double联邦调查委员会.
dbsCommissionnumber · double美国联邦调查局
edbsCommissionnumber · double艾德斯委员会.
cAndCCommissionnumber · double委员会.
bookingCommissionnumber · double预订委员会.
logisticPriceinteger · int32后勤价格.
storagePricenumber · double存储价格.
acceptancePricenumber · double接受价格.
needDimensionsboolean需要维度.
purchasePercentAvgnumber · double购买百分比 Avg.
purchasePercentMinnumber · double购买百分比
photoAvginteger · int32照片来源:
photoMininteger · int32照片:
drrAvgnumber · double艾夫博士.
drrMinnumber · double博士.
marginAvgnumber · double边缘 Avg.
marginMinnumber · double边缘分.
candCCommissionnumber · double委员会.
idinteger · int64Id.
namestring姓名.
必填publishedboolean发表了.
parentIdinteger · int64亲人身份证.
isLeafboolean是叶子.
lastSyncDatestring · date-time最后的同步日期.
notChangedDaysinteger · int32没有改变的日子.
cellIdinteger · int32电话身份证.
shelfIdinteger · int32货架身份证.
rackIdinteger · int32查看身份证.
passageIdinteger · int32通过身份证.
warehouseIdinteger · int64仓库身份证.
createdinteger · int32创造了.
updatedinteger · int32更新了.
cellIdinteger · int32电话身份证.
fullNamestring完整名字.
sortNamestring某种名字.
passageIdinteger · int32通过身份证.
rackIdinteger · int32查看身份证.
shelfIdinteger · int32货架身份证.
typestringType.
cellVolumenumber · double细胞数量
usedVolumenumber · double已使用的量.
fillPercentinteger · int32填充百分比.
productsCountinteger · int32产品数量.
unitsCountinteger · int32单位数量.
incompleteProductDataboolean产品数据不完整.
warehouseIdinteger · int64仓库身份证.
totalVolumenumber · double总量
usedVolumenumber · double已使用的量.
freeVolumenumber · double免费的卷.
fillPercentinteger · int32填充百分比.
cellsTotalinteger · int32细胞总数.
cellsOccupiedinteger · int32细胞被占领.
cellsFreeinteger · int32细胞自由.
cellsWithoutDimensionsinteger · int32没有维度的细胞.
cellsWithIncompleteProductDatainteger · int32没有完整的产品数据的细胞.
cellsCellOccupancy[]细胞.
latitudenumber · double广度.
longitudenumber · double长度.
addressstring现在,我有个地址.
namestring姓名.
coordinatesCoordinates坐标.
warehouse_idinteger · int64仓库身份证.
warehouse_typestring仓库类型.
idinteger · int64Id.
namestring姓名.
addressstring现在,我有个地址.
idobjectId.
namestring姓名.
warehouseIdinteger · int64仓库身份证.
quantityinteger · int32量量.
distinctQuantityinteger · int64显而易见的数量.
purchasePricenumber · double买价.
additionalExpensesAmountnumber · double额外费用
wildberriesRetailPricenumber · double野生果零售价格
ozonRetailPricenumber · double子零售价格
yandexMarketRetailPricenumber · double亚兰德克斯市场零售价格
aliexpressRetailPricenumber · double果零售价格
sberMegaMarketRetailPricenumber · double瑞银大市场零售价格
retailPriceByMarketplacenumber · double按市场价格.
错误合同
编程的代码在每个地方都相同,而用户面向的消息由服务器翻译. 建立在error周围的应用逻辑,仅用于显示.
鱼类稳定机器可读的代码用于集成逻辑.
鱼类在API代币用户语言中显示准备的消息.
鱼类服务器在本地化消息模板中插入的值.
localMessage使用了 API代币的用户的lang字段.文档语言和 Accept-Language标题不会改变它;当用户没有语言配置时,使用俄语.
{
"error": "error_brand_already_exists",
"localMessage": "Бренд Base уже существует",
"params": {
"name": "Base"
}
}{
"error": "error_brand_already_exists",
"localMessage": "品牌 Base 已经存在",
"params": {
"name": "Base"
}
}终点
/api/warehouse/{warehouseId}使用GETX/api/warehouse/{warehouseId}.的仓库ID
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cell_not_found应用逻辑中使用稳定的error_cell_not_found代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
/api/warehouse/{warehouseId}使用 PUT /api/warehouse/{warehouseId}.的补丁仓库
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
application/jsonWarehouse| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddresscurl --request PUT 'https://api.selsup.ru/api/warehouse/1001' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/1001', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/1001', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.put(
'https://api.selsup.ru/api/warehouse/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'name': 'Example',
'service': 'NONE',
'organizationId': 1001,
'organizationIds': 'string',
'fboOrganizationId': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/1001',
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.selsup.ru/api/warehouse/1001", strings.NewReader(`{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_base_creating应用逻辑中使用稳定的error_base_creating代码;localMessage包含上述翻译.
error_cabinet_access_denied应用逻辑中使用稳定的error_cabinet_access_denied代码;localMessage包含上述翻译.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_duplicate_warehouse_name应用逻辑中使用稳定的error_duplicate_warehouse_name代码;localMessage包含上述翻译.
error_empty_first_name应用逻辑中使用稳定的error_empty_first_name代码;localMessage包含上述翻译.
error_empty_last_name应用逻辑中使用稳定的error_empty_last_name代码;localMessage包含上述翻译.
error_empty_organization_form应用逻辑中使用稳定的error_empty_organization_form代码;localMessage包含上述翻译.
error_empty_organization_inn应用逻辑中使用稳定的error_empty_organization_inn代码;localMessage包含上述翻译.
error_empty_organization_name应用逻辑中使用稳定的error_empty_organization_name代码;localMessage包含上述翻译.
error_empty_position_name应用逻辑中使用稳定的error_empty_position_name代码;localMessage包含上述翻译.
error_empty_warehouse_name应用逻辑中使用稳定的error_empty_warehouse_name代码;localMessage包含上述翻译.
error_map_directory_published_location_invalid应用逻辑中使用稳定的error_map_directory_published_location_invalid代码;localMessage包含上述翻译.
error_max_page应用逻辑中使用稳定的error_max_page代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_organization_create_failed应用逻辑中使用稳定的error_organization_create_failed代码;localMessage包含上述翻译.
error_organization_exists应用逻辑中使用稳定的error_organization_exists代码;localMessage包含上述翻译.
error_organization_not_found应用逻辑中使用稳定的error_organization_not_found代码;localMessage包含上述翻译.
error_position_exists应用逻辑中使用稳定的error_position_exists代码;localMessage包含上述翻译.
error_reload应用逻辑中使用稳定的error_reload代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
error_warehouses_limit_exceeded应用逻辑中使用稳定的error_warehouses_limit_exceeded代码;localMessage包含上述翻译.
error_wrong_inn应用逻辑中使用稳定的error_wrong_inn代码;localMessage包含上述翻译.
error_wrong_version应用逻辑中使用稳定的error_wrong_version代码;localMessage包含上述翻译.
/api/warehouse/{warehouseId}使用 DELETE /api/warehouse/{warehouseId}.删除仓库
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
restore |
boolean | 否 | 恢复. |
curl --request DELETE 'https://api.selsup.ru/api/warehouse/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.delete(
'https://api.selsup.ru/api/warehouse/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/1001',
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.selsup.ru/api/warehouse/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
"string"应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/storage-zone使用 PUT 保存存储区
application/jsonStorageZone| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellIds |
integer[] | 否 | 电话身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productIds |
integer[] | 否 | 产品身份证 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
products |
Product[] | 否 | 产品. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productType |
stringPRODUCT, SET, SERVICE, DIGITAL, CONTAINER | 否 | 产品类型 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
printName |
string | 否 | 打印名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
realSize |
string | 否 | 实质尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vendorSize |
string | 否 | 卖家尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size |
string | 否 | 尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesStockCount |
integer · int32 | 否 | 野生果股票数量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonRealFbs |
boolean | 否 | 森真实电视台. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonStockCount |
integer · int32 | 否 | 子股票计数. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonStockBetweenWarehouses |
integer · int32 | 否 | 储备库存之间. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removeFbsStock |
boolean | 否 | 删除FBS股票. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noStockSync |
boolean | 否 | 没有股票同步. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
excludeCalculatedStockFromFbs |
boolean | 否 | 排除从联邦财政局的计算股份. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purchaseCurrency |
stringRUB, USD, EUR, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY | 否 | 购买货币. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purchasePriceInCurrency |
number · double | 否 | 货币的购买价格 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deliveryCostInCurrency |
number · double | 否 | 货币的交付成本 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versionId |
integer · int64 | 否 | 版本ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdDate |
string · date-time | 否 | 创造日期. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
created |
string · date-time | 否 | 创造了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdUser |
string | 否 | 创建用户. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceIncomeItemId |
integer · int64 | 否 | 收入来源项目ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceProductId |
integer · int64 | 否 | 产品来源身份 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentJobIds |
integer[] | 否 | 工作证件. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonRequiredStock |
integer · int32 | 否 | 子需要的库存. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesRequiredStock |
integer · int32 | 否 | 野生需要的库存. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesProfit |
number · double | 否 | 果利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesProfitFbs |
number · double | 否 | 果公司的利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesOrderQuantity |
integer · int32 | 否 | 野生果订单量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesSupplyingQuantity |
integer · int32 | 否 | 野生果供应量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWayToClient |
integer · int32 | 否 | 果量到客户端. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWayFromClient |
integer · int32 | 否 | 客户的传递量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesSaleQuantity |
integer · int32 | 否 | 野生果销售量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWay |
integer · int32 | 否 | 野生果量正在走向. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesNoSale |
boolean | 否 | 没有卖的野. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lastStockChange |
string · date-time | 否 | 最后的股票变化. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonOrderQuantity |
integer · int32 | 否 | 子订单量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonSupplyingQuantity |
integer · int32 | 否 | 气供应量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonProfit |
integer · int32 | 否 | 子利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instockQuantity |
integer · int32 | 否 | 存量量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instockQuantityValue |
number · double | 否 | 存储量值 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stockUnit |
stringPCS, G, KG, ML, L | 否 | 股票单位. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calculatedInStockQuantity |
integer · int32 | 否 | 根据库存数量计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calculatedInStockQuantityValue |
number · double | 否 | 计算在库存量值. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 是 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productViewId |
integer · int64 | 否 | 产品查看ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
view |
ProductView | 否 | 景色. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
color |
string | 否 | 颜色. |
wbArticle |
string | 否 | 关于"世界杯"的文章. |
needKiz |
boolean | 否 | 需要Kiz. |
id |
integer · int64 | 否 | Id. |
images |
ProductImage[] | 否 | 照片. |
videos |
ProductVideo[] | 否 | 视频. |
productModelId |
integer · int64 | 否 | 产品模型身份证 |
model |
ProductModel | 否 | 模型. |
actual |
boolean | 否 | 实际的. |
mainImage |
ProductImage | 否 | 标签: |
mainImageId |
integer · int64 | 否 | 标签: |
mainImageUrl |
string | 否 | 标签: 标题: |
imageUrls |
string | 否 | 图像的URL. |
imagesUpdatedAt |
string · date-time | 否 | 照片更新在 |
image360Urls |
string | 否 | 图像360的URL. |
wildberriesId |
integer · int64 | 否 | 果的身份证. |
createdDate |
string · date-time | 否 | 创造日期. |
createdUser |
string | 否 | 创建用户. |
versionId |
integer · int64 | 否 | 版本ID. |
clientId |
integer · int64 | 否 | 客户身份证. |
deleted |
boolean | 否 | 删除了. |
keywords |
string | 否 | 关键词. |
wildberriesRating |
number · double | 否 | 果排名. |
wildberriesFeedbacks |
integer · int32 | 否 | 果回复 |
wbRaiting |
number · double | 否 | 击的世界. |
wbFeedbackCount |
integer · int32 | 否 | 查看评论. |
wbPriceWithSpp |
number · double | 否 | 价格与Spp. |
wildberriesCardDoesNotOpen |
boolean | 否 | 果卡没有开放. |
wildberriesHasPhoto |
boolean | 否 | 野生果有照片. |
organizationId |
integer · int64 | 否 | 组织身份证. |
params |
string | 否 | 帕姆斯. |
additionalInfo |
string | 否 | 更多信息 |
values |
ParamValue[] | 否 | 价值观. |
viewSourceId |
integer · int64 | 否 | 查看来源ID. |
sizes |
Product[] | 是 | 尺寸. |
hasChanges |
boolean | 否 | 有变化. |
viewWbArticle |
ProductView | 否 | 查看Wb文章. |
viewVersionId |
integer · int64 | 否 | 查看版本ID. |
suzIdcisTypenotChangedStockcardExchangesProductCardExchange
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
status |
stringWAITING_TO_SEND, SENT, ACCEPTED, ERROR | 否 | Status. |
lastAttemptAt |
string · date-time | 否 | 最后一次尝试. |
errorSource |
stringSELSUP, MARKETPLACE | 否 | 错误源 |
message |
string | 否 | 信息. |
messageParams |
string | 否 | 消息帕拉姆. |
wildberriesStatuswildberriesMessagewildberriesMessageParamsnationalCatalogStatusnationalCatalogMessagenationalCatalogMessageParamsozonStatusozonMessageozonMessageParamsozonTaskIdwildberriesFbsOrdersQuantityozonFbsOrdersQuantityymarketFbsOrdersQuantitytotalSupplyingQuantityskuIdskuSku
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
product |
Product | 否 | 产品 |
productId |
integer · int64 | 否 | 产品身份证 |
barcodesProductBarcode
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
barcode |
string | 否 | 条码. |
primaryBarcode |
boolean | 否 | 基本条码. |
organizationId |
integer · int64 | 否 | 组织身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
productId |
integer · int64 | 否 | 产品身份证 |
useInWildberries |
boolean | 否 | 使用在野. |
useInOzon |
boolean | 否 | 在臭氧中使用. |
useInYandexMarket |
boolean | 否 | 在Yandex市场使用. |
useInAliexpress |
boolean | 否 | 使用在Aliexpress中. |
useInSberMegamarket |
boolean | 否 | 在Sber大市场使用. |
useInWoocom |
boolean | 否 | 使用在Woocom. |
format |
string | 否 | Format. |
serviceProductsServiceProduct
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
serviceProductId |
integer · int64 | 否 | 服务产品身份证 |
productId |
integer · int64 | 否 | 产品身份证 |
serviceId |
integer · int32 | 否 | 服务身份证. |
serviceListingId |
integer · int64 | 否 | 服务列表身份证. |
serviceCardId |
integer · int64 | 否 | 服务卡身份证. |
fboStock |
integer · int32 | 否 | 美国联邦调查局. |
lastRepricerPriceStatus |
stringNONE, SUCCESS, ERROR | 否 | 总体而言, |
errorMessage |
string | 否 | 错误信息 |
serviceCard |
string | 否 | 服务卡. |
serviceCardProduct |
string | 否 | 服务卡产品 |
serviceCardUrl |
string | 否 | 服务卡的URL. |
serviceProductUrl |
string | 否 | 服务产品URL |
serviceBarcode |
string | 否 | 服务条码. |
fboCommissions |
number · double | 否 | 联邦调查局委员会. |
fbsCommissions |
number · double | 否 | 联邦调查局委员会. |
purchasePercent |
number · double | 否 | 购买百分比. |
serviceArticle |
string | 否 | 服务条款 |
clientId |
integer · int64 | 否 | 客户身份证. |
organizationId |
integer · int64 | 否 | 组织身份证. |
fieldsToClear |
string[] | 否 | 必须清除场地. |
siteArticlesiteIdparamsvaluesParamValue
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
paramId |
integer · int64 | 是 | 位名单. |
paramName |
string | 否 | 帕兰名字. |
option |
Option | 否 | 选择. |
doubleValue |
number · double | 否 | 双重价值. |
longValue |
integer · int64 | 否 | 长期价值. |
booleanValue |
boolean | 否 | 布尔值. |
stringValue |
string | 否 | 字符串值 |
dateValue |
string · date-time | 否 | 时间值 |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
unit |
Unit | 否 | 单位. |
auto |
boolean | 否 | 车辆. |
created |
integer · int64 | 否 | 创造了. |
user |
string | 否 | 用户. |
locked |
boolean | 否 | 锁定了. |
groupduplicateshasChangesignoreDuplicateyandexMarketStockCountgroupIdyandexMarketStatusyandexMarketMessageyandexMarketMessageParamsduplicateozonHasPhotoaliexpressStatusaliexpressMessagealiexpressMessageParamsmoySkladTypemoySkladStatusavitoStatusmoySkladMessagemoySkladMessageParamsremoveFbsStockOzonremoveFbsStockWbremoveFbsStockAliremoveFbsStockYmremoveFbsStockSberquantityincomeQuantityorderMinDateexpiredDateproductionDatestockstockValuestockscellCell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
reservedreservedValuecalculatedStockcalculatedStockValuepricecompetitorsCompetitor
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
modelId |
integer · int64 | 否 | 模型身份证. |
productId |
integer · int64 | 否 | 产品身份证 |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
url |
string | 是 | 查看一个URL. |
serviceId |
string | 否 | 服务身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
latestPrice |
number · double | 否 | 最新价格. |
currency |
stringRUB, USD, EUR, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY | 否 | 货币. |
latestPriceDate |
string · date-time | 否 | 最新价格日期. |
averageCompetitorPricecompetitorPriceCurrencyupdatedPricepriceWithoutDiscountupdatedPriceWithoutDiscountupdatedDeliveryCostupdatedPurchasePricepurchasePriceisPurchasePriceUpdatedisDeliveryCostUpdatedwholesalePricedeliveryCoststrategyIdozonAverageExpenseswildberriesAverageExpensesyandexMarketAverageExpenseswildberriesSaleminPriceozonPromotionPriceozonAcquiringPercentozonComissonsberMegaMarketSupplyingQuantityyandexMarketSupplyingQuantitysalesExpensesOnMpPercentsalesCountCoefficientmeasureUnitIdtaxeRatedesiredMarginalityPercentdesiredProfitRubadditionalCostpackWidthpackHeightpackDepthpackWeightmaxLoadWeightnumOfPiecesInBoxlastWildberriesSaleDatelastWildberriesOrderDatelastOzonSaleDatelastOzonOrderDatetotalOrdersCounttotalFbsOrdersCountwildberriesTotalOrdersCountignoreFbsWarehousesfbsWarehousesminFbsStockmaxFbsStockwildberriesSaleLogisticwildberriesReturnLogisticwildberriesTotalLogisticswildberriesWarehouseRatiowildberriesComissionozonSaleLogisticozonReturnLogisticozonCommissionmaxDeliveryToPickupPointozonPurchasePercentwildberriesPurchasePercentminMarginalitymaxMarginalityminProfitmaxProfitminPriceWithDiscountmaxPriceWithDiscountoldWildberriesPriceWithDiscountoldWildberriesSalewildberriesPromoProfitwildberriesMarginalitywildberriesPromoIdoldWildberriesPromoSalePercentoldWildberriesPromoPriceWithDiscountendWildberriesPriceWithSppConfigozonFbsCommissionozonFboCommissionwbTotalSalesCountozonTotalSalesCountsberTotalSalesCountyandexTotalSalesCountozonRaitingozonFeedbackCountozonPriceWithSppfboStockCountfbsStockCountstockCoverageDaysfboSupplyQuantityfboSalesfbsSalesfboOrdersfbsOrdersrecommendPlanbaseDeficitallocatedWithoutWarehouseskipDaysCountorganizationShortNamecontractorNamesupplyPlanBarcodeplanCorrectionFactororderBeforedaysBeforeSupplysupplyPlanDayswarehouseIdForSupplyReportwarehouseNameForSupplyReportwbCanBoxwbCanMonopalletwbCanSupersafewbCanBoxOnPalletmanagercellIddrrPercentpercentForParticipationPromoOrAdvertisingselsupLinktempIdcategoryCategory
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
categoryId |
integer · int32 | 否 | 类别的ID. |
name |
string | 是 | 姓名. |
deleted |
boolean | 否 | 删除了. |
parentId |
integer · int32 | 否 | 亲人身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
marked |
boolean | 否 | 标记了. |
categoryClass |
stringSHOES, LIGHT, DRUGS, CAMERA, TYRES, MILK, WATER, TOBACCO, FURS, BEER, BICYCLES, PERFUMES, ELECTRONIC, OTHER, NONE, FOOD, WHEELCHAIRS, OTP, NCP, BIO, ANTISEPTIC, NABEER, SOFTDRINKS, PETFOOD, SEAFOOD, MEAT, TOYS, TITAN, RADIO, OPTIC_FIBER, VEGETABLE_OIL, CONSERVE, VETPHARMA, CHEMISTRY, AUTOFLUIDS, GROCERY, BOOKS, CONSTRUCTION, FIRE, HEATER, CABLERAW, POLYMER, SWEETS, CARPARTS, NATURAL_FUR, NICOTINDEV, GADGETS, FROZEN, FERTILIZERS, HOMEWARE, VETBIO, INDUSTRIAL, PYROTECHNICS | 否 | 类别类. |
wildberriesType |
WildberriesType | 否 | 野生类型. |
wildberriesCategoryId |
integer · int64 | 否 | 野生类别的身份. |
wildberriesFbmCommission |
number · double | 否 | 野生果联邦调查委员会. |
wildberriesFbwCommission |
number · double | 否 | 野生果Fbw委员会. |
wildberriesFbsCommission |
number · double | 否 | 野生果联邦调查委员会. |
wildberriesDbsCommission |
number · double | 否 | 野生果食品委员会. |
wildberriesEdbsCommission |
number · double | 否 | 野生果养殖委员会. |
wildberriesCAndCCommission |
number · double | 否 | 果和果委员会. |
wildberriesBookingCommission |
number · double | 否 | 野生果预订委员会. |
ozonDescriptionCategoryId |
integer · int64 | 否 | 臭氧描述类别ID. |
yandexMarketCategoryId |
integer · int64 | 否 | 亚兰德克斯市场类别身份证 |
yandexMarketCategory |
YandexMarketCategory | 否 | 亚兰德克斯市场类别 |
ozonDescriptionCategory |
OzonDescriptionCategory | 否 | 臭氧描述类别 |
ozonCommission |
number · double | 否 | 臭氧委员会 |
tnved |
Tnved | 否 | 没有. |
tnvedId |
integer · int64 | 否 | 没有人知道. |
laundry |
string | 否 | 洗衣. |
params |
string | 否 | 帕姆斯. |
namePattern |
string | 否 | 姓名是模式. |
aliexpressCategory |
AliexpressCategory | 否 | 车类别 |
aliexpressCategoryId |
integer · int64 | 否 | 标签: 标识: |
avitoCategory |
AvitoCategory | 否 | 类别 |
lamodaCategory |
LamodaCategory | 否 | 拉莫达类别. |
lamodaCategoryId |
integer · int64 | 否 | 拉莫达类别的身份证. |
avitoCategoryId |
integer · int64 | 否 | 果类别的身份 |
packDepth |
integer · int32 | 否 | 包装深度. |
packWidth |
integer · int32 | 否 | 包装宽度. |
packHeight |
integer · int32 | 否 | 包高. |
packWeight |
integer · int32 | 否 | 包装重量. |
hasSize |
boolean | 否 | 有大小. |
hasColor |
boolean | 否 | 有颜色. |
autoName |
boolean | 否 | 车名. |
removeFbsStock |
boolean | 否 | 删除FBS股票. |
oneCId |
string | 否 | 一个公告. |
externalId |
string | 否 | 其他身份证. |
moySkladId |
string | 否 | 子子的身份. |
useClientParams |
boolean | 否 | 使用客户端参数. |
requiredExpirationDate |
boolean | 否 | 要求到期日期 |
serviceCategoryMappings |
object | 否 | 服务类别地图. |
productCount |
integer · int32 | 否 | 产品数量 |
findirTipscommissionscommissionCalculationslowStockAlertsinputVatoutputVatfinalVatincomeTaxtotalTaxnetProfitmarginwoocomStatusdateStartSeason1dateEndSeason1dateStartSeason2dateEndSeason2dateStartSeason3dateEndSeason3dateStartSeason4dateEndSeason4currentGrossProfitplannedGrossProfitpositionemptyBarcodesuzumStatusmakroStatuskaspiStatussiteanyLinkanyArticleshopifyStatustakealotStatusyandexKitStatusbobShopStatusminPriceForAllMarketplacecalculatedInstockQuantitywoocomParentIdwoocomPermalinkyandexMarketSkuexternalArticlemoySkladLinkIddetmirArticlelamodaArticlemagnitArticlemvideoArticlewildberriesImtIdozonProductIdleroyMerlinIdleroyMerlinArticleyandexMarketShopSkuwildberriesSizeIdsberMegaMarketIdaliexpressSkuuzumProductIdlamodaParentSkuebayArticleozonIdsberArticleozonArticleoneCIdoneCArticledetmirIdsimalandIdlamodaSkuwalmartSkuwalmartIdwoocomSkuwoocomIdmagnitIdmagnitSkuopencartSkuopencartIdtakealotSkuuzumArticleozonFbsSkuozonFboSkuavitoIdmoySkladIdsellerSkuuzumSkuIdyandexMarketProductIdnationalCatalogFeedIdnationalCatalogGoodIdwildberriesPricewildberriesUpdatedPricewildberriesPriceWithoutDiscountwildberriesUpdatedPriceWithoutDiscountaliexpressPricealiexpressPriceWithoutDiscountaliexpressUpdatedPricealiexpressUpdatedPriceWithoutDiscountozonPriceozonUpdatedPriceozonPriceWithoutDiscountozonUpdatedPriceWithoutDiscountleroyMerlinPriceleroyMerlinUpdatedPriceavitoPriceavitoUpdatedPricesberMegaMarketPricesberMegaMarketUpdatedPriceyandexMarketPriceyandexMarketPriceWithoutDiscountyandexMarketUpdatedPriceyandexMarketUpdatedPriceWithoutDiscountproductPricesProductPrice
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
productId |
integer · int64 | 否 | 产品身份证 |
product |
object | 否 | 产品 |
priceTypeId |
integer · int64 | 否 | 价格类型身份证. |
priceType |
PriceType | 否 | 价格类型. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
clientId |
integer · int64 | 否 | 客户身份证. |
price |
number · double | 否 | 价格. |
updatedPrice |
number · double | 否 | 更新价格. |
priceWithoutDiscount |
number · double | 否 | 价格没有折扣. |
updatedPriceWithoutDiscount |
number · double | 否 | 更新价格,没有折扣. |
minPrice |
number · double | 否 | 价格不到. |
updatedMinPrice |
number · double | 否 | 更新的最低价格. |
percentForParticipationPromoOrAdvertising |
integer · int32 | 否 | 参与促销或广告的百分比 |
isActive |
boolean | 否 | 现在还在行动. |
article |
string | 否 | 关于此的文章. |
pendingOperationId |
string | 否 | 预期行动证. |
stockRulesProductStockRules
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
minFbsStock |
integer · int32 | 否 | 美国联邦调查局股票. |
maxFbsStock |
integer · int32 | 否 | 联邦调查局的最大股票. |
subtractFromStock |
integer · int32 | 否 | 减去从股票. |
distributionRules |
StockDistributionRule[] | 否 | 分配规则. |
curl --request PUT 'https://api.selsup.ru/api/warehouse/storage-zone' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/storage-zone', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/storage-zone', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.put(
'https://api.selsup.ru/api/warehouse/storage-zone',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'warehouseId': 1001,
'clientId': 1001,
'name': 'Example',
'cellIds': 'string',
'productIds': 'string'
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/storage-zone',
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.selsup.ru/api/warehouse/storage-zone", strings.NewReader(`{
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/storage-zone"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
StorageZone
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellIds |
integer[] | 否 | 电话身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productIds |
integer[] | 否 | 产品身份证 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
products |
Product[] | 否 | 产品. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productType |
stringPRODUCT, SET, SERVICE, DIGITAL, CONTAINER | 否 | 产品类型 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
printName |
string | 否 | 打印名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
realSize |
string | 否 | 实质尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vendorSize |
string | 否 | 卖家尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size |
string | 否 | 尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesStockCount |
integer · int32 | 否 | 野生果股票数量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonRealFbs |
boolean | 否 | 森真实电视台. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonStockCount |
integer · int32 | 否 | 子股票计数. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonStockBetweenWarehouses |
integer · int32 | 否 | 储备库存之间. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removeFbsStock |
boolean | 否 | 删除FBS股票. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noStockSync |
boolean | 否 | 没有股票同步. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
excludeCalculatedStockFromFbs |
boolean | 否 | 排除从联邦财政局的计算股份. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purchaseCurrency |
stringRUB, USD, EUR, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY | 否 | 购买货币. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purchasePriceInCurrency |
number · double | 否 | 货币的购买价格 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deliveryCostInCurrency |
number · double | 否 | 货币的交付成本 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versionId |
integer · int64 | 否 | 版本ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdDate |
string · date-time | 否 | 创造日期. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
created |
string · date-time | 否 | 创造了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdUser |
string | 否 | 创建用户. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceIncomeItemId |
integer · int64 | 否 | 收入来源项目ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceProductId |
integer · int64 | 否 | 产品来源身份 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentJobIds |
integer[] | 否 | 工作证件. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonRequiredStock |
integer · int32 | 否 | 子需要的库存. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesRequiredStock |
integer · int32 | 否 | 野生需要的库存. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesProfit |
number · double | 否 | 果利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesProfitFbs |
number · double | 否 | 果公司的利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesOrderQuantity |
integer · int32 | 否 | 野生果订单量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesSupplyingQuantity |
integer · int32 | 否 | 野生果供应量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWayToClient |
integer · int32 | 否 | 果量到客户端. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWayFromClient |
integer · int32 | 否 | 客户的传递量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesSaleQuantity |
integer · int32 | 否 | 野生果销售量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWay |
integer · int32 | 否 | 野生果量正在走向. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesNoSale |
boolean | 否 | 没有卖的野. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lastStockChange |
string · date-time | 否 | 最后的股票变化. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonOrderQuantity |
integer · int32 | 否 | 子订单量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonSupplyingQuantity |
integer · int32 | 否 | 气供应量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonProfit |
integer · int32 | 否 | 子利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instockQuantity |
integer · int32 | 否 | 存量量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instockQuantityValue |
number · double | 否 | 存储量值 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stockUnit |
stringPCS, G, KG, ML, L | 否 | 股票单位. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calculatedInStockQuantity |
integer · int32 | 否 | 根据库存数量计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calculatedInStockQuantityValue |
number · double | 否 | 计算在库存量值. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 是 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productViewId |
integer · int64 | 否 | 产品查看ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
view |
ProductView | 否 | 景色. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
color |
string | 否 | 颜色. |
wbArticle |
string | 否 | 关于"世界杯"的文章. |
needKiz |
boolean | 否 | 需要Kiz. |
id |
integer · int64 | 否 | Id. |
images |
ProductImage[] | 否 | 照片. |
videos |
ProductVideo[] | 否 | 视频. |
productModelId |
integer · int64 | 否 | 产品模型身份证 |
model |
ProductModel | 否 | 模型. |
actual |
boolean | 否 | 实际的. |
mainImage |
ProductImage | 否 | 标签: |
mainImageId |
integer · int64 | 否 | 标签: |
mainImageUrl |
string | 否 | 标签: 标题: |
imageUrls |
string | 否 | 图像的URL. |
imagesUpdatedAt |
string · date-time | 否 | 照片更新在 |
image360Urls |
string | 否 | 图像360的URL. |
wildberriesId |
integer · int64 | 否 | 果的身份证. |
createdDate |
string · date-time | 否 | 创造日期. |
createdUser |
string | 否 | 创建用户. |
versionId |
integer · int64 | 否 | 版本ID. |
clientId |
integer · int64 | 否 | 客户身份证. |
deleted |
boolean | 否 | 删除了. |
keywords |
string | 否 | 关键词. |
wildberriesRating |
number · double | 否 | 果排名. |
wildberriesFeedbacks |
integer · int32 | 否 | 果回复 |
wbRaiting |
number · double | 否 | 击的世界. |
wbFeedbackCount |
integer · int32 | 否 | 查看评论. |
wbPriceWithSpp |
number · double | 否 | 价格与Spp. |
wildberriesCardDoesNotOpen |
boolean | 否 | 果卡没有开放. |
wildberriesHasPhoto |
boolean | 否 | 野生果有照片. |
organizationId |
integer · int64 | 否 | 组织身份证. |
params |
string | 否 | 帕姆斯. |
additionalInfo |
string | 否 | 更多信息 |
values |
ParamValue[] | 否 | 价值观. |
viewSourceId |
integer · int64 | 否 | 查看来源ID. |
sizes |
Product[] | 是 | 尺寸. |
hasChanges |
boolean | 否 | 有变化. |
viewWbArticle |
ProductView | 否 | 查看Wb文章. |
viewVersionId |
integer · int64 | 否 | 查看版本ID. |
suzIdcisTypenotChangedStockcardExchangesProductCardExchange
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
status |
stringWAITING_TO_SEND, SENT, ACCEPTED, ERROR | 否 | Status. |
lastAttemptAt |
string · date-time | 否 | 最后一次尝试. |
errorSource |
stringSELSUP, MARKETPLACE | 否 | 错误源 |
message |
string | 否 | 信息. |
messageParams |
string | 否 | 消息帕拉姆. |
wildberriesStatuswildberriesMessagewildberriesMessageParamsnationalCatalogStatusnationalCatalogMessagenationalCatalogMessageParamsozonStatusozonMessageozonMessageParamsozonTaskIdwildberriesFbsOrdersQuantityozonFbsOrdersQuantityymarketFbsOrdersQuantitytotalSupplyingQuantityskuIdskuSku
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
product |
Product | 否 | 产品 |
productId |
integer · int64 | 否 | 产品身份证 |
barcodesProductBarcode
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
barcode |
string | 否 | 条码. |
primaryBarcode |
boolean | 否 | 基本条码. |
organizationId |
integer · int64 | 否 | 组织身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
productId |
integer · int64 | 否 | 产品身份证 |
useInWildberries |
boolean | 否 | 使用在野. |
useInOzon |
boolean | 否 | 在臭氧中使用. |
useInYandexMarket |
boolean | 否 | 在Yandex市场使用. |
useInAliexpress |
boolean | 否 | 使用在Aliexpress中. |
useInSberMegamarket |
boolean | 否 | 在Sber大市场使用. |
useInWoocom |
boolean | 否 | 使用在Woocom. |
format |
string | 否 | Format. |
serviceProductsServiceProduct
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
serviceProductId |
integer · int64 | 否 | 服务产品身份证 |
productId |
integer · int64 | 否 | 产品身份证 |
serviceId |
integer · int32 | 否 | 服务身份证. |
serviceListingId |
integer · int64 | 否 | 服务列表身份证. |
serviceCardId |
integer · int64 | 否 | 服务卡身份证. |
fboStock |
integer · int32 | 否 | 美国联邦调查局. |
lastRepricerPriceStatus |
stringNONE, SUCCESS, ERROR | 否 | 总体而言, |
errorMessage |
string | 否 | 错误信息 |
serviceCard |
string | 否 | 服务卡. |
serviceCardProduct |
string | 否 | 服务卡产品 |
serviceCardUrl |
string | 否 | 服务卡的URL. |
serviceProductUrl |
string | 否 | 服务产品URL |
serviceBarcode |
string | 否 | 服务条码. |
fboCommissions |
number · double | 否 | 联邦调查局委员会. |
fbsCommissions |
number · double | 否 | 联邦调查局委员会. |
purchasePercent |
number · double | 否 | 购买百分比. |
serviceArticle |
string | 否 | 服务条款 |
clientId |
integer · int64 | 否 | 客户身份证. |
organizationId |
integer · int64 | 否 | 组织身份证. |
fieldsToClear |
string[] | 否 | 必须清除场地. |
siteArticlesiteIdparamsvaluesParamValue
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
paramId |
integer · int64 | 是 | 位名单. |
paramName |
string | 否 | 帕兰名字. |
option |
Option | 否 | 选择. |
doubleValue |
number · double | 否 | 双重价值. |
longValue |
integer · int64 | 否 | 长期价值. |
booleanValue |
boolean | 否 | 布尔值. |
stringValue |
string | 否 | 字符串值 |
dateValue |
string · date-time | 否 | 时间值 |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
unit |
Unit | 否 | 单位. |
auto |
boolean | 否 | 车辆. |
created |
integer · int64 | 否 | 创造了. |
user |
string | 否 | 用户. |
locked |
boolean | 否 | 锁定了. |
groupduplicateshasChangesignoreDuplicateyandexMarketStockCountgroupIdyandexMarketStatusyandexMarketMessageyandexMarketMessageParamsduplicateozonHasPhotoaliexpressStatusaliexpressMessagealiexpressMessageParamsmoySkladTypemoySkladStatusavitoStatusmoySkladMessagemoySkladMessageParamsremoveFbsStockOzonremoveFbsStockWbremoveFbsStockAliremoveFbsStockYmremoveFbsStockSberquantityincomeQuantityorderMinDateexpiredDateproductionDatestockstockValuestockscellCell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
reservedreservedValuecalculatedStockcalculatedStockValuepricecompetitorsCompetitor
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
modelId |
integer · int64 | 否 | 模型身份证. |
productId |
integer · int64 | 否 | 产品身份证 |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
url |
string | 是 | 查看一个URL. |
serviceId |
string | 否 | 服务身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
latestPrice |
number · double | 否 | 最新价格. |
currency |
stringRUB, USD, EUR, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY | 否 | 货币. |
latestPriceDate |
string · date-time | 否 | 最新价格日期. |
averageCompetitorPricecompetitorPriceCurrencyupdatedPricepriceWithoutDiscountupdatedPriceWithoutDiscountupdatedDeliveryCostupdatedPurchasePricepurchasePriceisPurchasePriceUpdatedisDeliveryCostUpdatedwholesalePricedeliveryCoststrategyIdozonAverageExpenseswildberriesAverageExpensesyandexMarketAverageExpenseswildberriesSaleminPriceozonPromotionPriceozonAcquiringPercentozonComissonsberMegaMarketSupplyingQuantityyandexMarketSupplyingQuantitysalesExpensesOnMpPercentsalesCountCoefficientmeasureUnitIdtaxeRatedesiredMarginalityPercentdesiredProfitRubadditionalCostpackWidthpackHeightpackDepthpackWeightmaxLoadWeightnumOfPiecesInBoxlastWildberriesSaleDatelastWildberriesOrderDatelastOzonSaleDatelastOzonOrderDatetotalOrdersCounttotalFbsOrdersCountwildberriesTotalOrdersCountignoreFbsWarehousesfbsWarehousesminFbsStockmaxFbsStockwildberriesSaleLogisticwildberriesReturnLogisticwildberriesTotalLogisticswildberriesWarehouseRatiowildberriesComissionozonSaleLogisticozonReturnLogisticozonCommissionmaxDeliveryToPickupPointozonPurchasePercentwildberriesPurchasePercentminMarginalitymaxMarginalityminProfitmaxProfitminPriceWithDiscountmaxPriceWithDiscountoldWildberriesPriceWithDiscountoldWildberriesSalewildberriesPromoProfitwildberriesMarginalitywildberriesPromoIdoldWildberriesPromoSalePercentoldWildberriesPromoPriceWithDiscountendWildberriesPriceWithSppConfigozonFbsCommissionozonFboCommissionwbTotalSalesCountozonTotalSalesCountsberTotalSalesCountyandexTotalSalesCountozonRaitingozonFeedbackCountozonPriceWithSppfboStockCountfbsStockCountstockCoverageDaysfboSupplyQuantityfboSalesfbsSalesfboOrdersfbsOrdersrecommendPlanbaseDeficitallocatedWithoutWarehouseskipDaysCountorganizationShortNamecontractorNamesupplyPlanBarcodeplanCorrectionFactororderBeforedaysBeforeSupplysupplyPlanDayswarehouseIdForSupplyReportwarehouseNameForSupplyReportwbCanBoxwbCanMonopalletwbCanSupersafewbCanBoxOnPalletmanagercellIddrrPercentpercentForParticipationPromoOrAdvertisingselsupLinktempIdcategoryCategory
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
categoryId |
integer · int32 | 否 | 类别的ID. |
name |
string | 是 | 姓名. |
deleted |
boolean | 否 | 删除了. |
parentId |
integer · int32 | 否 | 亲人身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
marked |
boolean | 否 | 标记了. |
categoryClass |
stringSHOES, LIGHT, DRUGS, CAMERA, TYRES, MILK, WATER, TOBACCO, FURS, BEER, BICYCLES, PERFUMES, ELECTRONIC, OTHER, NONE, FOOD, WHEELCHAIRS, OTP, NCP, BIO, ANTISEPTIC, NABEER, SOFTDRINKS, PETFOOD, SEAFOOD, MEAT, TOYS, TITAN, RADIO, OPTIC_FIBER, VEGETABLE_OIL, CONSERVE, VETPHARMA, CHEMISTRY, AUTOFLUIDS, GROCERY, BOOKS, CONSTRUCTION, FIRE, HEATER, CABLERAW, POLYMER, SWEETS, CARPARTS, NATURAL_FUR, NICOTINDEV, GADGETS, FROZEN, FERTILIZERS, HOMEWARE, VETBIO, INDUSTRIAL, PYROTECHNICS | 否 | 类别类. |
wildberriesType |
WildberriesType | 否 | 野生类型. |
wildberriesCategoryId |
integer · int64 | 否 | 野生类别的身份. |
wildberriesFbmCommission |
number · double | 否 | 野生果联邦调查委员会. |
wildberriesFbwCommission |
number · double | 否 | 野生果Fbw委员会. |
wildberriesFbsCommission |
number · double | 否 | 野生果联邦调查委员会. |
wildberriesDbsCommission |
number · double | 否 | 野生果食品委员会. |
wildberriesEdbsCommission |
number · double | 否 | 野生果养殖委员会. |
wildberriesCAndCCommission |
number · double | 否 | 果和果委员会. |
wildberriesBookingCommission |
number · double | 否 | 野生果预订委员会. |
ozonDescriptionCategoryId |
integer · int64 | 否 | 臭氧描述类别ID. |
yandexMarketCategoryId |
integer · int64 | 否 | 亚兰德克斯市场类别身份证 |
yandexMarketCategory |
YandexMarketCategory | 否 | 亚兰德克斯市场类别 |
ozonDescriptionCategory |
OzonDescriptionCategory | 否 | 臭氧描述类别 |
ozonCommission |
number · double | 否 | 臭氧委员会 |
tnved |
Tnved | 否 | 没有. |
tnvedId |
integer · int64 | 否 | 没有人知道. |
laundry |
string | 否 | 洗衣. |
params |
string | 否 | 帕姆斯. |
namePattern |
string | 否 | 姓名是模式. |
aliexpressCategory |
AliexpressCategory | 否 | 车类别 |
aliexpressCategoryId |
integer · int64 | 否 | 标签: 标识: |
avitoCategory |
AvitoCategory | 否 | 类别 |
lamodaCategory |
LamodaCategory | 否 | 拉莫达类别. |
lamodaCategoryId |
integer · int64 | 否 | 拉莫达类别的身份证. |
avitoCategoryId |
integer · int64 | 否 | 果类别的身份 |
packDepth |
integer · int32 | 否 | 包装深度. |
packWidth |
integer · int32 | 否 | 包装宽度. |
packHeight |
integer · int32 | 否 | 包高. |
packWeight |
integer · int32 | 否 | 包装重量. |
hasSize |
boolean | 否 | 有大小. |
hasColor |
boolean | 否 | 有颜色. |
autoName |
boolean | 否 | 车名. |
removeFbsStock |
boolean | 否 | 删除FBS股票. |
oneCId |
string | 否 | 一个公告. |
externalId |
string | 否 | 其他身份证. |
moySkladId |
string | 否 | 子子的身份. |
useClientParams |
boolean | 否 | 使用客户端参数. |
requiredExpirationDate |
boolean | 否 | 要求到期日期 |
serviceCategoryMappings |
object | 否 | 服务类别地图. |
productCount |
integer · int32 | 否 | 产品数量 |
findirTipscommissionscommissionCalculationslowStockAlertsinputVatoutputVatfinalVatincomeTaxtotalTaxnetProfitmarginwoocomStatusdateStartSeason1dateEndSeason1dateStartSeason2dateEndSeason2dateStartSeason3dateEndSeason3dateStartSeason4dateEndSeason4currentGrossProfitplannedGrossProfitpositionemptyBarcodesuzumStatusmakroStatuskaspiStatussiteanyLinkanyArticleshopifyStatustakealotStatusyandexKitStatusbobShopStatusminPriceForAllMarketplacecalculatedInstockQuantitywoocomParentIdwoocomPermalinkyandexMarketSkuexternalArticlemoySkladLinkIddetmirArticlelamodaArticlemagnitArticlemvideoArticlewildberriesImtIdozonProductIdleroyMerlinIdleroyMerlinArticleyandexMarketShopSkuwildberriesSizeIdsberMegaMarketIdaliexpressSkuuzumProductIdlamodaParentSkuebayArticleozonIdsberArticleozonArticleoneCIdoneCArticledetmirIdsimalandIdlamodaSkuwalmartSkuwalmartIdwoocomSkuwoocomIdmagnitIdmagnitSkuopencartSkuopencartIdtakealotSkuuzumArticleozonFbsSkuozonFboSkuavitoIdmoySkladIdsellerSkuuzumSkuIdyandexMarketProductIdnationalCatalogFeedIdnationalCatalogGoodIdwildberriesPricewildberriesUpdatedPricewildberriesPriceWithoutDiscountwildberriesUpdatedPriceWithoutDiscountaliexpressPricealiexpressPriceWithoutDiscountaliexpressUpdatedPricealiexpressUpdatedPriceWithoutDiscountozonPriceozonUpdatedPriceozonPriceWithoutDiscountozonUpdatedPriceWithoutDiscountleroyMerlinPriceleroyMerlinUpdatedPriceavitoPriceavitoUpdatedPricesberMegaMarketPricesberMegaMarketUpdatedPriceyandexMarketPriceyandexMarketPriceWithoutDiscountyandexMarketUpdatedPriceyandexMarketUpdatedPriceWithoutDiscountproductPricesProductPrice
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
productId |
integer · int64 | 否 | 产品身份证 |
product |
object | 否 | 产品 |
priceTypeId |
integer · int64 | 否 | 价格类型身份证. |
priceType |
PriceType | 否 | 价格类型. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
clientId |
integer · int64 | 否 | 客户身份证. |
price |
number · double | 否 | 价格. |
updatedPrice |
number · double | 否 | 更新价格. |
priceWithoutDiscount |
number · double | 否 | 价格没有折扣. |
updatedPriceWithoutDiscount |
number · double | 否 | 更新价格,没有折扣. |
minPrice |
number · double | 否 | 价格不到. |
updatedMinPrice |
number · double | 否 | 更新的最低价格. |
percentForParticipationPromoOrAdvertising |
integer · int32 | 否 | 参与促销或广告的百分比 |
isActive |
boolean | 否 | 现在还在行动. |
article |
string | 否 | 关于此的文章. |
pendingOperationId |
string | 否 | 预期行动证. |
stockRulesProductStockRules
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
minFbsStock |
integer · int32 | 否 | 美国联邦调查局股票. |
maxFbsStock |
integer · int32 | 否 | 联邦调查局的最大股票. |
subtractFromStock |
integer · int32 | 否 | 减去从股票. |
distributionRules |
StockDistributionRule[] | 否 | 分配规则. |
{
"id": 1001,
"warehouseId": 1001,
"clientId": 1001,
"name": "Example",
"cellIds": "string",
"productIds": "string"
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_storage_zone_invalid_cells应用逻辑中使用稳定的error_storage_zone_invalid_cells代码;localMessage包含上述翻译.
error_storage_zone_invalid_products应用逻辑中使用稳定的error_storage_zone_invalid_products代码;localMessage包含上述翻译.
error_storage_zone_name_exists应用逻辑中使用稳定的error_storage_zone_name_exists代码;localMessage包含上述翻译.
error_storage_zone_name_required应用逻辑中使用稳定的error_storage_zone_name_required代码;localMessage包含上述翻译.
error_storage_zone_not_found应用逻辑中使用稳定的error_storage_zone_not_found代码;localMessage包含上述翻译.
error_storage_zone_warehouse_required应用逻辑中使用稳定的error_storage_zone_warehouse_required代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
/api/warehouse/shelf使用 PUT /api/warehouse/shelf. 放上架
application/jsonShelf| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
curl --request PUT 'https://api.selsup.ru/api/warehouse/shelf' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/shelf', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/shelf', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.put(
'https://api.selsup.ru/api/warehouse/shelf',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'name': 'Example',
'warehouseId': 1001,
'rackId': 1001,
'deleted': False,
'clientId': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/shelf',
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.selsup.ru/api/warehouse/shelf", strings.NewReader(`{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/shelf"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Shelf
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_shelf_already_exist应用逻辑中使用稳定的error_shelf_already_exist代码;localMessage包含上述翻译.
error_shelf_not_found应用逻辑中使用稳定的error_shelf_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/rack使用 PUT /api/warehouse/rack. 放 Rack
application/jsonRack| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
curl --request PUT 'https://api.selsup.ru/api/warehouse/rack' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/rack', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/rack', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.put(
'https://api.selsup.ru/api/warehouse/rack',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'name': 'Example',
'warehouseId': 1001,
'passageId': 1001,
'deleted': False,
'clientId': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/rack',
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.selsup.ru/api/warehouse/rack", strings.NewReader(`{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/rack"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Rack
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_rack_already_exist应用逻辑中使用稳定的error_rack_already_exist代码;localMessage包含上述翻译.
error_rack_not_found应用逻辑中使用稳定的error_rack_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/passage通过PUT/api/warehouse/passage. 设置通行
application/jsonPassage| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
cells |
Cell[] | 否 | 细胞. |
curl --request PUT 'https://api.selsup.ru/api/warehouse/passage' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/passage', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/passage', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.put(
'https://api.selsup.ru/api/warehouse/passage',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'name': 'Example',
'warehouseId': 1001,
'deleted': False,
'clientId': 1001,
'racks': 'string'
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/passage',
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.selsup.ru/api/warehouse/passage", strings.NewReader(`{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/passage"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Passage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
cells |
Cell[] | 否 | 细胞. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_passage_already_exist应用逻辑中使用稳定的error_passage_already_exist代码;localMessage包含上述翻译.
error_passage_not_found应用逻辑中使用稳定的error_passage_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/cell通过PUT/api/warehouse/cell.将Cell放入
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
passageId |
integer · int32 | 是 | 通过身份证. |
rackId |
integer · int32 | 是 | 查看身份证. |
shelfId |
integer · int32 | 是 | 货架身份证. |
application/jsonCell| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
curl --request PUT 'https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001', {
method: 'PUT',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.put(
'https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'warehouseId': 1001,
'passageId': 1001,
'shelfId': 1001,
'rackId': 1001,
'storageZoneId': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001',
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("PUT", "https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001", strings.NewReader(`{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/cell?passageId=1001&rackId=1001&shelfId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Cell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_already_exist应用逻辑中使用稳定的error_cell_already_exist代码;localMessage包含上述翻译.
error_cell_not_found应用逻辑中使用稳定的error_cell_not_found代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/shelf/{shelfId}/copy使用 POST /api/warehouse/shelf/{shelfId}/copy. 复制货架
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
shelfId |
integer · int32 | 是 | 货架身份证. |
curl --request POST 'https://api.selsup.ru/api/warehouse/shelf/1001/copy' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/shelf/1001/copy', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/shelf/1001/copy', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/shelf/1001/copy',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/shelf/1001/copy',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/shelf/1001/copy", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/shelf/1001/copy"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Shelf
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_shelf_not_found应用逻辑中使用稳定的error_shelf_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/removeServiceWarehouse使用 POST /api/warehouse/removeServiceWarehouse. 移除服务仓库
application/jsonServiceWarehouse| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
curl --request POST 'https://api.selsup.ru/api/warehouse/removeServiceWarehouse' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/removeServiceWarehouse', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/removeServiceWarehouse', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/removeServiceWarehouse',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'name': 'Example',
'externalId': 'string',
'warehouseId': 1001,
'service': 'NONE',
'organizationId': 1001,
'id': 1001
},
)
response.raise_for_status()
<?php
$payload = <<<'JSON'
{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/removeServiceWarehouse',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/removeServiceWarehouse", strings.NewReader(`{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/removeServiceWarehouse"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_base_creating应用逻辑中使用稳定的error_base_creating代码;localMessage包含上述翻译.
error_cabinet_access_denied应用逻辑中使用稳定的error_cabinet_access_denied代码;localMessage包含上述翻译.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_empty_first_name应用逻辑中使用稳定的error_empty_first_name代码;localMessage包含上述翻译.
error_empty_last_name应用逻辑中使用稳定的error_empty_last_name代码;localMessage包含上述翻译.
error_empty_organization_form应用逻辑中使用稳定的error_empty_organization_form代码;localMessage包含上述翻译.
error_empty_organization_inn应用逻辑中使用稳定的error_empty_organization_inn代码;localMessage包含上述翻译.
error_empty_organization_name应用逻辑中使用稳定的error_empty_organization_name代码;localMessage包含上述翻译.
error_empty_position_name应用逻辑中使用稳定的error_empty_position_name代码;localMessage包含上述翻译.
error_max_page应用逻辑中使用稳定的error_max_page代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_organization_create_failed应用逻辑中使用稳定的error_organization_create_failed代码;localMessage包含上述翻译.
error_organization_exists应用逻辑中使用稳定的error_organization_exists代码;localMessage包含上述翻译.
error_organization_not_found应用逻辑中使用稳定的error_organization_not_found代码;localMessage包含上述翻译.
error_position_exists应用逻辑中使用稳定的error_position_exists代码;localMessage包含上述翻译.
error_reload应用逻辑中使用稳定的error_reload代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_user_does_not_have_this_organization应用逻辑中使用稳定的error_user_does_not_have_this_organization代码;localMessage包含上述翻译.
error_wrong_inn应用逻辑中使用稳定的error_wrong_inn代码;localMessage包含上述翻译.
error_wrong_version应用逻辑中使用稳定的error_wrong_version代码;localMessage包含上述翻译.
/api/warehouse/rack/{rackId}/copy使用 POST /api/warehouse/rack/{rackId}/copy.的架子复制
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
rackId |
integer · int32 | 是 | 查看身份证. |
curl --request POST 'https://api.selsup.ru/api/warehouse/rack/1001/copy' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/rack/1001/copy', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/rack/1001/copy', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/rack/1001/copy',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/rack/1001/copy',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/rack/1001/copy", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/rack/1001/copy"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Rack
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_rack_not_found应用逻辑中使用稳定的error_rack_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/passage/{passageId}/copy使用 POST /api/warehouse/passage/{passageId}/copy. 复制页面
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
passageId |
integer · int32 | 是 | 通过身份证. |
curl --request POST 'https://api.selsup.ru/api/warehouse/passage/1001/copy' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/passage/1001/copy', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/passage/1001/copy', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/passage/1001/copy',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/passage/1001/copy',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/passage/1001/copy", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/passage/1001/copy"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Passage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
cells |
Cell[] | 否 | 细胞. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_passage_not_found应用逻辑中使用稳定的error_passage_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/getCellsByFilter使用POST/api/warehouse/getCellsByFilter.来过细胞
application/jsonCellFilter| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
cellId |
integer · int32 | 否 | 电话身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
curl --request POST 'https://api.selsup.ru/api/warehouse/getCellsByFilter' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"cellId": 1001,
"shelfId": 1001,
"rackId": 1001,
"passageId": 1001,
"warehouseId": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/getCellsByFilter', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"cellId": 1001,
"shelfId": 1001,
"rackId": 1001,
"passageId": 1001,
"warehouseId": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/getCellsByFilter', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"cellId": 1001,
"shelfId": 1001,
"rackId": 1001,
"passageId": 1001,
"warehouseId": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/getCellsByFilter',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'cellId': 1001,
'shelfId': 1001,
'rackId': 1001,
'passageId': 1001,
'warehouseId': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"cellId": 1001,
"shelfId": 1001,
"rackId": 1001,
"passageId": 1001,
"warehouseId": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/getCellsByFilter',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/getCellsByFilter", strings.NewReader(`{
"cellId": 1001,
"shelfId": 1001,
"rackId": 1001,
"passageId": 1001,
"warehouseId": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/getCellsByFilter"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"cellId": 1001,
"shelfId": 1001,
"rackId": 1001,
"passageId": 1001,
"warehouseId": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Cell[]
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
/api/warehouse/createServiceWarehouse使用 POST 创建服务仓库
application/jsonServiceWarehouse| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
curl --request POST 'https://api.selsup.ru/api/warehouse/createServiceWarehouse' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/createServiceWarehouse', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/createServiceWarehouse', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/createServiceWarehouse',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'name': 'Example',
'externalId': 'string',
'warehouseId': 1001,
'service': 'NONE',
'organizationId': 1001,
'id': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/createServiceWarehouse',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/createServiceWarehouse", strings.NewReader(`{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/createServiceWarehouse"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
ServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
{
"name": "Example",
"externalId": "string",
"warehouseId": 1001,
"service": "NONE",
"organizationId": 1001,
"id": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_base_creating应用逻辑中使用稳定的error_base_creating代码;localMessage包含上述翻译.
error_cabinet_access_denied应用逻辑中使用稳定的error_cabinet_access_denied代码;localMessage包含上述翻译.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_empty_first_name应用逻辑中使用稳定的error_empty_first_name代码;localMessage包含上述翻译.
error_empty_last_name应用逻辑中使用稳定的error_empty_last_name代码;localMessage包含上述翻译.
error_empty_name应用逻辑中使用稳定的error_empty_name代码;localMessage包含上述翻译.
error_empty_organization_form应用逻辑中使用稳定的error_empty_organization_form代码;localMessage包含上述翻译.
error_empty_organization_inn应用逻辑中使用稳定的error_empty_organization_inn代码;localMessage包含上述翻译.
error_empty_organization_name应用逻辑中使用稳定的error_empty_organization_name代码;localMessage包含上述翻译.
error_empty_position_name应用逻辑中使用稳定的error_empty_position_name代码;localMessage包含上述翻译.
error_empty_service应用逻辑中使用稳定的error_empty_service代码;localMessage包含上述翻译.
error_max_page应用逻辑中使用稳定的error_max_page代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_organization_create_failed应用逻辑中使用稳定的error_organization_create_failed代码;localMessage包含上述翻译.
error_organization_exists应用逻辑中使用稳定的error_organization_exists代码;localMessage包含上述翻译.
error_organization_not_found应用逻辑中使用稳定的error_organization_not_found代码;localMessage包含上述翻译.
error_position_exists应用逻辑中使用稳定的error_position_exists代码;localMessage包含上述翻译.
error_reload应用逻辑中使用稳定的error_reload代码;localMessage包含上述翻译.
error_service_warehouse_exists应用逻辑中使用稳定的error_service_warehouse_exists代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_warehouse_empty_id应用逻辑中使用稳定的error_warehouse_empty_id代码;localMessage包含上述翻译.
error_wrong_inn应用逻辑中使用稳定的error_wrong_inn代码;localMessage包含上述翻译.
error_wrong_version应用逻辑中使用稳定的error_wrong_version代码;localMessage包含上述翻译.
/api/warehouse/cells使用 POST 创建细胞
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
passageId |
integer · int32 | 是 | 通过身份证. |
rackId |
integer · int32 | 是 | 查看身份证. |
shelfId |
integer · int32 | 是 | 货架身份证. |
application/jsonCell[]| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
curl --request POST 'https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '[
"string"
]'
const response = await fetch('https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify([
"string"
]),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify([
"string"
]),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json=[
'string'
],
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
[
"string"
]
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001", strings.NewReader(`[
"string"
]`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/cells?passageId=1001&rackId=1001&shelfId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
[
"string"
]
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Cell[]
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_already_exist应用逻辑中使用稳定的error_cell_already_exist代码;localMessage包含上述翻译.
error_cell_not_found应用逻辑中使用稳定的error_cell_not_found代码;localMessage包含上述翻译.
error_cells_batch_size_invalid应用逻辑中使用稳定的error_cells_batch_size_invalid代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/cells/excel使用 GET /api/warehouse/cells/excel.的出口细胞
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
"string"应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cells_excel_failed应用逻辑中使用稳定的error_cells_excel_failed代码;localMessage包含上述翻译.
error_cells_excel_limit应用逻辑中使用稳定的error_cells_excel_limit代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
/api/warehouse/cells/excel使用 POST /api/warehouse/cells/excel. 进口细胞
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
multipart/form-data| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
file |
string · binary | 是 | 文件. |
curl --request POST 'https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001' \
--header 'Authorization: YOUR_API_TOKEN' \
--form 'file=@./file.bin'
const form = new FormData();
form.append('file', fileInput.files[0]);
const response = await fetch('https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
body: form,
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const form: FormData = new FormData();
form.append('file', fileInput.files![0]);
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001', {
method: 'POST',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
body: form,
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
files={'file': open('./logo.png', 'rb')},
)
response.raise_for_status()
result = response.json()
<?php
$payload = ['file' => new CURLFile('./logo.png')];
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"bytes"
"fmt"
"io"
"mime/multipart"
"net/http"
"os"
"path/filepath"
)
func main() {
var body bytes.Buffer
writer := multipart.NewWriter(&body)
file, err := os.Open("./logo.png")
if err != nil { panic(err) }
defer file.Close()
part, err := writer.CreateFormFile("file", filepath.Base(file.Name()))
if err != nil { panic(err) }
if _, err = io.Copy(part, file); err != nil { panic(err) }
writer.Close()
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001", &body)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", writer.FormDataContentType())
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
public class SelSupExample {
public static void main(String[] args) throws Exception {
String boundary = "SelSupBoundary" + System.currentTimeMillis();
byte[] file = Files.readAllBytes(Path.of("./logo.png"));
byte[] head = ("--" + boundary + "\r\n" +
"Content-Disposition: form-data; name=\"file\"; filename=\"logo.png\"\r\n" +
"Content-Type: image/png\r\n\r\n").getBytes(StandardCharsets.UTF_8);
byte[] tail = ("\r\n--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8);
byte[] payload = new byte[head.length + file.length + tail.length];
System.arraycopy(head, 0, payload, 0, head.length);
System.arraycopy(file, 0, payload, head.length, file.length);
System.arraycopy(tail, 0, payload, head.length + file.length, tail.length);
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/cells/excel?warehouseId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "multipart/form-data; boundary=" + boundary)
.method("POST", HttpRequest.BodyPublishers.ofByteArray(payload))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
ImportResult
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
created |
integer · int32 | 否 | 创造了. |
updated |
integer · int32 | 否 | 更新了. |
{
"created": 1,
"updated": 1
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cells_excel_conflict应用逻辑中使用稳定的error_cells_excel_conflict代码;localMessage包含上述翻译.
error_cells_excel_dimensions应用逻辑中使用稳定的error_cells_excel_dimensions代码;localMessage包含上述翻译.
error_cells_excel_failed应用逻辑中使用稳定的error_cells_excel_failed代码;localMessage包含上述翻译.
error_cells_excel_id_invalid应用逻辑中使用稳定的error_cells_excel_id_invalid代码;localMessage包含上述翻译.
error_cells_excel_limit应用逻辑中使用稳定的error_cells_excel_limit代码;localMessage包含上述翻译.
error_cells_excel_parent应用逻辑中使用稳定的error_cells_excel_parent代码;localMessage包含上述翻译.
error_cells_excel_row应用逻辑中使用稳定的error_cells_excel_row代码;localMessage包含上述翻译.
error_incorrect_excel应用逻辑中使用稳定的error_incorrect_excel代码;localMessage包含上述翻译.
error_max_upload_size_exceeded应用逻辑中使用稳定的error_max_upload_size_exceeded代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
/api/warehouse/使用 POST 创建新仓库
application/jsonWarehouse| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddresscurl --request POST 'https://api.selsup.ru/api/warehouse/' \
--header 'Authorization: YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}'
const response = await fetch('https://api.selsup.ru/api/warehouse/', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/', {
method: 'POST',
headers: {
Authorization: process.env.SELSUP_API_TOKEN!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}),
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.post(
'https://api.selsup.ru/api/warehouse/',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
json={
'id': 1001,
'name': 'Example',
'service': 'NONE',
'organizationId': 1001,
'organizationIds': 'string',
'fboOrganizationId': 1001
},
)
response.raise_for_status()
result = response.json()
<?php
$payload = <<<'JSON'
{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}
JSON;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
req, err := http.NewRequest("POST", "https://api.selsup.ru/api/warehouse/", strings.NewReader(`{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}`))
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
req.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}
"""))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_base_creating应用逻辑中使用稳定的error_base_creating代码;localMessage包含上述翻译.
error_cabinet_access_denied应用逻辑中使用稳定的error_cabinet_access_denied代码;localMessage包含上述翻译.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_duplicate_warehouse_name应用逻辑中使用稳定的error_duplicate_warehouse_name代码;localMessage包含上述翻译.
error_empty_first_name应用逻辑中使用稳定的error_empty_first_name代码;localMessage包含上述翻译.
error_empty_last_name应用逻辑中使用稳定的error_empty_last_name代码;localMessage包含上述翻译.
error_empty_organization_form应用逻辑中使用稳定的error_empty_organization_form代码;localMessage包含上述翻译.
error_empty_organization_inn应用逻辑中使用稳定的error_empty_organization_inn代码;localMessage包含上述翻译.
error_empty_organization_name应用逻辑中使用稳定的error_empty_organization_name代码;localMessage包含上述翻译.
error_empty_position_name应用逻辑中使用稳定的error_empty_position_name代码;localMessage包含上述翻译.
error_empty_warehouse_name应用逻辑中使用稳定的error_empty_warehouse_name代码;localMessage包含上述翻译.
error_map_directory_published_location_invalid应用逻辑中使用稳定的error_map_directory_published_location_invalid代码;localMessage包含上述翻译.
error_max_page应用逻辑中使用稳定的error_max_page代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_organization_create_failed应用逻辑中使用稳定的error_organization_create_failed代码;localMessage包含上述翻译.
error_organization_exists应用逻辑中使用稳定的error_organization_exists代码;localMessage包含上述翻译.
error_organization_not_found应用逻辑中使用稳定的error_organization_not_found代码;localMessage包含上述翻译.
error_position_exists应用逻辑中使用稳定的error_position_exists代码;localMessage包含上述翻译.
error_reload应用逻辑中使用稳定的error_reload代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
error_warehouses_limit_exceeded应用逻辑中使用稳定的error_warehouses_limit_exceeded代码;localMessage包含上述翻译.
error_wrong_inn应用逻辑中使用稳定的error_wrong_inn代码;localMessage包含上述翻译.
error_wrong_version应用逻辑中使用稳定的error_wrong_version代码;localMessage包含上述翻译.
/api/warehouse/{warehouseId}/structure使用GET/api/warehouse/{warehouseId}/structure.的仓库结构
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/1001/structure' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/1001/structure', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/1001/structure', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/1001/structure',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/1001/structure',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/1001/structure", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/1001/structure"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress{
"id": 1001,
"name": "Example",
"service": "NONE",
"organizationId": 1001,
"organizationIds": "string",
"fboOrganizationId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_not_found应用逻辑中使用稳定的error_cell_not_found代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
/api/warehouse/{warehouseId}/sort使用GETX/api/warehouse/{warehouseId}/sort.进行仓库排序
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/1001/sort' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/1001/sort', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/1001/sort', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/1001/sort',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/1001/sort',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/1001/sort", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/1001/sort"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
/api/warehouse/{warehouseId}/occupancy使用GET/api/warehouse/{warehouseId}/occupancy.的仓库占用量
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 是 | 仓库身份证. |
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
passageId |
integer · int32 | 否 | 通过身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/1001/occupancy' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/1001/occupancy', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/1001/occupancy', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/1001/occupancy',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/1001/occupancy',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/1001/occupancy", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/1001/occupancy"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
WarehouseOccupancy
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
totalVolume |
number · double | 否 | 总量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usedVolume |
number · double | 否 | 已使用的量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
freeVolume |
number · double | 否 | 免费的卷. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fillPercent |
integer · int32 | 否 | 填充百分比. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellsTotal |
integer · int32 | 否 | 细胞总数. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellsOccupied |
integer · int32 | 否 | 细胞被占领. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellsFree |
integer · int32 | 否 | 细胞自由. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellsWithoutDimensions |
integer · int32 | 否 | 没有维度的细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellsWithIncompleteProductData |
integer · int32 | 否 | 没有完整的产品数据的细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
CellOccupancy[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
cellId |
integer · int32 | 否 | 电话身份证. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
passageId |
integer · int32 | 否 | 通过身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
cellVolume |
number · double | 否 | 细胞数量 |
usedVolume |
number · double | 否 | 已使用的量. |
fillPercent |
integer · int32 | 否 | 填充百分比. |
productsCount |
integer · int32 | 否 | 产品数量. |
unitsCount |
integer · int32 | 否 | 单位数量. |
incompleteProductData |
boolean | 否 | 产品数据不完整. |
{
"warehouseId": 1001,
"totalVolume": 1,
"usedVolume": 1,
"freeVolume": 1,
"fillPercent": 1,
"cellsTotal": 1
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/storage-zones使用 GET /api/warehouse/storage-zones.获取存储区
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 否 | 仓库身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/storage-zones' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/storage-zones', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/storage-zones', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/storage-zones',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/storage-zones',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/storage-zones", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/storage-zones"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
StorageZone[]
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cellIds |
integer[] | 否 | 电话身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productIds |
integer[] | 否 | 产品身份证 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
products |
Product[] | 否 | 产品. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productType |
stringPRODUCT, SET, SERVICE, DIGITAL, CONTAINER | 否 | 产品类型 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
printName |
string | 否 | 打印名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
realSize |
string | 否 | 实质尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vendorSize |
string | 否 | 卖家尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
size |
string | 否 | 尺寸. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesStockCount |
integer · int32 | 否 | 野生果股票数量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonRealFbs |
boolean | 否 | 森真实电视台. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonStockCount |
integer · int32 | 否 | 子股票计数. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonStockBetweenWarehouses |
integer · int32 | 否 | 储备库存之间. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removeFbsStock |
boolean | 否 | 删除FBS股票. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noStockSync |
boolean | 否 | 没有股票同步. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
excludeCalculatedStockFromFbs |
boolean | 否 | 排除从联邦财政局的计算股份. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purchaseCurrency |
stringRUB, USD, EUR, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY | 否 | 购买货币. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purchasePriceInCurrency |
number · double | 否 | 货币的购买价格 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deliveryCostInCurrency |
number · double | 否 | 货币的交付成本 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versionId |
integer · int64 | 否 | 版本ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdDate |
string · date-time | 否 | 创造日期. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
created |
string · date-time | 否 | 创造了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdUser |
string | 否 | 创建用户. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceIncomeItemId |
integer · int64 | 否 | 收入来源项目ID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceProductId |
integer · int64 | 否 | 产品来源身份 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentJobIds |
integer[] | 否 | 工作证件. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonRequiredStock |
integer · int32 | 否 | 子需要的库存. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesRequiredStock |
integer · int32 | 否 | 野生需要的库存. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesProfit |
number · double | 否 | 果利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesProfitFbs |
number · double | 否 | 果公司的利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesOrderQuantity |
integer · int32 | 否 | 野生果订单量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesSupplyingQuantity |
integer · int32 | 否 | 野生果供应量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWayToClient |
integer · int32 | 否 | 果量到客户端. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWayFromClient |
integer · int32 | 否 | 客户的传递量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesSaleQuantity |
integer · int32 | 否 | 野生果销售量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesQuantityInWay |
integer · int32 | 否 | 野生果量正在走向. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wildberriesNoSale |
boolean | 否 | 没有卖的野. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lastStockChange |
string · date-time | 否 | 最后的股票变化. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonOrderQuantity |
integer · int32 | 否 | 子订单量. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonSupplyingQuantity |
integer · int32 | 否 | 气供应量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ozonProfit |
integer · int32 | 否 | 子利. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instockQuantity |
integer · int32 | 否 | 存量量 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
instockQuantityValue |
number · double | 否 | 存储量值 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stockUnit |
stringPCS, G, KG, ML, L | 否 | 股票单位. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calculatedInStockQuantity |
integer · int32 | 否 | 根据库存数量计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
calculatedInStockQuantityValue |
number · double | 否 | 计算在库存量值. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 是 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
productViewId |
integer · int64 | 否 | 产品查看ID. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
view |
ProductView | 否 | 景色. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
color |
string | 否 | 颜色. |
wbArticle |
string | 否 | 关于"世界杯"的文章. |
needKiz |
boolean | 否 | 需要Kiz. |
id |
integer · int64 | 否 | Id. |
images |
ProductImage[] | 否 | 照片. |
videos |
ProductVideo[] | 否 | 视频. |
productModelId |
integer · int64 | 否 | 产品模型身份证 |
model |
ProductModel | 否 | 模型. |
actual |
boolean | 否 | 实际的. |
mainImage |
ProductImage | 否 | 标签: |
mainImageId |
integer · int64 | 否 | 标签: |
mainImageUrl |
string | 否 | 标签: 标题: |
imageUrls |
string | 否 | 图像的URL. |
imagesUpdatedAt |
string · date-time | 否 | 照片更新在 |
image360Urls |
string | 否 | 图像360的URL. |
wildberriesId |
integer · int64 | 否 | 果的身份证. |
createdDate |
string · date-time | 否 | 创造日期. |
createdUser |
string | 否 | 创建用户. |
versionId |
integer · int64 | 否 | 版本ID. |
clientId |
integer · int64 | 否 | 客户身份证. |
deleted |
boolean | 否 | 删除了. |
keywords |
string | 否 | 关键词. |
wildberriesRating |
number · double | 否 | 果排名. |
wildberriesFeedbacks |
integer · int32 | 否 | 果回复 |
wbRaiting |
number · double | 否 | 击的世界. |
wbFeedbackCount |
integer · int32 | 否 | 查看评论. |
wbPriceWithSpp |
number · double | 否 | 价格与Spp. |
wildberriesCardDoesNotOpen |
boolean | 否 | 果卡没有开放. |
wildberriesHasPhoto |
boolean | 否 | 野生果有照片. |
organizationId |
integer · int64 | 否 | 组织身份证. |
params |
string | 否 | 帕姆斯. |
additionalInfo |
string | 否 | 更多信息 |
values |
ParamValue[] | 否 | 价值观. |
viewSourceId |
integer · int64 | 否 | 查看来源ID. |
sizes |
Product[] | 是 | 尺寸. |
hasChanges |
boolean | 否 | 有变化. |
viewWbArticle |
ProductView | 否 | 查看Wb文章. |
viewVersionId |
integer · int64 | 否 | 查看版本ID. |
suzIdcisTypenotChangedStockcardExchangesProductCardExchange
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
status |
stringWAITING_TO_SEND, SENT, ACCEPTED, ERROR | 否 | Status. |
lastAttemptAt |
string · date-time | 否 | 最后一次尝试. |
errorSource |
stringSELSUP, MARKETPLACE | 否 | 错误源 |
message |
string | 否 | 信息. |
messageParams |
string | 否 | 消息帕拉姆. |
wildberriesStatuswildberriesMessagewildberriesMessageParamsnationalCatalogStatusnationalCatalogMessagenationalCatalogMessageParamsozonStatusozonMessageozonMessageParamsozonTaskIdwildberriesFbsOrdersQuantityozonFbsOrdersQuantityymarketFbsOrdersQuantitytotalSupplyingQuantityskuIdskuSku
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
product |
Product | 否 | 产品 |
productId |
integer · int64 | 否 | 产品身份证 |
barcodesProductBarcode
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
barcode |
string | 否 | 条码. |
primaryBarcode |
boolean | 否 | 基本条码. |
organizationId |
integer · int64 | 否 | 组织身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
productId |
integer · int64 | 否 | 产品身份证 |
useInWildberries |
boolean | 否 | 使用在野. |
useInOzon |
boolean | 否 | 在臭氧中使用. |
useInYandexMarket |
boolean | 否 | 在Yandex市场使用. |
useInAliexpress |
boolean | 否 | 使用在Aliexpress中. |
useInSberMegamarket |
boolean | 否 | 在Sber大市场使用. |
useInWoocom |
boolean | 否 | 使用在Woocom. |
format |
string | 否 | Format. |
serviceProductsServiceProduct
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
serviceProductId |
integer · int64 | 否 | 服务产品身份证 |
productId |
integer · int64 | 否 | 产品身份证 |
serviceId |
integer · int32 | 否 | 服务身份证. |
serviceListingId |
integer · int64 | 否 | 服务列表身份证. |
serviceCardId |
integer · int64 | 否 | 服务卡身份证. |
fboStock |
integer · int32 | 否 | 美国联邦调查局. |
lastRepricerPriceStatus |
stringNONE, SUCCESS, ERROR | 否 | 总体而言, |
errorMessage |
string | 否 | 错误信息 |
serviceCard |
string | 否 | 服务卡. |
serviceCardProduct |
string | 否 | 服务卡产品 |
serviceCardUrl |
string | 否 | 服务卡的URL. |
serviceProductUrl |
string | 否 | 服务产品URL |
serviceBarcode |
string | 否 | 服务条码. |
fboCommissions |
number · double | 否 | 联邦调查局委员会. |
fbsCommissions |
number · double | 否 | 联邦调查局委员会. |
purchasePercent |
number · double | 否 | 购买百分比. |
serviceArticle |
string | 否 | 服务条款 |
clientId |
integer · int64 | 否 | 客户身份证. |
organizationId |
integer · int64 | 否 | 组织身份证. |
fieldsToClear |
string[] | 否 | 必须清除场地. |
siteArticlesiteIdparamsvaluesParamValue
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
paramId |
integer · int64 | 是 | 位名单. |
paramName |
string | 否 | 帕兰名字. |
option |
Option | 否 | 选择. |
doubleValue |
number · double | 否 | 双重价值. |
longValue |
integer · int64 | 否 | 长期价值. |
booleanValue |
boolean | 否 | 布尔值. |
stringValue |
string | 否 | 字符串值 |
dateValue |
string · date-time | 否 | 时间值 |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
unit |
Unit | 否 | 单位. |
auto |
boolean | 否 | 车辆. |
created |
integer · int64 | 否 | 创造了. |
user |
string | 否 | 用户. |
locked |
boolean | 否 | 锁定了. |
groupduplicateshasChangesignoreDuplicateyandexMarketStockCountgroupIdyandexMarketStatusyandexMarketMessageyandexMarketMessageParamsduplicateozonHasPhotoaliexpressStatusaliexpressMessagealiexpressMessageParamsmoySkladTypemoySkladStatusavitoStatusmoySkladMessagemoySkladMessageParamsremoveFbsStockOzonremoveFbsStockWbremoveFbsStockAliremoveFbsStockYmremoveFbsStockSberquantityincomeQuantityorderMinDateexpiredDateproductionDatestockstockValuestockscellCell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
reservedreservedValuecalculatedStockcalculatedStockValuepricecompetitorsCompetitor
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
modelId |
integer · int64 | 否 | 模型身份证. |
productId |
integer · int64 | 否 | 产品身份证 |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
url |
string | 是 | 查看一个URL. |
serviceId |
string | 否 | 服务身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
latestPrice |
number · double | 否 | 最新价格. |
currency |
stringRUB, USD, EUR, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY | 否 | 货币. |
latestPriceDate |
string · date-time | 否 | 最新价格日期. |
averageCompetitorPricecompetitorPriceCurrencyupdatedPricepriceWithoutDiscountupdatedPriceWithoutDiscountupdatedDeliveryCostupdatedPurchasePricepurchasePriceisPurchasePriceUpdatedisDeliveryCostUpdatedwholesalePricedeliveryCoststrategyIdozonAverageExpenseswildberriesAverageExpensesyandexMarketAverageExpenseswildberriesSaleminPriceozonPromotionPriceozonAcquiringPercentozonComissonsberMegaMarketSupplyingQuantityyandexMarketSupplyingQuantitysalesExpensesOnMpPercentsalesCountCoefficientmeasureUnitIdtaxeRatedesiredMarginalityPercentdesiredProfitRubadditionalCostpackWidthpackHeightpackDepthpackWeightmaxLoadWeightnumOfPiecesInBoxlastWildberriesSaleDatelastWildberriesOrderDatelastOzonSaleDatelastOzonOrderDatetotalOrdersCounttotalFbsOrdersCountwildberriesTotalOrdersCountignoreFbsWarehousesfbsWarehousesminFbsStockmaxFbsStockwildberriesSaleLogisticwildberriesReturnLogisticwildberriesTotalLogisticswildberriesWarehouseRatiowildberriesComissionozonSaleLogisticozonReturnLogisticozonCommissionmaxDeliveryToPickupPointozonPurchasePercentwildberriesPurchasePercentminMarginalitymaxMarginalityminProfitmaxProfitminPriceWithDiscountmaxPriceWithDiscountoldWildberriesPriceWithDiscountoldWildberriesSalewildberriesPromoProfitwildberriesMarginalitywildberriesPromoIdoldWildberriesPromoSalePercentoldWildberriesPromoPriceWithDiscountendWildberriesPriceWithSppConfigozonFbsCommissionozonFboCommissionwbTotalSalesCountozonTotalSalesCountsberTotalSalesCountyandexTotalSalesCountozonRaitingozonFeedbackCountozonPriceWithSppfboStockCountfbsStockCountstockCoverageDaysfboSupplyQuantityfboSalesfbsSalesfboOrdersfbsOrdersrecommendPlanbaseDeficitallocatedWithoutWarehouseskipDaysCountorganizationShortNamecontractorNamesupplyPlanBarcodeplanCorrectionFactororderBeforedaysBeforeSupplysupplyPlanDayswarehouseIdForSupplyReportwarehouseNameForSupplyReportwbCanBoxwbCanMonopalletwbCanSupersafewbCanBoxOnPalletmanagercellIddrrPercentpercentForParticipationPromoOrAdvertisingselsupLinktempIdcategoryCategory
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
categoryId |
integer · int32 | 否 | 类别的ID. |
name |
string | 是 | 姓名. |
deleted |
boolean | 否 | 删除了. |
parentId |
integer · int32 | 否 | 亲人身份证. |
clientId |
integer · int64 | 否 | 客户身份证. |
marked |
boolean | 否 | 标记了. |
categoryClass |
stringSHOES, LIGHT, DRUGS, CAMERA, TYRES, MILK, WATER, TOBACCO, FURS, BEER, BICYCLES, PERFUMES, ELECTRONIC, OTHER, NONE, FOOD, WHEELCHAIRS, OTP, NCP, BIO, ANTISEPTIC, NABEER, SOFTDRINKS, PETFOOD, SEAFOOD, MEAT, TOYS, TITAN, RADIO, OPTIC_FIBER, VEGETABLE_OIL, CONSERVE, VETPHARMA, CHEMISTRY, AUTOFLUIDS, GROCERY, BOOKS, CONSTRUCTION, FIRE, HEATER, CABLERAW, POLYMER, SWEETS, CARPARTS, NATURAL_FUR, NICOTINDEV, GADGETS, FROZEN, FERTILIZERS, HOMEWARE, VETBIO, INDUSTRIAL, PYROTECHNICS | 否 | 类别类. |
wildberriesType |
WildberriesType | 否 | 野生类型. |
wildberriesCategoryId |
integer · int64 | 否 | 野生类别的身份. |
wildberriesFbmCommission |
number · double | 否 | 野生果联邦调查委员会. |
wildberriesFbwCommission |
number · double | 否 | 野生果Fbw委员会. |
wildberriesFbsCommission |
number · double | 否 | 野生果联邦调查委员会. |
wildberriesDbsCommission |
number · double | 否 | 野生果食品委员会. |
wildberriesEdbsCommission |
number · double | 否 | 野生果养殖委员会. |
wildberriesCAndCCommission |
number · double | 否 | 果和果委员会. |
wildberriesBookingCommission |
number · double | 否 | 野生果预订委员会. |
ozonDescriptionCategoryId |
integer · int64 | 否 | 臭氧描述类别ID. |
yandexMarketCategoryId |
integer · int64 | 否 | 亚兰德克斯市场类别身份证 |
yandexMarketCategory |
YandexMarketCategory | 否 | 亚兰德克斯市场类别 |
ozonDescriptionCategory |
OzonDescriptionCategory | 否 | 臭氧描述类别 |
ozonCommission |
number · double | 否 | 臭氧委员会 |
tnved |
Tnved | 否 | 没有. |
tnvedId |
integer · int64 | 否 | 没有人知道. |
laundry |
string | 否 | 洗衣. |
params |
string | 否 | 帕姆斯. |
namePattern |
string | 否 | 姓名是模式. |
aliexpressCategory |
AliexpressCategory | 否 | 车类别 |
aliexpressCategoryId |
integer · int64 | 否 | 标签: 标识: |
avitoCategory |
AvitoCategory | 否 | 类别 |
lamodaCategory |
LamodaCategory | 否 | 拉莫达类别. |
lamodaCategoryId |
integer · int64 | 否 | 拉莫达类别的身份证. |
avitoCategoryId |
integer · int64 | 否 | 果类别的身份 |
packDepth |
integer · int32 | 否 | 包装深度. |
packWidth |
integer · int32 | 否 | 包装宽度. |
packHeight |
integer · int32 | 否 | 包高. |
packWeight |
integer · int32 | 否 | 包装重量. |
hasSize |
boolean | 否 | 有大小. |
hasColor |
boolean | 否 | 有颜色. |
autoName |
boolean | 否 | 车名. |
removeFbsStock |
boolean | 否 | 删除FBS股票. |
oneCId |
string | 否 | 一个公告. |
externalId |
string | 否 | 其他身份证. |
moySkladId |
string | 否 | 子子的身份. |
useClientParams |
boolean | 否 | 使用客户端参数. |
requiredExpirationDate |
boolean | 否 | 要求到期日期 |
serviceCategoryMappings |
object | 否 | 服务类别地图. |
productCount |
integer · int32 | 否 | 产品数量 |
findirTipscommissionscommissionCalculationslowStockAlertsinputVatoutputVatfinalVatincomeTaxtotalTaxnetProfitmarginwoocomStatusdateStartSeason1dateEndSeason1dateStartSeason2dateEndSeason2dateStartSeason3dateEndSeason3dateStartSeason4dateEndSeason4currentGrossProfitplannedGrossProfitpositionemptyBarcodesuzumStatusmakroStatuskaspiStatussiteanyLinkanyArticleshopifyStatustakealotStatusyandexKitStatusbobShopStatusminPriceForAllMarketplacecalculatedInstockQuantitywoocomParentIdwoocomPermalinkyandexMarketSkuexternalArticlemoySkladLinkIddetmirArticlelamodaArticlemagnitArticlemvideoArticlewildberriesImtIdozonProductIdleroyMerlinIdleroyMerlinArticleyandexMarketShopSkuwildberriesSizeIdsberMegaMarketIdaliexpressSkuuzumProductIdlamodaParentSkuebayArticleozonIdsberArticleozonArticleoneCIdoneCArticledetmirIdsimalandIdlamodaSkuwalmartSkuwalmartIdwoocomSkuwoocomIdmagnitIdmagnitSkuopencartSkuopencartIdtakealotSkuuzumArticleozonFbsSkuozonFboSkuavitoIdmoySkladIdsellerSkuuzumSkuIdyandexMarketProductIdnationalCatalogFeedIdnationalCatalogGoodIdwildberriesPricewildberriesUpdatedPricewildberriesPriceWithoutDiscountwildberriesUpdatedPriceWithoutDiscountaliexpressPricealiexpressPriceWithoutDiscountaliexpressUpdatedPricealiexpressUpdatedPriceWithoutDiscountozonPriceozonUpdatedPriceozonPriceWithoutDiscountozonUpdatedPriceWithoutDiscountleroyMerlinPriceleroyMerlinUpdatedPriceavitoPriceavitoUpdatedPricesberMegaMarketPricesberMegaMarketUpdatedPriceyandexMarketPriceyandexMarketPriceWithoutDiscountyandexMarketUpdatedPriceyandexMarketUpdatedPriceWithoutDiscountproductPricesProductPrice
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
productId |
integer · int64 | 否 | 产品身份证 |
product |
object | 否 | 产品 |
priceTypeId |
integer · int64 | 否 | 价格类型身份证. |
priceType |
PriceType | 否 | 价格类型. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
clientId |
integer · int64 | 否 | 客户身份证. |
price |
number · double | 否 | 价格. |
updatedPrice |
number · double | 否 | 更新价格. |
priceWithoutDiscount |
number · double | 否 | 价格没有折扣. |
updatedPriceWithoutDiscount |
number · double | 否 | 更新价格,没有折扣. |
minPrice |
number · double | 否 | 价格不到. |
updatedMinPrice |
number · double | 否 | 更新的最低价格. |
percentForParticipationPromoOrAdvertising |
integer · int32 | 否 | 参与促销或广告的百分比 |
isActive |
boolean | 否 | 现在还在行动. |
article |
string | 否 | 关于此的文章. |
pendingOperationId |
string | 否 | 预期行动证. |
stockRulesProductStockRules
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
minFbsStock |
integer · int32 | 否 | 美国联邦调查局股票. |
maxFbsStock |
integer · int32 | 否 | 联邦调查局的最大股票. |
subtractFromStock |
integer · int32 | 否 | 减去从股票. |
distributionRules |
StockDistributionRule[] | 否 | 分配规则. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/shelf/{shelfId}使用GET/api/warehouse/shelf/{shelfId}.的货架
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
shelfId |
integer · int32 | 是 | 货架身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/shelf/%7BshelfId%7D?shelfId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Shelf
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"rackId": 1001,
"deleted": false,
"clientId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_shelf_not_found应用逻辑中使用稳定的error_shelf_not_found代码;localMessage包含上述翻译.
/api/warehouse/shelf/{shelfId}使用 DELETE /api/warehouse/shelf/{shelfId}.删除Shelf
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
shelfId |
integer · int32 | 是 | 货架身份证. |
curl --request DELETE 'https://api.selsup.ru/api/warehouse/shelf/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/shelf/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/shelf/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.delete(
'https://api.selsup.ru/api/warehouse/shelf/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/shelf/1001',
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.selsup.ru/api/warehouse/shelf/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/shelf/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_denied_delete应用逻辑中使用稳定的error_cell_denied_delete代码;localMessage包含上述翻译.
error_cell_used_in_order应用逻辑中使用稳定的error_cell_used_in_order代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/service使用GET/api/warehouse/service.获取服务仓库
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
externalName |
string | 否 | 其他名字 |
curl --request GET 'https://api.selsup.ru/api/warehouse/service' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/service', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/service', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/service',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/service',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/service", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/service"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse[]
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/rack/{rackId}使用GET/api/warehouse/rack/{rackId}.的架子
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
rackId |
integer · int32 | 是 | 查看身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/rack/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/rack/1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/rack/1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/rack/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/rack/1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/rack/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/rack/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Rack
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rackId |
integer · int32 | 否 | 查看身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cells |
Cell[] | 否 | 细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"passageId": 1001,
"deleted": false,
"clientId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_rack_not_found应用逻辑中使用稳定的error_rack_not_found代码;localMessage包含上述翻译.
/api/warehouse/rack/{rackId}使用 DELETE /api/warehouse/rack/{rackId}.删除 Rack
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
rackId |
integer · int32 | 是 | 查看身份证. |
curl --request DELETE 'https://api.selsup.ru/api/warehouse/rack/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/rack/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/rack/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.delete(
'https://api.selsup.ru/api/warehouse/rack/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/rack/1001',
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.selsup.ru/api/warehouse/rack/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/rack/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_denied_delete应用逻辑中使用稳定的error_cell_denied_delete代码;localMessage包含上述翻译.
error_cell_used_in_order应用逻辑中使用稳定的error_cell_used_in_order代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/plan/crossdock-warehouses使用GET/api/warehouse/plan/crossdock-warehouses.获得Ozon Crossdock仓库
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
organizationId |
integer · int64 | 是 | 组织身份证. |
search |
string | 是 | 搜索. |
curl --request GET 'https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/plan/crossdock-warehouses?organizationId=1001&search=string"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
OzonFboWarehouse[]
| 字段 | 类型 | 必填 | 描述 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
address |
string | 否 | 现在,我有个地址. | ||||||||||||
name |
string | 否 | 姓名. | ||||||||||||
coordinates |
Coordinates | 否 | 坐标. | ||||||||||||
对象场
|
|||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
latitude |
number · double | 否 | 广度. |
longitude |
number · double | 否 | 长度. |
warehouse_idwarehouse_type[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_empty_ozon_id应用逻辑中使用稳定的error_empty_ozon_id代码;localMessage包含上述翻译.
error_token_expired_or_revoked应用逻辑中使用稳定的error_token_expired_or_revoked代码;localMessage包含上述翻译.
/api/warehouse/passage/{passageId}使用GETX/api/warehouse/passage/{passageId}.的通行
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
passageId |
integer · int32 | 是 | 通过身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/passage/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/passage/1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/passage/1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/passage/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/passage/1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/passage/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/passage/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Passage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
passageId |
integer · int32 | 否 | 通过身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
shelves |
Shelf[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
cells |
Cell[] | 否 | 细胞. |
{
"id": 1001,
"name": "Example",
"warehouseId": 1001,
"deleted": false,
"clientId": 1001,
"racks": "string"
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_passage_not_found应用逻辑中使用稳定的error_passage_not_found代码;localMessage包含上述翻译.
/api/warehouse/passage/{passageId}使用 DELETE /api/warehouse/passage/{passageId}.删除通行
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
passageId |
integer · int32 | 是 | 通过身份证. |
curl --request DELETE 'https://api.selsup.ru/api/warehouse/passage/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/passage/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/passage/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.delete(
'https://api.selsup.ru/api/warehouse/passage/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/passage/1001',
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.selsup.ru/api/warehouse/passage/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/passage/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_denied_delete应用逻辑中使用稳定的error_cell_denied_delete代码;localMessage包含上述翻译.
error_cell_used_in_order应用逻辑中使用稳定的error_cell_used_in_order代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/logistics-fbo-warehouses获取物流Fbo仓库使用GET/api/warehouse/logistics-fbo-warehouses.
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
search默认值: |
string | 否 | 搜索. |
curl --request GET 'https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/logistics-fbo-warehouses?service=NONE&organizationId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
MarketplaceFboWarehouseOption[]
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 否 | 姓名. |
address |
string | 否 | 现在,我有个地址. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/list使用 GET /api/warehouse/list.的列表
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. |
curl --request GET 'https://api.selsup.ru/api/warehouse/list' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/list', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/list', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/list',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/list',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/list", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/list"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse[]
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_bad_request应用逻辑中使用稳定的error_bad_request代码;localMessage包含上述翻译.
error_base_creating应用逻辑中使用稳定的error_base_creating代码;localMessage包含上述翻译.
error_cabinet_access_denied应用逻辑中使用稳定的error_cabinet_access_denied代码;localMessage包含上述翻译.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_container_log_read_failed应用逻辑中使用稳定的error_container_log_read_failed代码;localMessage包含上述翻译.
error_container_log_request_invalid应用逻辑中使用稳定的error_container_log_request_invalid代码;localMessage包含上述翻译.
error_empty_first_name应用逻辑中使用稳定的error_empty_first_name代码;localMessage包含上述翻译.
error_empty_last_name应用逻辑中使用稳定的error_empty_last_name代码;localMessage包含上述翻译.
error_empty_organization_form应用逻辑中使用稳定的error_empty_organization_form代码;localMessage包含上述翻译.
error_empty_organization_inn应用逻辑中使用稳定的error_empty_organization_inn代码;localMessage包含上述翻译.
error_empty_organization_name应用逻辑中使用稳定的error_empty_organization_name代码;localMessage包含上述翻译.
error_empty_position_name应用逻辑中使用稳定的error_empty_position_name代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_fulfillment_client_contract_required应用逻辑中使用稳定的error_fulfillment_client_contract_required代码;localMessage包含上述翻译.
error_fulfillment_document_error应用逻辑中使用稳定的error_fulfillment_document_error代码;localMessage包含上述翻译.
error_fulfillment_request_invalid应用逻辑中使用稳定的error_fulfillment_request_invalid代码;localMessage包含上述翻译.
error_income_not_found应用逻辑中使用稳定的error_income_not_found代码;localMessage包含上述翻译.
error_max_page应用逻辑中使用稳定的error_max_page代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_no_price_for_order_product应用逻辑中使用稳定的error_no_price_for_order_product代码;localMessage包含上述翻译.
error_no_quantity_for_order_product应用逻辑中使用稳定的error_no_quantity_for_order_product代码;localMessage包含上述翻译.
error_order_not_found应用逻辑中使用稳定的error_order_not_found代码;localMessage包含上述翻译.
error_organization_create_failed应用逻辑中使用稳定的error_organization_create_failed代码;localMessage包含上述翻译.
error_organization_exists应用逻辑中使用稳定的error_organization_exists代码;localMessage包含上述翻译.
error_position_exists应用逻辑中使用稳定的error_position_exists代码;localMessage包含上述翻译.
error_reload应用逻辑中使用稳定的error_reload代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_warehouse_not_found应用逻辑中使用稳定的error_warehouse_not_found代码;localMessage包含上述翻译.
error_wrong_crm_token应用逻辑中使用稳定的error_wrong_crm_token代码;localMessage包含上述翻译.
error_wrong_inn应用逻辑中使用稳定的error_wrong_inn代码;localMessage包含上述翻译.
error_wrong_version应用逻辑中使用稳定的error_wrong_version代码;localMessage包含上述翻译.
/api/warehouse/getWarehousesByService使用GET/api/warehouse/getWarehousesByService.获得仓库按服务
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
externalName |
string | 否 | 其他名字 |
curl --request GET 'https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/getWarehousesByService?service=NONE"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Warehouse[]
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 否 | 服务. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationId |
integer · int64 | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
organizationIds |
integer[] | 否 | 组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fboOrganizationId |
integer · int64 | 否 | 联邦调查局组织身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCellId |
integer · int32 | 否 | 没有地方细胞身份证. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noPlaceCell |
Cell | 否 | 没有地方细胞. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
refundCellIdorganizationOrganization
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int64 | 否 | Id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name |
string | 是 | 姓名. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shortName |
string | 否 | 简短名字. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxType |
stringYSN, YSN_CONSUMPTION, AUSN, AUSN_CONSUMPTION, OSNO, SELF_EMPLOYED, YSN_GENERAL | 否 | 税收类型. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxRate |
integer · int32 | 否 | 税率. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
taxNds |
integer · int32 | 否 | 税收. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inputTaxNds |
integer · int32 | 否 | 输入税税. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
outputTaxNds |
integer · int32 | 否 | 产出税法 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableNewTaxCalculation |
boolean | 否 | 启用新的税收计算. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useNdsCostPrice |
boolean | 否 | 使用NDS成本价格. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inn |
string | 是 | 酒店. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kpp |
string | 否 | 现在,我们要去. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bank |
string | 否 | 银行. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bik |
string | 否 | 骑自行车. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
corrBill |
string | 否 | 科尔比尔. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billNumber |
string | 否 | 账号号. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampPath |
string | 否 | 邮票路径. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampUrl |
string | 否 | 邮票URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampSize |
integer · int32 | 否 | 邮票大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampWidth |
integer · int32 | 否 | 盖章宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampHeight |
integer · int32 | 否 | 邮票高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stampFileName |
string | 否 | 邮票文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signaturePath |
string | 否 | 签字之路. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureUrl |
string | 否 | 签字的URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureFileName |
string | 否 | 签名文件名称 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerName |
string | 否 | 履行合同签署人名 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fulfillmentContractSignerPosition |
string | 否 | 履行合同签署员的位置 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureSize |
integer · int32 | 否 | 签名大小. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureWidth |
integer · int32 | 否 | 签字宽度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
signatureHeight |
integer · int32 | 否 | 签字高度. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ipPerson |
Person | 否 | 个人. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
对象场
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
personId |
integer · int64 | 否 | 个人身份证. |
firstName |
string | 是 | 姓名 |
lastName |
string | 是 | 姓名 |
surName |
string | 否 | 苏尔名 |
clientId |
integer · int64 | 否 | 客户身份证. |
position |
PersonPosition | 是 | 位置. |
versionId |
integer · int64 | 否 | 版本ID. |
createdUser |
string | 否 | 创建用户. |
createdDate |
string · date-time | 否 | 创造日期. |
deleted |
boolean | 否 | 删除了. |
userId |
integer · int32 | 否 | 用户身份证 |
hasChanges |
boolean | 否 | 有变化. |
fullName |
string | 否 | 完整名字. |
shortName |
string | 否 | 简短名字. |
formipclientIdaddressAddress
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
postCode |
string | 否 | 邮政代码. |
country |
Country | 否 | 乡村. |
region |
Region | 否 | 地区. |
regionId |
integer · int32 | 否 | 区域ID |
street |
string | 否 | 路上. |
house |
string | 否 | 房子. |
district |
string | 否 | 地区. |
city |
string | 否 | 城市. |
locality |
string | 否 | 地方. |
building |
string | 否 | 建筑物. |
flat |
string | 否 | 没有什么. |
short |
string | 否 | 短暂. |
addressId |
Address | 否 | 联系方式 |
full |
string | 否 | 满满. |
phoneNumberaddressFullsamplepriorityuseForOrderclientIdexternalNamenotSyncStocksignoreOrderspassagesPassage
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
integer · int32 | 否 | Id. | ||||||||||||||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||||||||||||||
warehouseId |
integer · int64 | 否 | 仓库身份证. | ||||||||||||||||||||||||||||||||
deleted |
boolean | 否 | 删除了. | ||||||||||||||||||||||||||||||||
clientId |
integer · int64 | 否 | 客户身份证. | ||||||||||||||||||||||||||||||||
racks |
Rack[] | 否 | 货架. | ||||||||||||||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
name |
string | 否 | 姓名. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
deleted |
boolean | 否 | 删除了. |
clientId |
integer · int64 | 否 | 客户身份证. |
shelves |
Shelf[] | 否 | 货架. |
warehouseServicesServiceWarehouse
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
deliveriesdeletedcaptiondurationHoursreservationDaysscheduleurAddresscitylongitudelatitudewarehouseServiceIdwarehouseTypedescriptioninnkppplaceOfBusinessFiasIdpaymentAccounttelephoneregionNameregionRegion
| 字段 | 类型 | 必填 | 描述 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
regionId |
integer · int32 | 否 | 区域ID | ||||||||||||||||||||
countryId |
integer · int32 | 否 | 国家的身份证. | ||||||||||||||||||||
name |
string | 否 | 姓名. | ||||||||||||||||||||
regionSynonyms |
RegionSynonym[] | 否 | 区域同义词 | ||||||||||||||||||||
阵列项结构
|
|||||||||||||||||||||||
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
regionId |
integer · int64 | 否 | 区域ID |
synonym |
string | 否 | 标语是同义词. |
service |
string | 否 | 服务. |
regionIdisPrepayOnlineisCashisCardisGoodsActiveorgIdaddress[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/getWarehouseOfService使用GETX/api/warehouse/getWarehouseOfService.获取服务仓库
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
organizationId |
integer · int64 | 是 | 组织身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
curl --request GET 'https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/getWarehouseOfService?organizationId=1001&service=NONE"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
WarehouseOfService[]
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
object | 否 | Id. |
name |
string | 否 | 姓名. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_empty_ozon_id应用逻辑中使用稳定的error_empty_ozon_id代码;localMessage包含上述翻译.
error_no_business_id_yandex_market应用逻辑中使用稳定的error_no_business_id_yandex_market代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_no_integration_with_service应用逻辑中使用稳定的error_no_integration_with_service代码;localMessage包含上述翻译.
error_no_integration_with_wb_ozon应用逻辑中使用稳定的error_no_integration_with_wb_ozon代码;localMessage包含上述翻译.
error_no_integration_with_wildberries应用逻辑中使用稳定的error_no_integration_with_wildberries代码;localMessage包含上述翻译.
error_no_integration_with_yandex_market应用逻辑中使用稳定的error_no_integration_with_yandex_market代码;localMessage包含上述翻译.
error_organization_not_found应用逻辑中使用稳定的error_organization_not_found代码;localMessage包含上述翻译.
error_ozon_api应用逻辑中使用稳定的error_ozon_api代码;localMessage包含上述翻译.
error_ozon_api_limit应用逻辑中使用稳定的error_ozon_api_limit代码;localMessage包含上述翻译.
error_ozon_premium_plus_subscription_required应用逻辑中使用稳定的error_ozon_premium_plus_subscription_required代码;localMessage包含上述翻译.
error_ozon_token_invalid应用逻辑中使用稳定的error_ozon_token_invalid代码;localMessage包含上述翻译.
error_prepared_integration_not_found应用逻辑中使用稳定的error_prepared_integration_not_found代码;localMessage包含上述翻译.
error_remote_error应用逻辑中使用稳定的error_remote_error代码;localMessage包含上述翻译.
error_service_error应用逻辑中使用稳定的error_service_error代码;localMessage包含上述翻译.
error_token_expired_or_revoked应用逻辑中使用稳定的error_token_expired_or_revoked代码;localMessage包含上述翻译.
/api/warehouse/getWarehouseBalancesWithPrices使用GET/api/warehouse/getWarehouseBalancesWithPrices.获得仓库余额与价格
curl --request GET 'https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/getWarehouseBalancesWithPrices"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
WarehouseBalancesWithPrices[]
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
warehouseId |
integer · int64 | 否 | 仓库身份证. |
quantity |
integer · int32 | 否 | 量量. |
distinctQuantity |
integer · int64 | 否 | 显而易见的数量. |
purchasePrice |
number · double | 否 | 买价. |
additionalExpensesAmount |
number · double | 否 | 额外费用 |
wildberriesRetailPrice |
number · double | 否 | 野生果零售价格 |
ozonRetailPrice |
number · double | 否 | 子零售价格 |
yandexMarketRetailPrice |
number · double | 否 | 亚兰德克斯市场零售价格 |
aliexpressRetailPrice |
number · double | 否 | 果零售价格 |
sberMegaMarketRetailPrice |
number · double | 否 | 瑞银大市场零售价格 |
retailPriceByMarketplace |
number · double | 否 | 按市场价格. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
/api/warehouse/getServiceWarehouse使用 GET /api/warehouse/getServiceWarehouse.获取服务仓库
curl --request GET 'https://api.selsup.ru/api/warehouse/getServiceWarehouse' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/getServiceWarehouse', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/getServiceWarehouse', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/getServiceWarehouse',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/getServiceWarehouse',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/getServiceWarehouse", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/getServiceWarehouse"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
ServiceWarehouse[]
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int64 | 否 | Id. |
name |
string | 是 | 姓名. |
externalId |
string | 是 | 其他身份证. |
warehouseId |
integer · int64 | 是 | 仓库身份证. |
service |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
organizationId |
integer · int64 | 是 | 组织身份证. |
serviceOrganizationId |
integer · int64 | 否 | 服务组织身份证. |
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_base_creating应用逻辑中使用稳定的error_base_creating代码;localMessage包含上述翻译.
error_cabinet_access_denied应用逻辑中使用稳定的error_cabinet_access_denied代码;localMessage包含上述翻译.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_empty_organization_form应用逻辑中使用稳定的error_empty_organization_form代码;localMessage包含上述翻译.
error_empty_organization_inn应用逻辑中使用稳定的error_empty_organization_inn代码;localMessage包含上述翻译.
error_empty_organization_name应用逻辑中使用稳定的error_empty_organization_name代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_fulfillment_client_contract_required应用逻辑中使用稳定的error_fulfillment_client_contract_required代码;localMessage包含上述翻译.
error_max_page应用逻辑中使用稳定的error_max_page代码;localMessage包含上述翻译.
error_organization_create_failed应用逻辑中使用稳定的error_organization_create_failed代码;localMessage包含上述翻译.
error_organization_exists应用逻辑中使用稳定的error_organization_exists代码;localMessage包含上述翻译.
error_reload应用逻辑中使用稳定的error_reload代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
error_wrong_inn应用逻辑中使用稳定的error_wrong_inn代码;localMessage包含上述翻译.
/api/warehouse/getRegionWarehousesByService使用GET/api/warehouse/getRegionWarehousesByService.获取区域仓库按服务
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
services |
stringNONE, WILDBERRIES, OZON, YANDEX_MARKET, FAMILIYA, NATIONAL_CATALOG, ALIEXPRESS, OTHER, MOY_SKLAD, SBER_MEGA_MARKET, CISLINK, ONE_C, AVITO, LEROY_MERLIN, DETMIR, KAZAN_EXPRESS, EVOTOR, WEBASYST, AMAZON, EBAY, SIMALAND, INSALES, LAMODA, OZON_PERFORMANCE, WALMART, GOOGLE, YANDEX_DISC, EMAIL, WOOCOMMERCE, MAGNIT, OPENCART, M_VIDEO, TAKEALOT, UZUM, SHOPIFY, MAKRO, YANDEX_KIT, BOB_SHOP, KASPI, DIADOC, TEKSHER, KONTUR_LOGISTICS, KONTUR_EDI, VSE_INSTRUMENTI, ELECTRONIC_SIGN | 是 | 服务. |
curl --request GET 'https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/getRegionWarehousesByService?services=NONE"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
[
"string"
]应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_service_not_found应用逻辑中使用稳定的error_service_not_found代码;localMessage包含上述翻译.
/api/warehouse/findCell使用 GET /api/warehouse/findCell. 找到细胞
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
barcode |
string | 是 | 条码. |
curl --request GET 'https://api.selsup.ru/api/warehouse/findCell?barcode=string' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/findCell?barcode=string', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/findCell?barcode=string', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/findCell?barcode=string',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/findCell?barcode=string',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/findCell?barcode=string", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/findCell?barcode=string"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Cell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
/api/warehouse/cell/{cellId}使用GET/api/warehouse/cell/{cellId}.的细胞
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
cellId |
integer · int32 | 是 | 电话身份证. |
curl --request GET 'https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const result = await response.json();
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001', {
method: 'GET',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
const result: unknown = await response.json();
import os
import requests
response = requests.get(
'https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
result = response.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/cell/%7BcellId%7D?cellId=1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
Cell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
id |
integer · int32 | 否 | Id. |
warehouseId |
integer · int64 | 否 | 仓库身份证. |
passageId |
integer · int32 | 否 | 通过身份证. |
shelfId |
integer · int32 | 否 | 货架身份证. |
rackId |
integer · int32 | 否 | 查看身份证. |
storageZoneId |
integer · int64 | 否 | 存储区的身份. |
name |
string | 否 | 姓名. |
fullName |
string | 否 | 完整名字. |
sortName |
string | 否 | 某种名字. |
barcode |
string | 否 | 条码. |
deleted |
boolean | 否 | 删除了. |
width |
integer · int32 | 否 | 宽度. |
height |
integer · int32 | 否 | 高. |
depth |
integer · int32 | 否 | 深度. |
volume |
number · double | 否 | 音量. |
clientId |
integer · int64 | 否 | 客户身份证. |
lastInventoryId |
integer · int32 | 否 | 最后的库存身份证. |
type |
stringNORMAL, NO_PLACE, REFUND | 否 | Type. |
{
"id": 1001,
"warehouseId": 1001,
"passageId": 1001,
"shelfId": 1001,
"rackId": 1001,
"storageZoneId": 1001
}应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_not_found应用逻辑中使用稳定的error_cell_not_found代码;localMessage包含上述翻译.
error_fulfillment_client_access_denied应用逻辑中使用稳定的error_fulfillment_client_access_denied代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
/api/warehouse/cell/{cellId}使用 DELETE /api/warehouse/cell/{cellId}.删除Cell
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
cellId |
integer · int32 | 是 | 电话身份证. |
curl --request DELETE 'https://api.selsup.ru/api/warehouse/cell/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/cell/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/cell/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.delete(
'https://api.selsup.ru/api/warehouse/cell/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/cell/1001',
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.selsup.ru/api/warehouse/cell/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/cell/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_cell_denied_delete应用逻辑中使用稳定的error_cell_denied_delete代码;localMessage包含上述翻译.
error_cell_used_in_order应用逻辑中使用稳定的error_cell_used_in_order代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.
/api/warehouse/storage-zone/{storageZoneId}使用 DELETE /api/warehouse/storage-zone/{storageZoneId}.删除存储区
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
storageZoneId |
integer · int64 | 是 | 存储区的身份. |
curl --request DELETE 'https://api.selsup.ru/api/warehouse/storage-zone/1001' \
--header 'Authorization: YOUR_API_TOKEN'
const response = await fetch('https://api.selsup.ru/api/warehouse/storage-zone/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN },
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || 'selsup_request_failed');
}
const response: Response = await fetch('https://api.selsup.ru/api/warehouse/storage-zone/1001', {
method: 'DELETE',
headers: { Authorization: process.env.SELSUP_API_TOKEN! },
});
if (!response.ok) {
const error = await response.json() as { error?: string };
throw new Error(error.error ?? 'selsup_request_failed');
}
import os
import requests
response = requests.delete(
'https://api.selsup.ru/api/warehouse/storage-zone/1001',
headers={'Authorization': os.environ['SELSUP_API_TOKEN']},
)
response.raise_for_status()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.selsup.ru/api/warehouse/storage-zone/1001',
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: ' . getenv('SELSUP_API_TOKEN')],
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($response === false || $status >= 400) {
throw new RuntimeException($response ?: 'selsup_request_failed');
}
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.selsup.ru/api/warehouse/storage-zone/1001", nil)
if err != nil { panic(err) }
req.Header.Set("Authorization", os.Getenv("SELSUP_API_TOKEN"))
response, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer response.Body.Close()
result, _ := io.ReadAll(response.Body)
fmt.Printf("%d\n%s\n", response.StatusCode, result)
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class SelSupExample {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.selsup.ru/api/warehouse/storage-zone/1001"))
.header("Authorization", System.getenv("SELSUP_API_TOKEN"))
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
答案没有身体.
应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑
auth_requiredAuthorization 缺失,空,或包含无效的代币.
error_access_denied代币存在,但它的作用不能执行这个操作.
error_unknown节省请求时间和联系支持;不要盲目重新尝试突变.
error_cant_extract_tariffs应用逻辑中使用稳定的error_cant_extract_tariffs代码;localMessage包含上述翻译.
error_no_client应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.
error_storage_zone_not_found应用逻辑中使用稳定的error_storage_zone_not_found代码;localMessage包含上述翻译.
error_subscription_expired应用逻辑中使用稳定的error_subscription_expired代码;localMessage包含上述翻译.