Listing subscriptions

post

/ccstore/v1/selfservice/subscription/search

Lists the subscription header information

Request

Supported Media Types
Body ()
Request payload to list subscription
Root Schema : subscriptionSearchRequest
Type: object
Show Source
Example:
{
    "q":{
        "criteria":[
            {
                "op":"$eq",
                "attribute":"Status",
                "value":"ORA_ACTIVE"
            }
        ]
    },
    "offset":0,
    "limit":10,
    "sort":[
        {
            "attribute":"EndDate",
            "direction":"ascending"
        }
    ]
}
Nested Schema : q
Type: object
Query criteria for filtering results.
Show Source
Nested Schema : sort
Type: array
sorting attribute and direction of sort.
Show Source
Nested Schema : criteria
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
  • Allowed Values: [ "CreationDate", "LastUpdateDate" ]
    Attribute to sort the results.
  • Allowed Values: [ "ascending", "descending" ]
    Direction of sorting.
Back to Top

Response

Supported Media Types

200 Response

Successful response
Body ()
Root Schema : subscriptionSearchResponse
Type: object
Show Source
Nested Schema : items
Type: array
The items in the collection.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (totalResults)
1056
Example Response (offset)
0
Example Response (count)
10
Example Response (hasMore)
true
Example Response (limit)
10
Example Response (links)
[
    {
        "rel":"self",
        "href":"http://localhost:8080/ccstore/v1/selfservice/subscription/search"
    },
    {
        "rel":"next",
        "href":"http://localhost:8080/ccstore/v1/selfservice/subscription/search?offset=10&limit=10"
    }
]
Example Response (items)
[
    {
        "StartDate":"2025-05-16T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100633967156",
        "SubscriptionNumber":"CDRM_30233",
        "TotalContractValue":"450",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-06-15T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-05-19T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634026183",
        "SubscriptionNumber":"CDRM_31051",
        "TotalContractValue":"0",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-06-18T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-05-20T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634018036",
        "SubscriptionNumber":"CDRM_30250",
        "TotalContractValue":"450",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-06-19T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-05-20T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634037270",
        "SubscriptionNumber":"CDRM_31068",
        "TotalContractValue":"0",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-06-19T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-05-26T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634151544",
        "SubscriptionNumber":"CDRM_37049",
        "TotalContractValue":"100",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-06-25T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-06-02T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634204312",
        "SubscriptionNumber":"CDRM_40047",
        "TotalContractValue":"1000",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-07-01T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-06-04T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634175364",
        "SubscriptionNumber":"CDRM_38048",
        "TotalContractValue":"0",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-07-03T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-06-04T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634181611",
        "SubscriptionNumber":"CDRM_38049",
        "TotalContractValue":"0",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-07-03T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-06-26T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634580922",
        "SubscriptionNumber":"CDRM_46081",
        "TotalContractValue":"300",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-07-15T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    },
    {
        "StartDate":"2025-06-21T00:00:00.000+0000",
        "Status":"ORA_ACTIVE",
        "SubscriptionId":"300100634542726",
        "SubscriptionNumber":"CDRM_46063",
        "TotalContractValue":"200",
        "Status_localizedValue":"Active",
        "BillToAccountId":1006,
        "PrimaryPartyId":1006,
        "EndDate":"2025-07-20T00:00:00.000+0000",
        "SubscriptionOwner":"ABCPatric",
        "_entity":"Subscription",
        "ShortDescription":null
    }
]

400 Response

Bad request
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

Internal server error
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top