SelSup Developers

公共的 API · 参考 API

质量证书

质量证书的终点,包括精确的路线,参数,请求机构和可扩展的响应方案.

10 终点/api/qualityDocument稳定机器可读的描述 ↗
{ }

通过可编辑的独立合同来支持本页面. 在生产使用之前,验证使用测试数据的写作操作.

/api/qualityDocument

准备使用的工作流程

准备使用的工作流程

数据模型

数据结构

模型在此列出一次,并且可以直接从使用它们的终端点扩展.

QualityDocumentImage5 字段
idinteger · int64

Id.

urlstring

查看一个URL.

positioninteger · int32

位置.

documentIdinteger · int64

文件身份证.

clientIdinteger · int64

客户身份证.

AliexpressCategory8 字段
idinteger · int64

Id.

namestring

姓名.

publishedboolean

发表了.

parentIdinteger · int64

亲人身份证.

aliexpressIdinteger · int64

快递证件

lastSyncDatestring · date-time

最后的同步日期.

notChangedDaysinteger · int32

没有改变的日子.

isLeafboolean

是叶子.

AvitoCategory9 字段
idinteger · int64

Id.

必填
namestring

姓名.

必填
shortNamestring

简短名字.

publishedboolean

发表了.

parentIdinteger · int64

亲人身份证.

lastSyncDatestring · date-time

最后的同步日期.

isLeafboolean

是叶子.

goodsTypestring

货物类型.

categorystring

类别.

Brand11 字段
brandIdinteger · int32

品牌身份证.

read-only
namestring

姓名.

必填
clientIdinteger · int64

客户身份证.

read-only
logoUrlstring

标志 URL

read-only
logoSizeinteger · int32

标志尺寸

read-only
logoWidthinteger · int32

标志宽度

read-only
logoHeightinteger · int32

标志高度.

read-only
deletedboolean

删除了.

ozonNamestring

子名字

ozonIdinteger · int64

气标识.

oneCIdstring

一个公告.

Category47 字段
categoryIdinteger · int32

类别的ID.

read-only
namestring

姓名.

必填
deletedboolean

删除了.

read-only
parentIdinteger · int32

亲人身份证.

clientIdinteger · int64

客户身份证.

read-only
markedboolean

标记了.

categoryClassstring

类别类.

wildberriesTypeWildberriesType

野生类型.

wildberriesCategoryIdinteger · int64

野生类别的身份.

wildberriesFbmCommissionnumber · double

野生果联邦调查委员会.

read-only
wildberriesFbwCommissionnumber · double

野生果Fbw委员会.

read-only
wildberriesFbsCommissionnumber · double

野生果联邦调查委员会.

read-only
wildberriesDbsCommissionnumber · double

野生果食品委员会.

read-only
wildberriesEdbsCommissionnumber · double

野生果养殖委员会.

read-only
wildberriesCAndCCommissionnumber · double

果和果委员会.

read-only
wildberriesBookingCommissionnumber · double

野生果预订委员会.

read-only
ozonDescriptionCategoryIdinteger · int64

臭氧描述类别ID.

yandexMarketCategoryIdinteger · int64

亚兰德克斯市场类别身份证

yandexMarketCategoryYandexMarketCategory

亚兰德克斯市场类别

ozonDescriptionCategoryOzonDescriptionCategory

臭氧描述类别

ozonCommissionnumber · double

臭氧委员会

read-only
tnvedTnved

没有.

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

产品数量

LamodaCategory8 字段
idinteger · int64

Id.

namestring

姓名.

shortNamestring

简短名字.

publishedboolean

发表了.

isLeafboolean

是叶子.

parentIdinteger · int64

亲人身份证.

lastSyncDatestring · date-time

最后的同步日期.

notChangedDaysinteger · int32

没有改变的日子.

OzonDescriptionCategory21 字段
idinteger · int64

Id.

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

升级 升

QualityDocument12 字段
idinteger · int64

Id.

namestring

姓名.

typestring

Type.

numberstring

号码.

numberNormalizedstring

号码正常化.

clientIdinteger · int64

客户身份证.

versionIdinteger · int64

版本ID.

createdUserstring

创建用户.

startDatestring · date

开始日期.

expireDatestring · date

截止日期.

dataQualityDocumentData[]

数据.

imagesQualityDocumentImage[]

照片.

QualityDocumentData8 字段
idinteger · int64

Id.

documentIdinteger · int64

文件身份证.

productModelIdinteger · int64

产品模型身份证

brandBrand

品牌.

brandIdinteger · int32

品牌身份证.

categoryCategory

类别.

categoryIdinteger · int32

类别的ID.

clientIdinteger · int64

客户身份证.

ServiceCategoryMapping3 字段
servicestring

服务.

externalIdstring

其他身份证.

namestring

姓名.

Tnved14 字段
idinteger · int64

Id.

namestring

姓名.

deletedboolean

删除了.

typestring

Type.

categoryClassstring

类别类.

parentIdinteger · int64

亲人身份证.

keywordsstring

关键词.

descriptionstring

描述

paramsTnvedIdinteger · int64

帕拉姆斯特内维德身份证.

isInParamboolean

在帕拉姆.

certificationstring

证书.

parentCodestring

家庭代码.

codestring

Code.

certificationRequiredboolean

需要获得证书.

WildberriesType32 字段
idinteger · int64

Id.

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

委员会.

YandexMarketCategory7 字段
idinteger · int64

Id.

namestring

姓名.

必填
publishedboolean

发表了.

parentIdinteger · int64

亲人身份证.

isLeafboolean

是叶子.

lastSyncDatestring · date-time

最后的同步日期.

notChangedDaysinteger · int32

没有改变的日子.

TmsTask25 字段
idinteger · int64

Id.

read-only
statusstring

Status.

read-only
typestring

Type.

read-only
namestring

姓名.

clientIdinteger · int64

客户身份证.

entityIdinteger · int64

实体身份证

progressinteger · int32

进步.

processedQuantityinteger · int32

处理量

organizationIdinteger · int64

组织身份证.

priorityinteger · int32

优先考虑.

propertiesstring

房产.

messagestring

信息.

messageParamsstring

消息帕拉姆.

createdDatestring · date-time

创造日期.

startDatestring · date-time

开始日期.

finishDatestring · date-time

终结日期.

urlstring

查看一个URL.

inputFileUrlstring

输入文件URL.

retryNumberinteger · int32

复试号码.

userIdinteger · int32

用户身份证

retryDatestring · date-time

试一次.

debugboolean

调试.

forcedStartboolean

强迫开始.

servicestring

服务.

langstring

Lang.

FindResponseQualityDocument1 字段
rowsQualityDocument[]

排列.

错误合同

如何返回应用错误

编程的代码在每个地方都相同,而用户面向的消息由服务器翻译. 建立在error周围的应用逻辑,仅用于显示.

鱼类

稳定机器可读的代码用于集成逻辑.

鱼类

在API代币用户语言中显示准备的消息.

鱼类

服务器在本地化消息模板中插入的值.

localMessage使用了 API代币的用户的lang字段.文档语言和 Accept-Language标题不会改变它;当用户没有语言配置时,使用俄语.

RU用户位置是 ru
{
  "error": "error_brand_already_exists",
  "localMessage": "Бренд Base уже существует",
  "params": {
    "name": "Base"
  }
}
CN中文 (cn)
{
  "error": "error_brand_already_exists",
  "localMessage": "品牌 Base 已经存在",
  "params": {
    "name": "Base"
  }
}

终点

终点

POST

装载质量文件图像

/api/qualityDocument/uploadQualityDocumentImage
具有写入的标志

使用 POST 上传质量文件图像

查询参数

字段类型必填描述
documentId integer · int64 文件身份证.

要求机构

multipart/form-data
字段类型必填描述
file string · binary 文件.
curl --request POST 'https://api.selsup.ru/api/qualityDocument/uploadQualityDocumentImage?documentId=1001' \
  --header 'Authorization: YOUR_API_TOKEN' \
  --form 'file=@./file.bin'

成功的反应

200
对象场 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
{
  "id": 1001,
  "url": "https://example.com",
  "position": 1,
  "documentId": 1001,
  "clientId": 1001
}
错误8

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_max_upload_size_exceeded
已超过允许的文件大小

应用逻辑中使用稳定的error_max_upload_size_exceeded代码;localMessage包含上述翻译.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

400error_quality_document_not_found
未找到证书

应用逻辑中使用稳定的error_quality_document_not_found代码;localMessage包含上述翻译.

400error_storage_size_exceeded
你已经超过了文件存储限制: {limit} MB

应用逻辑中使用稳定的error_storage_size_exceeded代码;localMessage包含上述翻译.

400error_wrong_image_format
文件的图像格式不正确: {name}。

应用逻辑中使用稳定的error_wrong_image_format代码;localMessage包含上述翻译.

POST

更新质量文件

/api/qualityDocument/updateQualityDocument
具有写入的标志

使用 POST 更新质量文件

要求机构

application/json
对象场QualityDocument
字段类型必填描述
id integer · int64 Id.
name string 姓名.
type stringDECLARATION, CERTIFICATE, REFUSAL, REGISTRATION Type.
number string 号码.
numberNormalized string 号码正常化.
clientId integer · int64 客户身份证.
versionId integer · int64 版本ID.
createdUser string 创建用户.
startDate string · date 开始日期.
expireDate string · date 截止日期.
data QualityDocumentData[] 数据.
阵列项结构 QualityDocumentData
字段类型必填描述
id integer · int64 Id.
documentId integer · int64 文件身份证.
productModelId integer · int64 产品模型身份证
brand Brand 品牌.
对象场 Brand
字段类型必填描述
brandId integer · int32 品牌身份证.
name string 姓名.
clientId integer · int64 客户身份证.
logoUrl string 标志 URL
logoSize integer · int32 标志尺寸
logoWidth integer · int32 标志宽度
logoHeight integer · int32 标志高度.
deleted boolean 删除了.
ozonName string 子名字
ozonId integer · int64 气标识.
oneCId string 一个公告.
brandId integer · int32 品牌身份证.
category Category 类别.
对象场 Category
字段类型必填描述
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 产品数量
categoryId integer · int32 类别的ID.
clientId integer · int64 客户身份证.
images QualityDocumentImage[] 照片.
阵列项结构 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
curl --request POST 'https://api.selsup.ru/api/qualityDocument/updateQualityDocument' \
  --header 'Authorization: YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1001,
  "name": "Example",
  "type": "DECLARATION",
  "number": "string",
  "numberNormalized": "string",
  "clientId": 1001
}'

成功的反应

200
对象场 QualityDocument
字段类型必填描述
id integer · int64 Id.
name string 姓名.
type stringDECLARATION, CERTIFICATE, REFUSAL, REGISTRATION Type.
number string 号码.
numberNormalized string 号码正常化.
clientId integer · int64 客户身份证.
versionId integer · int64 版本ID.
createdUser string 创建用户.
startDate string · date 开始日期.
expireDate string · date 截止日期.
data QualityDocumentData[] 数据.
阵列项结构 QualityDocumentData
字段类型必填描述
id integer · int64 Id.
documentId integer · int64 文件身份证.
productModelId integer · int64 产品模型身份证
brand Brand 品牌.
对象场 Brand
字段类型必填描述
brandId integer · int32 品牌身份证.
name string 姓名.
clientId integer · int64 客户身份证.
logoUrl string 标志 URL
logoSize integer · int32 标志尺寸
logoWidth integer · int32 标志宽度
logoHeight integer · int32 标志高度.
deleted boolean 删除了.
ozonName string 子名字
ozonId integer · int64 气标识.
oneCId string 一个公告.
brandId integer · int32 品牌身份证.
category Category 类别.
对象场 Category
字段类型必填描述
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 产品数量
categoryId integer · int32 类别的ID.
clientId integer · int64 客户身份证.
images QualityDocumentImage[] 照片.
阵列项结构 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
{
  "id": 1001,
  "name": "Example",
  "type": "DECLARATION",
  "number": "string",
  "numberNormalized": "string",
  "clientId": 1001
}
错误6

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_document_already_exist
已有一个具有此名称的文件存在

应用逻辑中使用稳定的error_document_already_exist代码;localMessage包含上述翻译.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

400error_quality_document_version_conflict
文档已被其他用户修改。请刷新页面并重试

应用逻辑中使用稳定的error_quality_document_version_conflict代码;localMessage包含上述翻译.

POST

删除质量文件

/api/qualityDocument/removeQualityDocument
具有写入的标志

使用 POST /api/qualityDocument/removeQualityDocument. 删除质量文件

查询参数

字段类型必填描述
documentId integer · int64 文件身份证.
curl --request POST 'https://api.selsup.ru/api/qualityDocument/removeQualityDocument?documentId=1001' \
  --header 'Authorization: YOUR_API_TOKEN'

成功的反应

200

答案没有身体.

错误4

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

POST

进口证书

/api/qualityDocument/importCertificates
具有写入的标志

使用POST/api/qualityDocument/importCertificates.的进口证书

查询参数

字段类型必填描述
replaceConnects boolean 取代连接.

要求机构

multipart/form-data
字段类型必填描述
file string · binary 文件.
curl --request POST 'https://api.selsup.ru/api/qualityDocument/importCertificates' \
  --header 'Authorization: YOUR_API_TOKEN' \
  --form 'file=@./file.bin'

成功的反应

200
对象场 TmsTask
字段类型必填描述
id integer · int64 Id.
status stringCREATED, RUNNING, FINISHED, ERROR, RESTARTING, INTERRUPTING, INTERRUPTED, STOPPED, EXCEPTION Status.
type stringWILDBERRIES_CREATE_CARD, NATIONAL_CATALOG_CREATE_CARD, OZON_CREATE_CARD, OZON_CARDS_IMPORT, IMPORT_FBS_ORDERS, UPLOAD_PHOTOGRAPHY, WILDBERRIES_UPDATE_PRICE, WILDBERRIES_CARD_IMPORT, WILDBERRIES_CARD_UPDATE, SELSUP_STOCKS, REFRESH_PHOTOGRAPHY, SUPPLYING_QUANTITY_TASK, EXPORT_PRICE, OZON_UPDATE_PRICE, WILDBERRIES_FILE_TASK, YANDEX_MARKET_CARD_CREATE, OZON_CARD_UPDATE_TASK, OZON_IMPORT_STAT_TASK, WILDBERRIES_PROFIT_STAT_TASK, ALIEXPRESS_CREATE_CARD_TASK, ALIEXPRESS_UPDATE_CARD_TASK, PRICES_IMPORT_TASK, WILDBERRIES_PRICES_TASK, YANDEX_MARKET_CARD_IMPORT, STOCKS_UPDATE, WILDBERRIES_STOCKS_IMPORT_TASK, WILDBERRIES_ORDERS_AND_SALES_TASK, WILDBERRIES_INCOMES_IMPORT_TASK, OZON_STOCKS_IMPORT_TASK, TURNOVER_DOCUMENTS_TASK, INTRODUCE_WMS_ITEMS_TASK, PRODUCTS_FILE_TASK, MODELS_FILE_TASK, UPDATE_PRODUCT_CODES_TASK, INTRODUCE_CODES_TASK, PRODUCTS_IMPORT_TASK, PRICES_FILE_TASK, YANDEX_MARKET_UPDATE_PRICE_TASK, IMPORT_STOCKS_TASK, MOY_SKLAD_EXPORT_ORDERS, MERGE_PRODUCTS_TASK, PRODUCTS_WILDBERRIES_EXCEL_IMPORT_TASK, MOY_SKLAD_CREATE_CARD, IMPORT_FBO_STOCKS_FROM_FILE, CREATE_WMS_ITEMS, MOY_SKLAD_CARDS_IMPORT, PROMOTION_FILE, UNUSED_1, UNUSED, PRODUCT_ANALYTICS_FILE_TASK, PROMOTION_RESET_FILE, MOY_SKLAD_IMPORT_ORDERS, FINANCE_REPORT_FILE_TASK, YML_FILE_EXPORT, PRODUCT_BALANCE_REPORT_FILE_TASK, CURRENT_PRODUCT_BALANCE_FILE_TASK, IMPORT_TRANSACTIONS, MATCH_UNREGISTERED_PROFIT_REPORT_TASK, UPDATE_AVERAGE_SERVICE_EXPENSES_TASK, YANDEX_MARKET_ORDER_IMPORT_STAT_TASK, ABC_REPORT_FILE_TASK, MODEL_CONTRACTORS_IMPORT, MODEL_CONTRACTORS_EXPORT, BANK_TRANSACTION_IMPORT_FILE_TASK, YML_IMPORT_TASK, SALES_DYNAMIC_REPORT_FILE_TASK, UPDATE_FBS_ORDERS, EXPORT_TRANSACTION_IN_EXCEL_FILE_TASK, IMPORT_TRANSACTION_FROM_EXCEL_FILE_TASK, EXPORT_PROFIT_REPORT_FILE_TASK, IMPORT_PROFIT_REPORT_FROM_EXCEL_FILE_TASK, IMPORT_REALIZATION_REPORT_TASK, STOCK_RECONCILIATION, ORDER_REPORT_FILE_TASK, GET_WB_FBO_ORDER_FROM_PROFIT_REPORT_TASK, TO_QUANTITY_STORAGE_METHOD, APPLY_RECONCILIATION, OZON_IMPORT_FBO_ORDERS_TASK, UPDATE_PURCHASE_PRICE_IN_PROFIT_REPORT_TASK, FBS_LABELS, MERGE_PRODUCT_STOCKS, CREATE_ORDER_FROM_FILE, ALIEXPRESS_CARD_IMPORT, PRICE_LIST_IMPORT, WB_STOCK_REPORT_FILE, CONTRACTORS_REPORT_FILE, PRODUCTS_SBER_MEGA_MARKET_EXCEL_IMPORT_TASK, EXPORT_PROBLEMATIC_PRODUCT_REPORT, PLAN_SUPPLY_REPORT_TASK, PLAN_FACT_SALES_REPORT_FILE, IMPORT_PLAN_SALES_FROM_EXCEL_FILE_TASK, EXPORT_PLAN_SALES_EXCEL_FILE_TASK, ORDERS_TO_BUY_FILE_TASK, MERGE_PRICE_ON_OTHER_MP_TASK, MATCH_PRODUCT_LAST_OPERATION_DATE_TASK, PROBLEMATIC_PRODUCT_PRICE_FILE_TASK, CATEGORIES_IMPORT_EXCEL_TASK, AVITO_CARD_IMPORT, UPDATE_OLD_WB_ORDER_STATUSES_TASK, PRESTA_SHOP_IMPORT_TASK, PRODUCTS_AVITO_EXCEL_IMPORT_TASK, FBO_STOCK_RECONCILIATION_TASK, APPLY_FBO_RECONCILIATION_TASK, EXPORT_REPRICE_PRODUCT_CONFIG_TASK, IMPORT_REPRICE_PRODUCT_CONFIG_TASK, OZON_CASH_FLOW_STATEMENT_IMPORT_TASK, IMPORT_PROMOTION_STRATEGY_FILE_TASK, UPDATE_ORDER_DELIVERY_INFO_TASK, BILLING_OPERATION_TASK, SET_PURCHASE_PERCENT_TASK, REMOVE_PRODUCT_IMAGES_TASK, STRUCTURE_TURNOVER_TASK, OZON_NEW_UPDATE_PRICE, REPLACE_PRODUCT_IMAGE_TASK, UPDATE_OZON_PROMOTION_DATA_TASK, WILDBERRIES_IMPORT_CAMPAIGN_TASK, WILDBERRIES_STORAGE_REPORT_TASK, WEBASYST_LINK_ARTICLE_TASK, DELIVERY_SERVICE_LABELS, HAND_ON_PULSE_FILE_TASK, ITEMS_INCOME_EXCEL_TASK, UPDATE_SETS_EXCEL_TASK, DELETE_PROFIT_REPORTS_BY_FILE_HISTORY_IDS_TASK, EXPORT_PRODUCT_SETS_TASK, AMAZON_CARD_IMPORT, IMPORT_ACCEPTED_PRODUCTS_TASK, ADD_ORDER_PRODUCT_FROM_FILE_TASK, EXPORT_ITEM_HISTORY_FILE_TASK, WILDBERRIES_IMPORT_CAMPAIGN_BY_EXCEL_TASK, REMOVE_CLIENT_ORGANIZATION, EBAY_CARD_IMPORT_TASK, PRODUCTS_IMPORT_FROM_ORGANIZATION_TASK, IMPORT_FBO_ORDERS, LAMODA_CARD_IMPORT, UPDATE_WB_PROMOTION_DATA_TASK, IMPORT_RETURNS_REPORT_TASK, UPDATE_PROMOTION_DATA_TASK, RESTORE_CLIENT_ORGANIZATION, LEROY_MERLIN_CARD_IMPORT, YANDEX_MARKET_STOCKS_IMPORT_TASK, WILDBERRIES_IMPORT_NM_REPORT_TASK, ORDER_ANALYTICS_FILE_TASK, CLIENT_DATABASE_MOVE_TASK, FAST_CARD_IMPORT, EXPORT_PRODUCT_CODE, INSALES_CARD_IMPORT_TASK, REMOVE_PRODUCT_VIDEOS_TASK, UPDATE_CARDS_TASK, FIND_UNPROFITABLE_PRODUCTS_TASK, FIND_UNPURCHASED_PRODUCTS_TASK, WALMART_CARD_IMPORT, PRODUCT_GROUPS_TASK, CONTRACTOR_ARTICLE_EXPORT_TASK, CONTRACTOR_ARTICLE_IMPORT_TASK, CURRENCY_CONVERSION_TASK, UPDATE_SUPPLY_PLAN_REPORT_TASK, EXPORT_SUPPLY_PLAN_REPORT_FILE_TASK, CHECK_STOCK_ORDER, PHOTOGRAPHY_EXCEL, PREPARE_FINDIR_DATA_TASK, CARD_SPLITTING_TASK, EXPORT_IMAGE_UPDATES_TEMPLATE_TASK, IMPORT_IMAGE_UPDATES_TASK, PREPARE_PRODUCT_HAND_ON_PULSE_TASK, UPDATE_OZON_AVERAGE_DELIVERY_TIME, UPDATE_COMMISSIONS_TASK, WOOCOMMERCE_CARD_IMPORT, UPDATE_FBS_STOCKS_HISTORY, RETURNS_FILE_TASK, FAST_PRODUCTS_IMPORT_TASK, ANALYZE_PRODUCT_CARDS_TASK, DETMIR_CARD_IMPORT, MATCH_OZON_REALIZATION_REPORT_TASK, MAGNIT_IMPORT_PRODUCTS_TASK, UPDATE_PURCHASE_PRICE_FROM_STOCKS_IN_PROFIT_REPORT_TASK, MOY_SKLAD_FBO_MP_DATES_FIX, PRICE_HISTORY_FILE_TASK, FBM_ORDERS_IMPORT_TASK, UZUM_IMPORT_PRODUCTS_TASK, OPENCART_CARD_IMPORT, CARDS_IMPORT, OZON_CROSSDOCK_TRANSIT_ROUTES_TASK, UNUSED_2, OZON_IMPORT_SALES_FUNNEL_REPORT_TASK, WRITE_OFF_PRODUCTS_FILE_TASK, CLIENT_DATABASE_CREATE_TASK, UPDATE_FBS_LABELS_TASK, REBUILD_PROFIT_REPORT_HOURLY_AGGREGATE_TASK, OZON_IMPORT_CAMPAIGN_TASK, EXPORT_SUPPLY_PLAN_FILE_TASK, IMPORT_SUPPLY_PLAN_FILE_TASK, CREATE_SERVICE_CARDS, WAREHOUSE_ECONOMICS_FILE_TASK, UPDATE_WILDBERRIES_ACQUIRING_RATE_TASK, PRODUCT_SALES_FORECAST_TASK, UPDATE_PRODUCT_CODES_STATUSES_TASK, MARKETPLACE_UPDATE_PRICE_TASK, UZUM_IMPORT_STAT_TASK, CAMPAIGN_STATS_FILE_TASK, OZON_FBO_WORKFLOW_TASK, EXPORT_CERTIFICATE_TEMPLATE_TASK, IMPORT_CERTIFICATES_TASK, REBUILD_LOCAL_ORDER_PROFIT_REPORT_TASK, SHOPIFY_CARD_IMPORT Type.
name string 姓名.
clientId integer · int64 客户身份证.
entityId integer · int64 实体身份证
progress integer · int32 进步.
processedQuantity integer · int32 处理量
organizationId integer · int64 组织身份证.
priority integer · int32 优先考虑.
properties string 房产.
message string 信息.
messageParams string 消息帕拉姆.
createdDate string · date-time 创造日期.
startDate string · date-time 开始日期.
finishDate string · date-time 终结日期.
url string 查看一个URL.
inputFileUrl string 输入文件URL.
retryNumber integer · int32 复试号码.
userId integer · int32 用户身份证
retryDate string · date-time 试一次.
debug boolean 调试.
forcedStart boolean 强迫开始.
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 服务.
lang string Lang.
{
  "id": 1001,
  "status": "CREATED",
  "type": "WILDBERRIES_CREATE_CARD",
  "name": "Example",
  "clientId": 1001,
  "entityId": 1001
}
错误4

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_max_upload_size_exceeded
已超过允许的文件大小

应用逻辑中使用稳定的error_max_upload_size_exceeded代码;localMessage包含上述翻译.

POST

出口证书模板

/api/qualityDocument/exportCertificateTemplate
具有写入的标志

使用POST/api/qualityDocument/exportCertificateTemplate.的出口证书模板

curl --request POST 'https://api.selsup.ru/api/qualityDocument/exportCertificateTemplate' \
  --header 'Authorization: YOUR_API_TOKEN'

成功的反应

200
对象场 TmsTask
字段类型必填描述
id integer · int64 Id.
status stringCREATED, RUNNING, FINISHED, ERROR, RESTARTING, INTERRUPTING, INTERRUPTED, STOPPED, EXCEPTION Status.
type stringWILDBERRIES_CREATE_CARD, NATIONAL_CATALOG_CREATE_CARD, OZON_CREATE_CARD, OZON_CARDS_IMPORT, IMPORT_FBS_ORDERS, UPLOAD_PHOTOGRAPHY, WILDBERRIES_UPDATE_PRICE, WILDBERRIES_CARD_IMPORT, WILDBERRIES_CARD_UPDATE, SELSUP_STOCKS, REFRESH_PHOTOGRAPHY, SUPPLYING_QUANTITY_TASK, EXPORT_PRICE, OZON_UPDATE_PRICE, WILDBERRIES_FILE_TASK, YANDEX_MARKET_CARD_CREATE, OZON_CARD_UPDATE_TASK, OZON_IMPORT_STAT_TASK, WILDBERRIES_PROFIT_STAT_TASK, ALIEXPRESS_CREATE_CARD_TASK, ALIEXPRESS_UPDATE_CARD_TASK, PRICES_IMPORT_TASK, WILDBERRIES_PRICES_TASK, YANDEX_MARKET_CARD_IMPORT, STOCKS_UPDATE, WILDBERRIES_STOCKS_IMPORT_TASK, WILDBERRIES_ORDERS_AND_SALES_TASK, WILDBERRIES_INCOMES_IMPORT_TASK, OZON_STOCKS_IMPORT_TASK, TURNOVER_DOCUMENTS_TASK, INTRODUCE_WMS_ITEMS_TASK, PRODUCTS_FILE_TASK, MODELS_FILE_TASK, UPDATE_PRODUCT_CODES_TASK, INTRODUCE_CODES_TASK, PRODUCTS_IMPORT_TASK, PRICES_FILE_TASK, YANDEX_MARKET_UPDATE_PRICE_TASK, IMPORT_STOCKS_TASK, MOY_SKLAD_EXPORT_ORDERS, MERGE_PRODUCTS_TASK, PRODUCTS_WILDBERRIES_EXCEL_IMPORT_TASK, MOY_SKLAD_CREATE_CARD, IMPORT_FBO_STOCKS_FROM_FILE, CREATE_WMS_ITEMS, MOY_SKLAD_CARDS_IMPORT, PROMOTION_FILE, UNUSED_1, UNUSED, PRODUCT_ANALYTICS_FILE_TASK, PROMOTION_RESET_FILE, MOY_SKLAD_IMPORT_ORDERS, FINANCE_REPORT_FILE_TASK, YML_FILE_EXPORT, PRODUCT_BALANCE_REPORT_FILE_TASK, CURRENT_PRODUCT_BALANCE_FILE_TASK, IMPORT_TRANSACTIONS, MATCH_UNREGISTERED_PROFIT_REPORT_TASK, UPDATE_AVERAGE_SERVICE_EXPENSES_TASK, YANDEX_MARKET_ORDER_IMPORT_STAT_TASK, ABC_REPORT_FILE_TASK, MODEL_CONTRACTORS_IMPORT, MODEL_CONTRACTORS_EXPORT, BANK_TRANSACTION_IMPORT_FILE_TASK, YML_IMPORT_TASK, SALES_DYNAMIC_REPORT_FILE_TASK, UPDATE_FBS_ORDERS, EXPORT_TRANSACTION_IN_EXCEL_FILE_TASK, IMPORT_TRANSACTION_FROM_EXCEL_FILE_TASK, EXPORT_PROFIT_REPORT_FILE_TASK, IMPORT_PROFIT_REPORT_FROM_EXCEL_FILE_TASK, IMPORT_REALIZATION_REPORT_TASK, STOCK_RECONCILIATION, ORDER_REPORT_FILE_TASK, GET_WB_FBO_ORDER_FROM_PROFIT_REPORT_TASK, TO_QUANTITY_STORAGE_METHOD, APPLY_RECONCILIATION, OZON_IMPORT_FBO_ORDERS_TASK, UPDATE_PURCHASE_PRICE_IN_PROFIT_REPORT_TASK, FBS_LABELS, MERGE_PRODUCT_STOCKS, CREATE_ORDER_FROM_FILE, ALIEXPRESS_CARD_IMPORT, PRICE_LIST_IMPORT, WB_STOCK_REPORT_FILE, CONTRACTORS_REPORT_FILE, PRODUCTS_SBER_MEGA_MARKET_EXCEL_IMPORT_TASK, EXPORT_PROBLEMATIC_PRODUCT_REPORT, PLAN_SUPPLY_REPORT_TASK, PLAN_FACT_SALES_REPORT_FILE, IMPORT_PLAN_SALES_FROM_EXCEL_FILE_TASK, EXPORT_PLAN_SALES_EXCEL_FILE_TASK, ORDERS_TO_BUY_FILE_TASK, MERGE_PRICE_ON_OTHER_MP_TASK, MATCH_PRODUCT_LAST_OPERATION_DATE_TASK, PROBLEMATIC_PRODUCT_PRICE_FILE_TASK, CATEGORIES_IMPORT_EXCEL_TASK, AVITO_CARD_IMPORT, UPDATE_OLD_WB_ORDER_STATUSES_TASK, PRESTA_SHOP_IMPORT_TASK, PRODUCTS_AVITO_EXCEL_IMPORT_TASK, FBO_STOCK_RECONCILIATION_TASK, APPLY_FBO_RECONCILIATION_TASK, EXPORT_REPRICE_PRODUCT_CONFIG_TASK, IMPORT_REPRICE_PRODUCT_CONFIG_TASK, OZON_CASH_FLOW_STATEMENT_IMPORT_TASK, IMPORT_PROMOTION_STRATEGY_FILE_TASK, UPDATE_ORDER_DELIVERY_INFO_TASK, BILLING_OPERATION_TASK, SET_PURCHASE_PERCENT_TASK, REMOVE_PRODUCT_IMAGES_TASK, STRUCTURE_TURNOVER_TASK, OZON_NEW_UPDATE_PRICE, REPLACE_PRODUCT_IMAGE_TASK, UPDATE_OZON_PROMOTION_DATA_TASK, WILDBERRIES_IMPORT_CAMPAIGN_TASK, WILDBERRIES_STORAGE_REPORT_TASK, WEBASYST_LINK_ARTICLE_TASK, DELIVERY_SERVICE_LABELS, HAND_ON_PULSE_FILE_TASK, ITEMS_INCOME_EXCEL_TASK, UPDATE_SETS_EXCEL_TASK, DELETE_PROFIT_REPORTS_BY_FILE_HISTORY_IDS_TASK, EXPORT_PRODUCT_SETS_TASK, AMAZON_CARD_IMPORT, IMPORT_ACCEPTED_PRODUCTS_TASK, ADD_ORDER_PRODUCT_FROM_FILE_TASK, EXPORT_ITEM_HISTORY_FILE_TASK, WILDBERRIES_IMPORT_CAMPAIGN_BY_EXCEL_TASK, REMOVE_CLIENT_ORGANIZATION, EBAY_CARD_IMPORT_TASK, PRODUCTS_IMPORT_FROM_ORGANIZATION_TASK, IMPORT_FBO_ORDERS, LAMODA_CARD_IMPORT, UPDATE_WB_PROMOTION_DATA_TASK, IMPORT_RETURNS_REPORT_TASK, UPDATE_PROMOTION_DATA_TASK, RESTORE_CLIENT_ORGANIZATION, LEROY_MERLIN_CARD_IMPORT, YANDEX_MARKET_STOCKS_IMPORT_TASK, WILDBERRIES_IMPORT_NM_REPORT_TASK, ORDER_ANALYTICS_FILE_TASK, CLIENT_DATABASE_MOVE_TASK, FAST_CARD_IMPORT, EXPORT_PRODUCT_CODE, INSALES_CARD_IMPORT_TASK, REMOVE_PRODUCT_VIDEOS_TASK, UPDATE_CARDS_TASK, FIND_UNPROFITABLE_PRODUCTS_TASK, FIND_UNPURCHASED_PRODUCTS_TASK, WALMART_CARD_IMPORT, PRODUCT_GROUPS_TASK, CONTRACTOR_ARTICLE_EXPORT_TASK, CONTRACTOR_ARTICLE_IMPORT_TASK, CURRENCY_CONVERSION_TASK, UPDATE_SUPPLY_PLAN_REPORT_TASK, EXPORT_SUPPLY_PLAN_REPORT_FILE_TASK, CHECK_STOCK_ORDER, PHOTOGRAPHY_EXCEL, PREPARE_FINDIR_DATA_TASK, CARD_SPLITTING_TASK, EXPORT_IMAGE_UPDATES_TEMPLATE_TASK, IMPORT_IMAGE_UPDATES_TASK, PREPARE_PRODUCT_HAND_ON_PULSE_TASK, UPDATE_OZON_AVERAGE_DELIVERY_TIME, UPDATE_COMMISSIONS_TASK, WOOCOMMERCE_CARD_IMPORT, UPDATE_FBS_STOCKS_HISTORY, RETURNS_FILE_TASK, FAST_PRODUCTS_IMPORT_TASK, ANALYZE_PRODUCT_CARDS_TASK, DETMIR_CARD_IMPORT, MATCH_OZON_REALIZATION_REPORT_TASK, MAGNIT_IMPORT_PRODUCTS_TASK, UPDATE_PURCHASE_PRICE_FROM_STOCKS_IN_PROFIT_REPORT_TASK, MOY_SKLAD_FBO_MP_DATES_FIX, PRICE_HISTORY_FILE_TASK, FBM_ORDERS_IMPORT_TASK, UZUM_IMPORT_PRODUCTS_TASK, OPENCART_CARD_IMPORT, CARDS_IMPORT, OZON_CROSSDOCK_TRANSIT_ROUTES_TASK, UNUSED_2, OZON_IMPORT_SALES_FUNNEL_REPORT_TASK, WRITE_OFF_PRODUCTS_FILE_TASK, CLIENT_DATABASE_CREATE_TASK, UPDATE_FBS_LABELS_TASK, REBUILD_PROFIT_REPORT_HOURLY_AGGREGATE_TASK, OZON_IMPORT_CAMPAIGN_TASK, EXPORT_SUPPLY_PLAN_FILE_TASK, IMPORT_SUPPLY_PLAN_FILE_TASK, CREATE_SERVICE_CARDS, WAREHOUSE_ECONOMICS_FILE_TASK, UPDATE_WILDBERRIES_ACQUIRING_RATE_TASK, PRODUCT_SALES_FORECAST_TASK, UPDATE_PRODUCT_CODES_STATUSES_TASK, MARKETPLACE_UPDATE_PRICE_TASK, UZUM_IMPORT_STAT_TASK, CAMPAIGN_STATS_FILE_TASK, OZON_FBO_WORKFLOW_TASK, EXPORT_CERTIFICATE_TEMPLATE_TASK, IMPORT_CERTIFICATES_TASK, REBUILD_LOCAL_ORDER_PROFIT_REPORT_TASK, SHOPIFY_CARD_IMPORT Type.
name string 姓名.
clientId integer · int64 客户身份证.
entityId integer · int64 实体身份证
progress integer · int32 进步.
processedQuantity integer · int32 处理量
organizationId integer · int64 组织身份证.
priority integer · int32 优先考虑.
properties string 房产.
message string 信息.
messageParams string 消息帕拉姆.
createdDate string · date-time 创造日期.
startDate string · date-time 开始日期.
finishDate string · date-time 终结日期.
url string 查看一个URL.
inputFileUrl string 输入文件URL.
retryNumber integer · int32 复试号码.
userId integer · int32 用户身份证
retryDate string · date-time 试一次.
debug boolean 调试.
forcedStart boolean 强迫开始.
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 服务.
lang string Lang.
{
  "id": 1001,
  "status": "CREATED",
  "type": "WILDBERRIES_CREATE_CARD",
  "name": "Example",
  "clientId": 1001,
  "entityId": 1001
}
错误3

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

POST

删除质量文件图像

/api/qualityDocument/deleteQualityDocumentImage
具有写入的标志

使用 POST /api/qualityDocument/deleteQualityDocumentImage.删除质量文件图像

查询参数

字段类型必填描述
imageId integer · int64 照片的身份.
curl --request POST 'https://api.selsup.ru/api/qualityDocument/deleteQualityDocumentImage?imageId=1001' \
  --header 'Authorization: YOUR_API_TOKEN'

成功的反应

200

答案没有身体.

错误4

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

POST

创建质量文件

/api/qualityDocument/createQualityDocument
具有写入的标志

使用 POST 创建质量文件

要求机构

application/json
对象场QualityDocument
字段类型必填描述
id integer · int64 Id.
name string 姓名.
type stringDECLARATION, CERTIFICATE, REFUSAL, REGISTRATION Type.
number string 号码.
numberNormalized string 号码正常化.
clientId integer · int64 客户身份证.
versionId integer · int64 版本ID.
createdUser string 创建用户.
startDate string · date 开始日期.
expireDate string · date 截止日期.
data QualityDocumentData[] 数据.
阵列项结构 QualityDocumentData
字段类型必填描述
id integer · int64 Id.
documentId integer · int64 文件身份证.
productModelId integer · int64 产品模型身份证
brand Brand 品牌.
对象场 Brand
字段类型必填描述
brandId integer · int32 品牌身份证.
name string 姓名.
clientId integer · int64 客户身份证.
logoUrl string 标志 URL
logoSize integer · int32 标志尺寸
logoWidth integer · int32 标志宽度
logoHeight integer · int32 标志高度.
deleted boolean 删除了.
ozonName string 子名字
ozonId integer · int64 气标识.
oneCId string 一个公告.
brandId integer · int32 品牌身份证.
category Category 类别.
对象场 Category
字段类型必填描述
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 产品数量
categoryId integer · int32 类别的ID.
clientId integer · int64 客户身份证.
images QualityDocumentImage[] 照片.
阵列项结构 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
curl --request POST 'https://api.selsup.ru/api/qualityDocument/createQualityDocument' \
  --header 'Authorization: YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1001,
  "name": "Example",
  "type": "DECLARATION",
  "number": "string",
  "numberNormalized": "string",
  "clientId": 1001
}'

成功的反应

200
对象场 QualityDocument
字段类型必填描述
id integer · int64 Id.
name string 姓名.
type stringDECLARATION, CERTIFICATE, REFUSAL, REGISTRATION Type.
number string 号码.
numberNormalized string 号码正常化.
clientId integer · int64 客户身份证.
versionId integer · int64 版本ID.
createdUser string 创建用户.
startDate string · date 开始日期.
expireDate string · date 截止日期.
data QualityDocumentData[] 数据.
阵列项结构 QualityDocumentData
字段类型必填描述
id integer · int64 Id.
documentId integer · int64 文件身份证.
productModelId integer · int64 产品模型身份证
brand Brand 品牌.
对象场 Brand
字段类型必填描述
brandId integer · int32 品牌身份证.
name string 姓名.
clientId integer · int64 客户身份证.
logoUrl string 标志 URL
logoSize integer · int32 标志尺寸
logoWidth integer · int32 标志宽度
logoHeight integer · int32 标志高度.
deleted boolean 删除了.
ozonName string 子名字
ozonId integer · int64 气标识.
oneCId string 一个公告.
brandId integer · int32 品牌身份证.
category Category 类别.
对象场 Category
字段类型必填描述
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 产品数量
categoryId integer · int32 类别的ID.
clientId integer · int64 客户身份证.
images QualityDocumentImage[] 照片.
阵列项结构 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
{
  "id": 1001,
  "name": "Example",
  "type": "DECLARATION",
  "number": "string",
  "numberNormalized": "string",
  "clientId": 1001
}
错误6

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_create_quality_document
无法创建质量文档

应用逻辑中使用稳定的error_create_quality_document代码;localMessage包含上述翻译.

400error_document_already_exist
已有一个具有此名称的文件存在

应用逻辑中使用稳定的error_document_already_exist代码;localMessage包含上述翻译.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

GET

根据模型获得质量文件

/api/qualityDocument/getQualityDocumentByModel
读取访问的标志

使用 GET /api/qualityDocument/getQualityDocumentByModel. 获取按模型的质量文件

查询参数

字段类型必填描述
modelId integer · int64 模型身份证.
curl --request GET 'https://api.selsup.ru/api/qualityDocument/getQualityDocumentByModel?modelId=1001' \
  --header 'Authorization: YOUR_API_TOKEN'

成功的反应

200
阵列项结构 QualityDocument[]
字段类型必填描述
id integer · int64 Id.
name string 姓名.
type stringDECLARATION, CERTIFICATE, REFUSAL, REGISTRATION Type.
number string 号码.
numberNormalized string 号码正常化.
clientId integer · int64 客户身份证.
versionId integer · int64 版本ID.
createdUser string 创建用户.
startDate string · date 开始日期.
expireDate string · date 截止日期.
data QualityDocumentData[] 数据.
阵列项结构 QualityDocumentData
字段类型必填描述
id integer · int64 Id.
documentId integer · int64 文件身份证.
productModelId integer · int64 产品模型身份证
brand Brand 品牌.
对象场 Brand
字段类型必填描述
brandId integer · int32 品牌身份证.
name string 姓名.
clientId integer · int64 客户身份证.
logoUrl string 标志 URL
logoSize integer · int32 标志尺寸
logoWidth integer · int32 标志宽度
logoHeight integer · int32 标志高度.
deleted boolean 删除了.
ozonName string 子名字
ozonId integer · int64 气标识.
oneCId string 一个公告.
brandId integer · int32 品牌身份证.
category Category 类别.
对象场 Category
字段类型必填描述
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 产品数量
categoryId integer · int32 类别的ID.
clientId integer · int64 客户身份证.
images QualityDocumentImage[] 照片.
阵列项结构 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
[
  "string"
]
错误4

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

GET

找到质量文件

/api/qualityDocument/findQualityDocument
读取访问的标志

使用 GET 找到质量文件

查询参数

字段类型必填描述
brandId integer · int32 品牌身份证.
categoryId integer · int32 类别的ID.
query string 问问.
limit integer · int32 限制.
page integer · int32 页面.
count boolean 伯爵.
sortBy stringDOCUMENT_ID, NAME, TYPE, NUMBER, START_DATE, EXPIRE_DATE 排序了.
ascending boolean 升高.
curl --request GET 'https://api.selsup.ru/api/qualityDocument/findQualityDocument?limit=50&page=1' \
  --header 'Authorization: YOUR_API_TOKEN'

成功的反应

200
对象场 FindResponseQualityDocument
字段类型必填描述
rows QualityDocument[] 排列.
阵列项结构 QualityDocument
字段类型必填描述
id integer · int64 Id.
name string 姓名.
type stringDECLARATION, CERTIFICATE, REFUSAL, REGISTRATION Type.
number string 号码.
numberNormalized string 号码正常化.
clientId integer · int64 客户身份证.
versionId integer · int64 版本ID.
createdUser string 创建用户.
startDate string · date 开始日期.
expireDate string · date 截止日期.
data QualityDocumentData[] 数据.
阵列项结构 QualityDocumentData
字段类型必填描述
id integer · int64 Id.
documentId integer · int64 文件身份证.
productModelId integer · int64 产品模型身份证
brand Brand 品牌.
brandId integer · int32 品牌身份证.
category Category 类别.
categoryId integer · int32 类别的ID.
clientId integer · int64 客户身份证.
images QualityDocumentImage[] 照片.
阵列项结构 QualityDocumentImage
字段类型必填描述
id integer · int64 Id.
url string 查看一个URL.
position integer · int32 位置.
documentId integer · int64 文件身份证.
clientId integer · int64 客户身份证.
{
  "rows": "string"
}
错误4

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

400error_no_client
没有找到该客户或已被删除。写信给支持部门

应用逻辑中使用稳定的error_no_client代码;localMessage包含上述翻译.

GET

查看身份证

/api/quality/document/{documentId}
读取访问的标志

使用 GET /api/quality/document/{documentId}. 获取ID

路径参数

字段类型必填描述
documentId integer · int64 文件身份证.
curl --request GET 'https://api.selsup.ru/api/quality/document/1001' \
  --header 'Authorization: YOUR_API_TOKEN'

成功的反应

200

答案没有身体.

错误3

应用错误通常以 JSON, error,localMessage和 params为回归. 如何返回应用错误 ↑

401auth_required
需要进行认证

Authorization 缺失,空,或包含无效的代币.

400error_access_denied
拒绝访问

代币存在,但它的作用不能执行这个操作.

500error_unknown
发生了一个未知的错误。如果该问题再次发生,请联系支持

节省请求时间和联系支持;不要盲目重新尝试突变.

Authorization

测试请求的标志

代币存储在本浏览器的本地存储库中,只会在要求的Authorization头上发送到 api.selsup.ru.

试一试

实际请求参数

现场API响应

发送请求查看SelSup的响应.