getServices
get
/ccstore/v1/services
Gets a list of services associated with a user.
Request
Supported Media Types
- application/json
Query Parameters
- limit
-
Type:
integerThe actual paging size used by the server.- offset
Type:integerThe offset used in the current page.
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getServices_response
- count
-
Type:
integerThe number of resource instances returned in the current range. - hasMore
-
Type:
booleanReturns true if more resources are available on the server than the subset returned in current page. - items
-
Type:
arrayitemsAdditional Properties Allowed:The array of service objects. - limit
-
Type:
integerThe paging size used by the server. - offset
-
Type:
integerThe offset used in the current page.
Nested Schema : items
Nested Schema : items
Type:
object- activationDate
-
Type:
stringDate on which the service contract starts. - assetId
-
Type:
stringId of asset. - attributes
-
Type:
stringA collection (JSON) of key/value pair attributes that define the configuration of this asset/component. - currency
-
Type:
objectcurrencyAdditional Properties Allowed:The currency code. - dateAdded
-
Type:
stringSystem field indicating the date on which the Resource was created. - dateModified
-
Type:
stringSystem field indicating the date on which the Resource was last modified. - deactivationDate
-
Type:
stringDate on which the service contract ends. - discountAmount
-
Type:
objectdiscountAmountAdditional Properties Allowed:The discount amount. - discountPercent
-
Type:
integerThe percent of discount received. - displayName
-
Type:
stringThe public, non-unique key for the product instance. For example, phone number or serial number. - parentAsset
-
Type:
objectparentAssetAdditional Properties Allowed:Parent asset information. - parentDisplay
-
Type:
stringThe public, non-unique key for the parent product instance. For example, phone number or serial number. - price
-
Type:
objectpriceAdditional Properties Allowed:The price. - quantity
-
Type:
integerThe quantity of the asset. - recurringCharge
-
Type:
objectrecurringChargeAdditional Properties Allowed:The recurring charge. - recurringChargeDuration
-
Type:
stringThe payment terms. For example, Net 30. - recurringChargeFrequency
-
Type:
stringThe period for the fixed recurring charge. For example, Per Month. - resumeDate
-
Type:
stringDate on which the service contract resumes. - rootAsset
-
Type:
objectrootAssetAdditional Properties Allowed:Root asset information. - rootDisplay
-
Type:
stringThe public, non-unique key for the root product instance. For example, phone number or serial number. - serviceAccountId
-
Type:
stringThe customer that owns the product. - serviceId
-
Type:
stringAn invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories. - skuId
-
Type:
stringThe SKU Id. - status
-
Type:
objectstatusAdditional Properties Allowed:The status information. - suspendDate
-
Type:
stringDate on which the service suspends. - usageNetAmount
-
Type:
objectusageNetAmountAdditional Properties Allowed:The usage information. - usageUnitOfMeasure
-
Type:
stringThe unit of measure for the usage charges. For example, Per Copy or Per Minute.
Nested Schema : currency
Type:
objectThe currency code.
- currencyCode
-
Type:
stringUnique currency code for the currency.
Nested Schema : discountAmount
Type:
objectThe discount amount.
- currency
-
Type:
stringCurrency code for the discount amount. - value
-
Type:
numberAmount value for the discount amount.
Nested Schema : parentAsset
Type:
objectParent asset information.
- assetId
-
Type:
stringId of asset. - serviceId
-
Type:
stringAn invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories.
Nested Schema : price
Type:
objectThe price.
- currency
-
Type:
stringCurrency code for the price. - value
-
Type:
numberAmount value for the price.
Nested Schema : recurringCharge
Type:
objectThe recurring charge.
- currency
-
Type:
stringCurrency code for the recurring amount. - value
-
Type:
numberAmount value for the recurring amount.
Nested Schema : rootAsset
Type:
objectRoot asset information.
- assetId
-
Type:
stringId of asset. - serviceId
-
Type:
stringAn invariant key that uniquely identifies the asset / component for the lifetime of the asset. It will be unique across all asset repositories.
Nested Schema : status
Type:
objectThe status information.
- displayValue
-
Type:
stringTranslated display value of the fixed list of value for status. - id
-
Type:
stringId of the fixed list of value for status. - lookupCode
-
Type:
stringLanguage independent code of the fixed list of value for status.
Nested Schema : usageNetAmount
Type:
objectThe usage information.
- currency
-
Type:
stringCurrency code for the usage net amount. - value
-
Type:
numberAmount value for the usage net amount.
Example application/json
{
"offset":0,
"count":3,
"hasMore":false,
"limit":12,
"items":[
{
"rootDisplay":null,
"deactivationDate":null,
"rootAsset":{
"assetId":null,
"serviceId":null
},
"displayName":"Service 1",
"discountAmount":{
"currency":null,
"value":null
},
"recurringChargeFrequency":null,
"dateAdded":"2017-06-14T17:59:16.718Z",
"assetId":"36489417",
"price":{
"currency":"USD",
"value":10
},
"currency":{
"currencyCode":"USD"
},
"usageNetAmount":{
"currency":null,
"value":null
},
"serviceId":"serv1",
"skuId":"part1",
"serviceAccountId":"vision",
"quantity":1,
"recurringChargeDuration":null,
"discountPercent":null,
"dateModified":"2017-06-14T17:59:16.718Z",
"usageUnitOfMeasure":null,
"suspendDate":null,
"parentDisplay":null,
"attributes":null,
"activationDate":null,
"parentAsset":{
"assetId":null,
"serviceId":null
},
"resumeDate":null,
"recurringCharge":{
"currency":null,
"value":null
},
"status":{
"displayValue":null,
"lookupCode":null,
"id":null
}
},
{
"rootDisplay":null,
"deactivationDate":null,
"rootAsset":{
"assetId":null,
"serviceId":null
},
"displayName":"Service 2",
"discountAmount":{
"currency":null,
"value":null
},
"recurringChargeFrequency":null,
"dateAdded":"2017-06-14T18:00:41.539Z",
"assetId":36489422,
"price":{
"currency":"USD",
"value":10
},
"currency":{
"currencyCode":"USD"
},
"usageNetAmount":{
"currency":null,
"value":null
},
"serviceId":"serv2",
"skuId":"part2",
"serviceAccountId":"vision",
"quantity":1,
"recurringChargeDuration":null,
"discountPercent":null,
"dateModified":"2017-06-14T18:00:41.539Z",
"usageUnitOfMeasure":null,
"suspendDate":null,
"parentDisplay":"Service 1",
"attributes":null,
"activationDate":null,
"parentAsset":{
"assetId":36489417,
"serviceId":"serv1"
},
"resumeDate":null,
"recurringCharge":{
"currency":null,
"value":null
},
"status":{
"displayValue":null,
"lookupCode":null,
"id":null
}
},
{
"rootDisplay":null,
"deactivationDate":null,
"rootAsset":{
"assetId":null,
"serviceId":null
},
"displayName":"Service 3",
"discountAmount":{
"currency":null,
"value":null
},
"recurringChargeFrequency":null,
"dateAdded":"2017-06-14T18:00:58.163Z",
"assetId":36489424,
"price":{
"currency":"USD",
"value":30
},
"currency":{
"currencyCode":"USD"
},
"usageNetAmount":{
"currency":null,
"value":null
},
"serviceId":"serv3",
"skuId":"part3",
"serviceAccountId":"vision",
"quantity":1,
"recurringChargeDuration":null,
"discountPercent":null,
"dateModified":"2017-06-14T18:00:58.163Z",
"usageUnitOfMeasure":null,
"suspendDate":null,
"parentDisplay":null,
"attributes":null,
"activationDate":null,
"parentAsset":{
"assetId":null,
"serviceId":null
},
"resumeDate":null,
"recurringCharge":{
"currency":null,
"value":null
},
"status":{
"displayValue":null,
"lookupCode":null,
"id":null
}
}
]
}
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|
|------------------|------------------|
|551000|Could not get customers profile.|
|551001|Customer has no service account.|
|551002|Error retrieving customers service account.|
|551003|Error retrieving account assets.|
|551004|Error validating contact account ids in Order.
|551005|Invalid account asset id.
|551006|Account asset authorization error.
|551007|Owner of the account asset could not be determined.
|551008|Error submitting action request.
|551009|Invalid transactionDate.
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"offset": 0,
"count": 3,
"hasMore": false,
"limit": 12,
"items": [
{
"rootDisplay": null,
"deactivationDate": null,
"rootAsset": {
"assetId": null,
"serviceId": null
},
"displayName": "Service 1",
"discountAmount": {
"currency": null,
"value": null
},
"recurringChargeFrequency": null,
"dateAdded": "2017-06-14T17:59:16.718Z",
"assetId": "36489417",
"price": {
"currency": "USD",
"value": 10
},
"currency": {"currencyCode": "USD"},
"usageNetAmount": {
"currency": null,
"value": null
},
"serviceId": "serv1",
"skuId": "part1",
"serviceAccountId": "vision",
"quantity": 1,
"recurringChargeDuration": null,
"discountPercent": null,
"dateModified": "2017-06-14T17:59:16.718Z",
"usageUnitOfMeasure": null,
"suspendDate": null,
"parentDisplay": null,
"attributes": null,
"activationDate": null,
"parentAsset": {
"assetId": null,
"serviceId": null
},
"resumeDate": null,
"recurringCharge": {
"currency": null,
"value": null
},
"status": {
"displayValue": null,
"lookupCode": null,
"id": null
}
},
{
"rootDisplay": null,
"deactivationDate": null,
"rootAsset": {
"assetId": null,
"serviceId": null
},
"displayName": "Service 2",
"discountAmount": {
"currency": null,
"value": null
},
"recurringChargeFrequency": null,
"dateAdded": "2017-06-14T18:00:41.539Z",
"assetId": 36489422,
"price": {
"currency": "USD",
"value": 10
},
"currency": {"currencyCode": "USD"},
"usageNetAmount": {
"currency": null,
"value": null
},
"serviceId": "serv2",
"skuId": "part2",
"serviceAccountId": "vision",
"quantity": 1,
"recurringChargeDuration": null,
"discountPercent": null,
"dateModified": "2017-06-14T18:00:41.539Z",
"usageUnitOfMeasure": null,
"suspendDate": null,
"parentDisplay": "Service 1",
"attributes": null,
"activationDate": null,
"parentAsset": {
"assetId": 36489417,
"serviceId": "serv1"
},
"resumeDate": null,
"recurringCharge": {
"currency": null,
"value": null
},
"status": {
"displayValue": null,
"lookupCode": null,
"id": null
}
},
{
"rootDisplay": null,
"deactivationDate": null,
"rootAsset": {
"assetId": null,
"serviceId": null
},
"displayName": "Service 3",
"discountAmount": {
"currency": null,
"value": null
},
"recurringChargeFrequency": null,
"dateAdded": "2017-06-14T18:00:58.163Z",
"assetId": 36489424,
"price": {
"currency": "USD",
"value": 30
},
"currency": {"currencyCode": "USD"},
"usageNetAmount": {
"currency": null,
"value": null
},
"serviceId": "serv3",
"skuId": "part3",
"serviceAccountId": "vision",
"quantity": 1,
"recurringChargeDuration": null,
"discountPercent": null,
"dateModified": "2017-06-14T18:00:58.163Z",
"usageUnitOfMeasure": null,
"suspendDate": null,
"parentDisplay": null,
"attributes": null,
"activationDate": null,
"parentAsset": {
"assetId": null,
"serviceId": null
},
"resumeDate": null,
"recurringCharge": {
"currency": null,
"value": null
},
"status": {
"displayValue": null,
"lookupCode": null,
"id": null
}
}
]
}