Preview subscription products

post

/ccstore/v1/selfservice/subscriptionProducts/preview

Preview the specified subscription products

Request

Supported Media Types
Body ()
Request payload to preview subscription products
Root Schema : previewSubscriptionProductsRequest
Type: object
Show Source
Example:
[
    {
        "cart":{
            "items":[
                {
                    "output":[
                        {
                            "numberOfBillingCycles":2
                        }
                    ],
                    "subscriptionNumber":"PreviewSubsciption_Amend",
                    "closedDate":"2025-03-10",
                    "actionCode":"CLOSE",
                    "productPuId":"PreviewSubsciption_Amend-PRDT-176040"
                }
            ]
        }
    }
]
Nested Schema : cart
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : previewRequestCartItem
Type: object
Show Source
Nested Schema : output
Type: array
Show Source
Nested Schema : previewOutput
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful response
Body ()
Root Schema : previewSubscriptionProductsResponse
Type: object
Show Source
Nested Schema : cart
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : previewResponseCartItem
Type: object
Show Source
Nested Schema : output
Type: array
Show Source
Nested Schema : previewOutput
Type: object
Show Source
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
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

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