updateSelectedBillingCountries

put

/ccadmin/v1/merchant/billingCountries

Update Selected Billing Countries. Updates the available billing countries

Request

Supported Media Types
  • application/json
Body Parameter
Root Schema : updateSelectedBillingCountries_request
Nested Schema : billingCountryRepositoryId
Type: array
Repository ID of the Billing Country

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateSelectedBillingCountries_response
Nested Schema : items
Type: array
The updated list of all Billing Countries
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.| |34071|There is an error in updating the Billing Countries.|
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 Request:

{
  "billingCountryRepositoryId": [
    "CA",
    "US"
  ],
  "siteId": "siteUS"
}

Sample Response Payload returned by endpoint:

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