用户的商店列表

方法适用于模式:FBY, FBS, 快递DBS.

如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一

对于Api密钥令牌: 返回为其颁发令牌的帐户中的商店列表。 您无法获得仅子代理商店的列表。

对于OAuth令牌: 返回拥有请求中使用的授权令牌的用户有权访问的存储列表。 对于代理用户,该列表由子代理商店组成。

**⚙️ 限制:**每小时1,000个请求

Request

GET

https://api.partner.market.yandex.ru/v2/campaigns

Query parameters

Name

Description

page

Type: integer<int32>

如果方法有 page_token

结果页的编号。

与参数一起使用 pageSize.

page 如果指定,则忽略 page_tokenlimit.

Default: 1

Max value: 10000

pageSize

Type: integer<int32>

页面大小。

与参数一起使用 page.

pageSize 如果指定,则忽略 page_tokenlimit.

Responses

200 OK

用户的商店。

Body

application/json
{
    "campaigns": [
        {
            "domain": "string",
            "id": 0,
            "clientId": 0,
            "business": {
                "id": 0,
                "name": "string"
            },
            "placementType": "FBS",
            "apiAvailability": "AVAILABLE"
        }
    ],
    "pager": {
        "total": 0,
        "from": 0,
        "to": 0,
        "currentPage": 0,
        "pagesCount": 0,
        "pageSize": 0
    }
}

Name

Description

campaigns*

Type: CampaignDTO[]

每个商店的信息列表。
有关商店的信息。

pager

Type: FlippingPagerDTO

分页的模型。

CampaignDTO

有关商店的信息。

Name

Description

apiAvailability

Type: ApiAvailabilityStatusType

使用API的能力:

  • AVAILABLE -API方法可用于执行请求。
  • DISABLED_BY_INACTIVITY -由于以下原因,API方法不可用 商店或橱柜的不活动.

Enum: AVAILABLE, DISABLED_BY_INACTIVITY

business

Type: BusinessDTO

柜的信息。

clientId

Type: integer<int64>

付款人在Yandex中的ID。平衡。

domain

Type: string

这家商店的名字。

id

Type: integer<int64>

活动ID。

您也可以在市场上的卖家帐户中找到它。 点击您的企业名称并转到该页面:

  • 模块和 API→区块 向Yandex发送数据。街市.
  • 查询日志 →块中的下拉列表 显示日志.

,不要发送商店的ID,而不是,这是在卖方的帐户在市场上的商店名称旁边和一些报告。

placementType

Type: PlacementType

商店使用的模型:

  • FBS -FBS或快递。
  • FBY -FBY。
  • DBS -DBS。

Enum: FBS, FBY, DBS, LAAS

FlippingPagerDTO

分页的模型。

Name

Description

currentPage

Type: integer<int32>

当前页面。

from

Type: integer<int32>

页上找到的元素的初始编号。

pageSize

Type: integer<int32>

页面大小。

pagesCount

Type: integer<int32>

的总页数。

to

Type: integer<int32>

页上找到的元素的最终编号。

total

Type: integer<int32>

总共找到了多少件物品。

ApiAvailabilityStatusType

使用API的能力:

  • AVAILABLE -API方法可用于执行请求。
  • DISABLED_BY_INACTIVITY -由于以下原因,API方法不可用 商店或橱柜的不活动.

Type

Description

ApiAvailabilityStatusType

Enum: AVAILABLE, DISABLED_BY_INACTIVITY

BusinessDTO

柜的信息。

Name

Description

id

Type: integer<int64>

内阁ID。

name

Type: string

企业名称。

PlacementType

商店使用的模型:

  • FBS -FBS或快递。
  • FBY -FBY。
  • DBS -DBS。

Type

Description

PlacementType

Enum: FBS, FBY, DBS, LAAS

400 Bad Request

请求包含不正确的数据。 有关错误的更多信息

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: ApiErrorDTO[]

错误列表。
一般错误格式。

Min items: 1

status

Type: ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Enum: OK, ERROR

ApiErrorDTO

一般错误格式。

Name

Description

code*

Type: string

的错误代码。

message

Type: string

错误的描述。

ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Type

Description

ApiResponseStatusType

Enum: OK, ERROR

401 Unauthorized

请求中未指定授权数据。 有关错误的更多信息

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: ApiErrorDTO[]

错误列表。
一般错误格式。

Min items: 1

status

Type: ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Enum: OK, ERROR

403 Forbidden

授权数据不正确或禁止访问资源。 有关错误的更多信息

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: ApiErrorDTO[]

错误列表。
一般错误格式。

Min items: 1

status

Type: ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Enum: OK, ERROR

404 Not Found

找不到请求的资源。 有关错误的更多信息

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: ApiErrorDTO[]

错误列表。
一般错误格式。

Min items: 1

status

Type: ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Enum: OK, ERROR

420 Method Failure

已超出资源访问限制。 有关错误的更多信息

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: ApiErrorDTO[]

错误列表。
一般错误格式。

Min items: 1

status

Type: ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Enum: OK, ERROR

500 Internal Server Error

Yandex的内部错误。 市场。 有关错误的更多信息

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: ApiErrorDTO[]

错误列表。
一般错误格式。

Min items: 1

status

Type: ApiResponseStatusType

响应的类型。 可能的值:

  • OK -没有错误。
  • ERROR -处理请求时发生错误。

Enum: OK, ERROR

No longer supported, please use an alternative and newer version.

Магазин отключен, так как не размещал товары на витрине больше 90 дней.

В кабинете нет ни одного активного магазина.

上一篇
下一篇