Skip to main content

GET/marketplace/{marketplace_id}/get_currencies

This method returns the default currency used by the eBay marketplace specified in the request. This is the currency that the seller should use when providing price data for this marketplace through listing APIs.

Input

Resource URI

GET https://api.ebay.com/sell/metadata/v1/marketplace/{marketplace_id}/get_currencies

This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com root URI with api.sandbox.ebay.com

URI parameters

ParameterTypeDescription
marketplace_idstringThis path parameter specifies the eBay marketplace for which currency information is retrieved.

See the MarketplaceIdEnum type for a list of supported eBay marketplace ID values.

Occurrence: Required

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.

HeaderTypeDescription
Accept-LanguagestringThis header is used to indicate the natural language and locale for the response and is used when targeting a specific locale of a marketplace that supports multiple locales.

For the eBay Belgium and eBay Canada marketplaces, make sure to add this header as required. For example:
  • When targeting the French locale of the Belgium marketplace, pass in fr-BE to specify this. If this locale is not specified, the language will default to Dutch.
  • When targeting the French locale of the Canadian marketplace, pass in fr-CA to specify this. If this locale is not specified, the language will default to English.

Occurrence: Conditional

OAuth scope

This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
defaultCurrencyCurrency

This field specifies the default currency used by the marketplace.

Occurrence: Always

defaultCurrency.codeCurrencyCodeEnum

The three-letter ISO 4217 code returned.

Restriction: Only the currency of the marketplace is supported. Examples: on the US marketplace, the only currency supported is the United States dollar, USD; on the Canadian marketplace, the only currency supported is the Canadian dollar, CAD.

Occurrence: Always

defaultCurrency.descriptionstring

The description of the returned three-letter code. For example, if the code is USD, the description returned would be US Dollar.

Occurrence: Always

marketplaceIdMarketplaceIdEnum

The ID of the eBay marketplace to which the default currency applies.

Occurrence: Always

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
200Success
204No Content
400Bad Request
404Not Found
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
46000API_METADATAAPPLICATIONThere was a problem with an eBay internal system or process.Contact eBay developer support for assistance.
46001API_METADATAREQUESTThe specified marketplace ID was not found.

Warnings

This call has no warnings.

Samples

New to making API calls? Please see Making a Call.

Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.

Sample 1: Get the eBay default currency for a specified marketplace

This example retrieves the default currency for a specified eBay marketplace. It specifically targets the Great Britain (United Kingdom) marketplace and returns both the ISO 4217 three-letter currency code of the eBay default currency for that marketplace and the description associated with the code.

Input

This method does not use a request payload; instead, it specifies the marketplace through the path parameter marketplace_id using EBAY_GB as the value.

GEThttps://api.ebay.com/sell/metadata/v1/marketplace/EBAY_GB/get_currencies

Output

If the call is successful, the response body contains the default currency for the specified marketplace.

Sample 2: Target a specific locale of a marketplace that supports multiple locales

This example retrieves the eBay default currency for the Canadian marketplace targeting the French locale. Specifically, this sample returns the ISO 4217 three-letter currency code of the eBay default currency for the Canadian marketplace and the description of the returned code in French.

Input

This method does not use a request payload; instead, it specifies the marketplace using the path parameter marketplace_id with the value EBAY_CA. Additionally, it targets the French locale of the Canadian marketplace by adding fr-CA as an Accept-Language request header. See HTTP request headers for details.

GEThttps://api.ebay.com/sell/metadata/v1/marketplace/EBAY_CA/get_currencies

Output

If the call is successful, the response body contains the default currency for the specified marketplace targeting the French locale.