有效国家代码列表

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

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

返回具有其代码格式的国家/地区列表 ISO 3166-1 alpha-2.

制造业国家 countryCode 当从国外销售商品进行业务时,这将是必要的。 指示手册

**⚙️ 限制:**每小时100个请求

Request

POST

https://api.partner.market.yandex.ru/v2/regions/countries

Responses

200 OK

格式为其代码的国家/地区列表 ISO 3166-1 alpha-2.

Body

application/json
{
    "countries": [
        {
            "region": {
                "id": 0,
                "name": "string",
                "type": "OTHER"
            },
            "countryCode": "RU"
        }
    ]
}

Name

Description

countries*

Type: CountryDTO[]

格式为其代码的国家/地区列表 ISO 3166-1 alpha-2.
格式的国家及其代码 ISO 3166-1 alpha-2.

CountryDTO

格式的国家及其代码 ISO 3166-1 alpha-2.

Name

Description

countryCode*

Type: string

生产国采用ISO3166-1alpha-2格式。 如何获得

Example: RU

Min length: 2

Max length: 2

Pattern: ^[A-Z]{2}$

region*

Type: RegionDTO

的输送区域。

RegionDTO

的输送区域。

Name

Description

id*

Type: integer<int64>

区域的ID。

name*

Type: string

区域的名称。

type*

Type: RegionType

区域的类型。

可能的值:

  • CITY_DISTRICT -城市的面积。

  • CITY -一个大城市。

  • CONTINENT -大陆。

  • COUNTRY_DISTRICT -区域。

  • COUNTRY -国家。

  • REGION -地区。

  • REPUBLIC_AREA -联邦主体区。

  • REPUBLIC -联邦的主题。

  • SUBWAY_STATION -地铁站。

  • VILLAGE -城市。

  • OTHER -未知区域。

Enum: OTHER, CONTINENT, REGION, COUNTRY, COUNTRY_DISTRICT, REPUBLIC, CITY, VILLAGE, CITY_DISTRICT, SUBWAY_STATION, REPUBLIC_AREA

parent

Type: RegionDTO

的输送区域。

RegionType

区域的类型。

可能的值:

  • CITY_DISTRICT -城市的面积。

  • CITY -一个大城市。

  • CONTINENT -大陆。

  • COUNTRY_DISTRICT -区域。

  • COUNTRY -国家。

  • REGION -地区。

  • REPUBLIC_AREA -联邦主体区。

  • REPUBLIC -联邦的主题。

  • SUBWAY_STATION -地铁站。

  • VILLAGE -城市。

  • OTHER -未知区域。

Type

Description

RegionType

Enum: OTHER, CONTINENT, REGION, COUNTRY, COUNTRY_DISTRICT, REPUBLIC, CITY, VILLAGE, CITY_DISTRICT, SUBWAY_STATION, REPUBLIC_AREA

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

ApiErrorDTO

一般错误格式。

Name

Description

code*

Type: string

的错误代码。

message

Type: string

错误的描述。

ApiResponseStatusType

响应的类型。 可能的值:

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

Type

Description

ApiResponseStatusType

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.