Preview subscription products
post
/ccstore/v1/selfservice/subscriptionProducts/preview
Preview the specified subscription products
Request
Supported Media Types
- application/json
Request payload to preview subscription products
Root Schema : previewSubscriptionProductsRequest
Type:
Show Source
object
Example:
[
{
"cart":{
"items":[
{
"output":[
{
"numberOfBillingCycles":2
}
],
"subscriptionNumber":"PreviewSubsciption_Amend",
"closedDate":"2025-03-10",
"actionCode":"CLOSE",
"productPuId":"PreviewSubsciption_Amend-PRDT-176040"
}
]
}
}
]
Nested Schema : previewRequestCartItem
Type:
Show Source
object
-
actionCode(required):
string
Action code (applicable value: CLOSE)
-
closedDate:
string(date)
Closed date (applicable & required for CLOSE action code). It should be in ISO Format: yyyy-MM-dd.
-
closeReason:
string
Close reason (applicable & required for CLOSE action code).
-
output:
array output
-
productPuId:
string
Subscription product PUID
-
subscriptionNumber(required):
string
Subscription number
Nested Schema : previewOutput
Type:
Show Source
object
-
numberOfBillingCycles:
integer
Number of billing cycles
Response
Supported Media Types
- application/json
200 Response
Successful response
Nested Schema : previewResponseCartItem
Type:
Show Source
object
-
actionCode:
string
Action code (CLOSE)
-
closeCreditMethod:
string
Close credit method (applicable for CLOSE action code).
-
closedDate:
string(date)
Closed date (applicable for CLOSE action code).
-
closeReason:
string
Close reason (applicable for CLOSE action code).
-
estimatedCreditedAmount:
string(double)
The estimated amount to be credited.
-
estimatedPenaltyAmount:
string(double)
The estimated penalty amount (applicable for CLOSE action code).
-
output:
array output
-
productPuId:
string
Subscription product PUID
-
subscriptionNumber:
string
Subscription number
Nested Schema : previewOutput
Type:
Show Source
object
-
numberOfBillingCycles:
integer
Number of billing cycles
Nested Schema : Link
Type:
Show Source
object
-
href:
string
The hyperlink reference
-
rel:
string
The relation of the link
Example Response (CLOSE)
{
"links":[
{
"rel":"self",
"href":"/ccstore/v1/selfservice/subscriptionProducts/preview"
}
],
"cart":{
"items":[
{
"output":[
{
"numberOfBillingCycles":"2"
}
],
"estimatedCreditedAmount":"0",
"subscriptionNumber":"PreviewSubsciption_Amend",
"closedDate":"2025-03-10",
"estimatedPenaltyAmount":"970.97",
"closeCreditMethod":"ORA_PRORATE_WITH_CREDIT",
"actionCode":"CLOSE",
"productPuId":"PreviewSubsciption_Amend-PRDT-176040",
"closeReason":"ORA_BREACH"
}
]
}
}
400 Response
Bad request
Root Schema : Error
Type:
Show Source
object
-
message:
string
The error message
-
status:
string
The Error code
500 Response
Internal server error
Root Schema : Error
Type:
Show Source
object
-
message:
string
The error message
-
status:
string
The Error code