getServices

get

/ccstore/v1/services

Gets a list of services associated with a user.

Request

Supported Media Types
  • application/json
Query Parameters
limit
Type: integer
The actual paging size used by the server.
offset
Type: integer
The offset used in the current page.
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 : getServices_response
Nested Schema : items
Type: array
The array of service objects.
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

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

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