getService

get

/ccstore/v1/services/{id}

Get a particular service associated with a user.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
ID of an asset.
Header Parameters
X-CCAsset-Language
Type: string
The asset language of the request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getService_response
Nested Schema : items
Type: array
The service object.
Nested Schema : items
Type: object
Nested Schema : currency
Type: object
The currency code.
Nested Schema : discountAmount
Type: object
The discount amount.
Nested Schema : parentAsset
Type: object
Parent asset information.
Nested Schema : price
Type: object
The price.
Nested Schema : recurringCharge
Type: object
The recurring charge.
Nested Schema : rootAsset
Type: object
Root asset information.
Nested Schema : status
Type: object
The status information.
Nested Schema : usageNetAmount
Type: object
The usage information.
Example application/json

{
    "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
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:

{
  "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
  }
}