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
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
Parameter | Type | Description |
---|---|---|
marketplace_id | string | This 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.
Header | Type | Description |
---|---|---|
Accept-Language | string | This 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:
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/field | Type | Description |
---|---|---|
defaultCurrency | Currency | This field specifies the default currency used by the marketplace. Occurrence: Always |
defaultCurrency.code | CurrencyCodeEnum | The three-letter ISO 4217 code returned. Occurrence: Always |
defaultCurrency.description | string | The description of the returned three-letter code. For example, if the code is Occurrence: Always |
marketplaceId | MarketplaceIdEnum | 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.
Status | Meaning |
---|---|
200 | Success |
204 | No Content |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |
Error codes
For more on errors, plus the codes of other common errors, see Handling errors.
Code | Domain | Category | Meaning |
---|---|---|---|
46000 | API_METADATA | APPLICATION | There was a problem with an eBay internal system or process.Contact eBay developer support for assistance. |
46001 | API_METADATA | REQUEST | The 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.