getServices

get

/ccstore/v1/services

Gets a list of services associated with a user.

Request

Supported Media Types
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getServices_response
Type: object
Show Source
Nested Schema : items
Type: array
The array of service objects.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : currency
Type: object
The currency code.
Show Source
Nested Schema : discountAmount
Type: object
The discount amount.
Show Source
Nested Schema : parentAsset
Type: object
Parent asset information.
Show Source
Nested Schema : price
Type: object
The price.
Show Source
Nested Schema : recurringCharge
Type: object
The recurring charge.
Show Source
Nested Schema : rootAsset
Type: object
Root asset information.
Show Source
Nested Schema : status
Type: object
The status information.
Show Source
Nested Schema : usageNetAmount
Type: object
The usage information.
Show Source
Example Response (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",
            "transactionDate":"2018-06-27T12:59:59Z",
            "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",
            "transactionDate":"2018-06-27T12:59:59Z",
            "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",
            "transactionDate":"2018-06-27T12:59:59Z",
            "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
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top