listCurrencies

get

/ccadmin/v1/currencies

List Currencies. Get a list of currencies and the currently selected currency.

Request

Supported Media Types
  • application/json
Query Parameters
includeDeleted
Type: boolean
If true, include soft deleted items in results. If false or not present, exclude them.
limit
Type: integer
The number of items to return.
offset
Type: integer
Index of the first element to return.
sort
Type: string
Sorting criteria.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listCurrencies_response
Nested Schema : items
Type: array
List of currencies
Nested Schema : selectedCurrency
Type: object
Selected currency
Nested Schema : sort
Type: array
Sorting criteria.
Nested Schema : items
Type: object
Nested Schema : items
Type: object
Example application/json

{
    "total":43,
    "totalResults":43,
    "offset":3,
    "selectedCurrency":{
        "currencyType":null,
        "symbol":"$",
        "deleted":false,
        "displayName":"US Dollar",
        "repositoryId":"en_US",
        "fractionalDigits":2,
        "currencyCode":"USD",
        "numericCode":"840"
    },
    "limit":3,
    "sort":{
        "property":"currencyCode",
        "order":"asc"
    },
    "items":{
        "currencyType":null,
        "symbol":"CHF",
        "deleted":false,
        "displayName":"Swiss Franc",
        "repositoryId":"fr_CH",
        "fractionalDigits":2,
        "currencyCode":"CHF",
        "numericCode":"756"
    }
}
Default Response
The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |80005|The currency for the price list locale was not found.| |80009|There was an error fetching the currency list.|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "total": 43,
  "totalResults": 43,
  "offset": 3,
  "selectedCurrency": {
    "currencyType": null,
    "symbol": "$",
    "deleted": false,
    "displayName": "US Dollar",
    "repositoryId": "en_US",
    "fractionalDigits": 2,
    "currencyCode": "USD",
    "numericCode": "840"
  },
  "limit": 3,
  "sort": {
    "property": "currencyCode",
    "order": "asc"
  },
  "items": {
    "currencyType": null,
    "symbol": "CHF",
    "deleted": false,
    "displayName": "Swiss Franc",
    "repositoryId": "fr_CH",
    "fractionalDigits": 2,
    "currencyCode": "CHF",
    "numericCode": "756"
  }
}