合作伙伴中心 API 提供的国家/地区信息资源

适用于:合作伙伴中心 | 由世纪互联运营的合作伙伴中心 | Microsoft Cloud for US Government 合作伙伴中心

以下资源是国家/地区的描述性元数据。

CountryInformation

properties 类型 说明
ExtensionData 字符串 扩展数据。
Iso2Code 字符串 ISO-2 代码。
Iso3Code 字符串 ISO-3 代码。
DefaultCulture 字符串 默认区域性。
IsStateRequired boolean 指示是否需要州/省。
SupportedStatesList 字符串数组 如果需要某个州/省,则返回该国家/地区的完整列表。
SupportedLanguagesList 字符串数组 支持的语言列表。
SupportedCulturesList 字符串数组 支持的区域性列表。
IsPostalCodeRequired boolean 指示是否需要邮政编码或邮政编码。
PostalCodeRegex 字符串 定义 ZIP/邮政编码的正则表达式。
IsCityRequired boolean 指示是否需要城市。
IsVatIdSupported boolean 指示是否需要 VAT ID。
TaxIdFormat 字符串 税务 ID 格式。
TaxIdSample 字符串 税务 ID 示例。
VatIdRegex 字符串 税务 ID 正则表达式。
PhoneNumberRegex 字符串 电话号码正则表达式。
IsRegistrationNumberSupported boolean 指示是否支持注册号。
IsTaxIdSupported boolean 指示是否支持税务 ID。 这不同于 IsVatIdSupported。
ResellerAgreementRegion 字符串 经销商协议区域。
GeographicRegion 字符串 地理区域。
CountryCallingCodesList 字符串数组 国家/地区支持的呼叫代码。
属性 ResourceAttributes 对应于 CountryInformation 资源的元数据属性。

CountryValidationRules

描述国家/地区的地址格式规则。

properties 类型 说明
Iso2Code 字符串 ISO-2 代码。
DefaultCulture 字符串 默认区域性。
IsStateRequired boolean 指示是否需要州/省。
SupportedStatesList 字符串数组 如果需要某个州/省,则返回该国家/地区的完整列表。
SupportedLanguagesList 字符串数组 支持的语言列表。
SupportedCulturesList 字符串数组 支持的区域性列表。
IsPostalCodeRequired boolean 指示是否需要邮政编码或邮政编码。
PostalCodeRegex 字符串 定义 ZIP/邮政编码的正则表达式。
IsCityRequired boolean 指示是否需要城市。
IsVatIdSupported boolean 指示是否需要 VAT ID。
TaxIdFormat 字符串 税务 ID 格式。
TaxIdSample 字符串 税务 ID 示例。
VatIdRegex 字符串 税务 ID 正则表达式。
PhoneNumberRegex 字符串 电话号码正则表达式。
IsTaxIdSupported boolean 指示是否支持税务 ID。 此属性不同于 IsVatIdSupported。
IsTaxIdOptional boolean 指示税务 ID 是否为可选 ID。
CountryCallingCodesList 字符串数组 国家/地区支持的呼叫代码。
属性 ResourceAttributes 对应于 CountryInformation 资源的元数据属性。