List of Markets
get
/appstore/publisher/v1/markets
Get a list of markets that can be associated with OCI Applications.
Request
Query Parameters
-
limit(optional): integer(int32)
Limit tells how many records to return (starting from the offset). Limit should be greater than zero and less than or equal to 100 (default=30).
-
offset(optional): integer(int32)
Offset and limit together determine how many records to return from the collection. Offset is the starting index of the records to return, which should be greater than or equal to zero (default=0).
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Nested Schema : market
Type:
Show Source
object
-
billToCountries(optional):
array billToCountries
The list of countries of customer
-
category:
string
The category of the market
-
code:
string
The code of the market
-
name:
string
The name of the market
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example returns a list of available markets for applications, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "X-Oracle-ImpersonatedPartnerId: partner-id -H "X-Oracle-UserId: partner-email" -H "Content-Type: application/json" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/markets"
X-Oracle-ImpersonatedPartnerId
Details of partner-id to impersonate is available using this API - List of partners
Request Header
X-Oracle-UserId: partner-email X-Oracle-ImpersonatedPartnerId: partner-id Authorization: Bearer Access-token Content-Type:application/json
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "items": [ { "market": { "code": "US", "name": "US Commercial", "category": "Commercial", "billToCountries": [ "United States" ] } }, { "market": { "code": "Japan", "name": "Japan Commercial", "category": "Commercial", "billToCountries": [ "Japan" ] } }, { "market": { "code": "USGov", "name": "US Government", "category": "Government", "billToCountries": [ "United States" ] } }, { "market": { "code": "USDoD", "name": "US Department of Defense", "category": "Government", "billToCountries": [ "United States" ] } }, { "market": { "code": "UKGov", "name": "UK Government", "category": "Government", "billToCountries": [ "United Kingdom" ] } } ], "hasMore": false, "count": 5, "totalResults": 5, "links": [ { "rel": "CANONICAL", "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/markets" }, { "rel": "SELF", "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/markets" } ] }Back to Top