listSelectedBillingCountries

get

/ccadmin/v1/merchant/billingCountries

List Selected Billing Countries. Lists the available billing countries

Request

Supported Media Types
  • application/json
Query Parameters
siteId
Type: string
Site ID of the site
sortByCode
Type: boolean
Sort by Code: true or false
sortByOrder
Type: string
Sort Order: asc or desc

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listSelectedBillingCountries_response
Nested Schema : countriesList
Type: array
Regions List for all countries.
Nested Schema : items
Type: object
Nested Schema : regions
Type: array
Regions list.
Nested Schema : items
Type: object
Example application/json

[
    {
        "countryCode":"CA",
        "displayName":"Canada",
        "repositoryId":"CA"
    },
    {
        "countryCode":"US",
        "displayName":"United States",
        "repositoryId":"US"
    }
]
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| |------------------|------------------| |30011|Site id {0} does not exist.|
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:

[
  {
    "countryCode": "CA",
    "displayName": "Canada",
    "repositoryId": "CA"
  },
  {
    "countryCode": "US",
    "displayName": "United States",
    "repositoryId": "US"
  }
]