Specification of What Language You Want to Get Localized Fields

When submitting a GET request to the SAP Business Network Supplier Profile API you can specify in what language you want to get localized fields. You can request localized fields for any language that is supported on SAP Business Network.

To request localized fields as part of a GET request, you must use the Accept-Language header key as part of your API call and provide the language or language/country identifier for the localized fields you want to return in the Value field.

You can provide just the language or the language/country identifier in the Value field for Accept-Language. For example, you would enter "de" to return field names that are localized to German. Or, if you wanted to look for fields in Austrian German, you could enter "de-AT". The system will look for fields localized to "de-AT". If there are none, it will return fields localized for the default German ("de"). If there are no localized fields for the requested language, or if the Accept-Language header key is not selected, the API returns fields in English (en-US) only.

The API returns the localized value for each field along with the language identifier within the "name" variable. The example below shows a localized field returned in German, where "de" was entered as the value for the Accept-Language header key in the GET call to the API.

"commodities": {
	"domain": "UNSPSCvInfo",
	"items": [
		{
			"code": 432320,
			"name": {
				"de": "Computerspiel-oder Unterhaltungssoftware"
			}
		}

The "municipality", "city" and "state" attributes do not support localized/code based value lists for all countries. For example:
  • "city" and "municipality" list-based fields with code and localization (if available) are only used for "fromAddresses" (which is the Additional Company Addresses field in the user interface) located in Brazil

  • "state" codes are not supported for countries/regions such as Aruba or Netherlands Antilles. To find out which countries/regions support localized/code based value lists on SAP Business Network, see State and Country Codes in the cXML solutions guide.

Address example:

"address": {
	"street1": "3410 Hillview Ave",
	"street2": null,
	"street3": null,
	"street4": null,
	"postalCode": "94304-1395",
	"municipality": {
		"name": null,
		"municipalityCode": null
	},
	"city": {
		"name": {
			"": "Palo Alto"
		},
		"cityCode": null
	},
	"state": {
		"name": {
			"en": "California"
		},
		"isoStateCode": "US-CA"
	},
	"country": {
		"name": {
			"en": "United States"
		},
		"isoCountryCode": "US"
},

Example showing "city" and "state" locale codes not supported for Aruba:

"address": {
	"street1": "Address 1",
	"street2": null,
	"street3": null,
	"street4": null,
	"postalCode": "99999-999",
	"municipality": {
		"name": null,
		"municipalityCode": null
	},
	"city": {
		"name": {
			"": "Babijn"
		},
		"cityCode": null
	},
	"state": {
		"name": {
			"": "Babijn"
		},
		"isoStateCode": null
	},
	"country": {
		"name": {
			"en": "Aruba"
		},
		"isoCountryCode": "AW"
	}
}