Conscent.ai Developer Documentation
  • Version 2.0
    • Using Conscent.ai
    • Web SDK
    • Login
    • Logout
    • User Details Drawer
    • Google One Tap
    • Mobile SDK
      • iOS(Swift)
        • In-App Purchases with Conscent
      • Android SDK
      • React Native SDK
      • Google In-App Purchases with Conscent
      • Apple In-App Purchases with Conscent
    • Facebook SSO Integration Guide
    • Landing Page API v 2.0
    • AMP Integration
    • Integrating APIs(v2)
      • Purchase Details
      • User Registered Or Not
      • User Registrations
      • Subscription Plans Details
      • Get User Details
      • Add Subscription If User Registered
      • Update UserDetails
      • Update SubscriptionDetails
      • Get All Transaction Details
    • IAM System API Documentation
  • Version 1.0
    • Getting Started
    • On Board
    • Using Conscent.ai
    • Authentication
    • Web SDK
    • Login
    • Logout
    • Amp Documentation
    • Mobile SDK
      • Android
      • Flutter
      • iOS(Swift)
      • React Native SDK
    • Auto Login
    • Creating External Purchases
    • Landing Page API
  • Login Screen Customization
  • Integrating Client Payment Gateway
  • Integrating with APIs
    • User Details and Subscriptions Information
    • Purchased Subscriptions
    • User and Purchase Details
    • Client Purchases
    • Client Micropayments
    • Client Passes
    • Cancel Active Subscriptions
    • Delete User
  • Events API Docs
    • Different Types of Events
    • SSO Login Flow
  • Discount Coupon
    • Dynamic Coupon API Generation:
  • New Webhooks
    • Meter Banner Webhook
    • Paywall Webhook
    • SignUp Webhook
    • Refund Webhook
    • Purchase Webhook
    • Subscription Landing Page Webhook
    • Popup Webhook
    • User Update Webhook
    • Payment Gateway Webhook
    • Review Page Webhook
    • Transaction Webhook
    • Login Webhook
    • Cancel Subscription Webhook
  • Old Webhooks
    • Sign Up Webhook
    • Login Webhook
    • Subscription Payment Webhook
    • Subscription Cancelled Webhook
    • Pass Payment Webhook
    • Subscription Bundle Payment Webhook
    • Review Subscription Webhook
    • Micro Payment Webhook
    • How to validate Webhooks?
  • Registering The Content
    • Create Content
    • Edit Content
    • View Content
  • Country Code List
  • Supported Currencies and Payment Gateways
    • Stripe Supported Country with Currency
    • Razorpay Supported Country with Currency
    • Paypal Supported Country with Currency
  • Errors
  • Loyalty System
    • Web SDK
    • iOS SDK
    • Android SDK
    • Flutter SDK
    • API from server
Powered by GitBook
On this page
  1. Version 1.0

Landing Page API

The landing page API enables clients to utilize their Subscription Landing Page and can be used to power subscription plans through Conscent.

Create the subscription plans and landing pages on the Cosncent Dashboard before implementing the Landing Page API.

GET{API_URL}/subscription/campaign?pathURL=Netflix&clientId=5f92a62013332e0f667794dc

PARAMS

Name
Value

pathURL

Same as the one present in Visualise -> Subscriptions -> Landing Page -> CampaignURL

clientId

Response

{
    "message": "Got landing page with the provided path",
    "isCampaignActive": true,
    "faviconUrl": "",
    "useClientFlow": false,
    "clientCampaignDetails": {
        "landingPage": {
            "customization": {
                "primaryColor": "#000000",
                "secondaryColor": "#d3ca6f",
                "buttonColor": "#000000",
                "buttonTextColor": "#f3fbf7",
                "priceTextColor": "#000000"
            },
            "title": "Test Subs123",
            "description": "Get access to world of quality content.",
            "headerRedirectUrl": "https://csc-mock.netlify.app/5f92a62013332e0f667794dc/Client-Story-Id-1",
            "desktopBannerUrl": "https://conscent-public.s3.ap-south-1.amazonaws.com/stage/Demo%20Client/banners/Demo%20Client%20-%20desktopBanner-f5a777.png",
            "mobileBannerUrl": "https://conscent-public.s3.ap-south-1.amazonaws.com/stage/Outlook/banners/Outlook%20-%20mobileBanner-4785ee.png",
            "brandLogoUrl": "https://conscent-public.s3.ap-south-1.amazonaws.com/stage/Demo%20Client/banners/Demo%20Client%20-%20brandLogo-d32f8b.png",
            "deletedAt": null,
            "_id": "6267f6b5a2d25f456bc69bc2",
            "clientId": "5f92a62013332e0f667794dc",
            "template": "t1",
            "createdAt": "2022-04-26T13:42:13.449Z",
            "updatedAt": "2023-12-01T12:13:02.429Z",
            "__v": 243
        },
        "subscriptions": [
            {
                "freeTrial": {
                    "enabled": false,
                    "duration": null
                },
                "benefits": "Benefit1,Benefit2,Benefit3", // Subscription benefits.
                "physical": false,
                "digital": true,
                "adFree": false,
                "migrated": false,
                "couponsEnabled": true,
                "adminCoupon": "",
                "usedCouponNumbers": [],
                "deletedAt": null,
                "_id": "61e93279bf6de47e4f6a676b",
                "recommended": false,
                "enabled": true,
                "clientId": "5f92a62013332e0f667794dc",
                "title": "Didi+Phy+Ad Free", // Title of the subscription
                "tiers": [
                    {
                        "priceOverrides": {
                            "country": []
                        },
                        "currency": "INR", // Currency of the user's country will be present here.
                        "basePrice": 0, // Base price which has been set in the client dashboard.
                        "offers": [
                            {
                                "_id": "617a703504ab353a12d84d2a",
                                "title": "IDFC Bank1",
                                "benefits": "This is the first benefit This is the first benefit This is the first benefit This is the first benefit This is the first benefit This is the first benefit ",
                                "iconUrl": "https://storage.googleapis.com/bkt-conscent-public-stage/Outlook/offers/617a703504ab353a12d84d2a-2f1c03.png"
                            }
                        ],
                        "_id": "61e93279bf6de47e4f6a676d",
                        "price": 6969, // Amount of the subscription
                        "duration": 12 // Duration in months
                    }
                ],
                "iconUrl": "https://conscent-public.s3.ap-south-1.amazonaws.com/stage/Outlook/subscriptions/61e93279bf6de47e4f6a676b-a6e1b9.png",
                "createdAt": "2022-01-20T09:59:22.673Z",
                "updatedAt": "2023-12-01T12:15:39.739Z",
                "__v": 22,
                "currencySymbol": "₹" // Currency symbol will change according to the currency.
            }
        ],
        "recommendedSub": ""
    },
    "clientId": "5f92a62013332e0f667794dc"
}
PreviousCreating External PurchasesNextLogin Screen Customization

Last updated 10 months ago

on th dashboard

ClientId