updateSelectedBillingCountries
put
/ccadmin/v1/merchant/billingCountries
Update Selected Billing Countries. Updates the available billing countries
Request
Supported Media Types
- application/json
Root Schema : updateSelectedBillingCountries_request
Type:
Show Source
object
-
billingCountryRepositoryId:
array billingCountryRepositoryId
Repository ID of the Billing Country
-
siteId(optional):
string
Site ID of the site
Example:
{
"billingCountryRepositoryId":[
"CA",
"US"
],
"siteId":"siteUS"
}
Nested Schema : billingCountryRepositoryId
Type:
array
Repository ID of the Billing Country
Show Source
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateSelectedBillingCountries_response
Type:
Show Source
object
-
items(optional):
array items
The updated list of all Billing Countries
Nested Schema : items
Type:
Show Source
object
-
countryCode(optional):
string
Country Code of the Billing Country
-
displayName(optional):
string
Display Name of the Billing Country
-
repositoryId(optional):
string
Repository ID of the Billing Country
Example Response (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.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code