List cancellation offer

This endpoint allows you to fetch a single cancellation offer specific to a subscription.

get/2023-10/subscription/{subscriptionId}/cancellationOffer

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2023-10/subscription/{subscriptionId}/cancellationOffer
  • Auth
    API key in header Authorization

Path parameters

subscriptionIdinteger required

The unique identifier for a subscription in Loop.

Query parameters

cancellationFlowIdinteger required

The unique identifier of the cancellation reason selected by the subscriber. This value can be retrieved from the List cancellation reasons API.

Response

200

successboolean
messagestring
codestring
pageInfostring

Example response

{
  "success": true,
  "message": "Cancellation offer fetched successfully",
  "data": {
    "id": "ba70d90886454e6985099b99673ac7de",
    "message": "<undefined>choice 1<br></undefined>",
    "keepSubscriptionCTAText": "Accept offer - choice 1",
    "cancelSubscriptionCTAText": "Cancel subscription",
    "title": "Cancel subscription",
    "offerDescription": "choice 1"
  },
  "code": "SUCCESS"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.