Next Hour App
  • Introduction
    • Introduction
    • Key Features
    • Flutter
  • Installation
    • Flutter Installation
    • App Secret Key
  • project setup
    • App Deployment
      • Firebase
    • iOS Setup Instructions
    • Google Drive Key
    • OneSignal
    • Images
    • Reskinning
  • Publish your app
    • Requirements to Publish App
  • FAQ
    • Installation FAQ's
    • Access Denied
    • General Setting
    • Disclaimer
    • Regular & Extended Licenses
    • Privacy Policy
  • Troubleshoot
    • Troubleshoot
    • Changelogs
  • Source & credit
    • Source & Credit
  • Support
    • Support
  • conclution
    • Conclusion
  • our products
    • Next Hour Addons
    • Our Products
  • Api Document
    • Getting Started
  • Get secret key
  • Auth Api
    • Login
  • Home Page Api
  • Actor detail page
  • Payment Api
    • Payment Method List
    • Manual payment list
    • Subscribed with manual payment
    • Subscribed with free subscription
    • Subscription Stop and Resume
    • Invoice
  • Player Setting Api
    • Player Setting
    • Advertise
  • User Api
    • View User profile
    • Wishlist
    • Watch History
    • User Profile Update
    • Manage Profile
    • Notification
  • Coupon Api
  • Other Api
    • List of Contents
    • Menu
    • Slider
    • Package
    • List of all movies
    • List of all tvseries
    • List of all movies, tveries and top movie and tvseries
    • Recent Movies and Tvseries
    • List of menu by movies and tvseries
    • Language by movies and tvseries
Powered by GitBook
On this page
  1. Payment Api

Subscribed with free subscription

Fire this api to subscribed with free subscription package.

api/free/subscription

POST https://yourdomain.com/api/free/susbcription

This end point allows to you subscribed with free subscription store.

Query Parameters

Name
Type
Description

secret

string

Client secret key will goes here which you get from admin panel.

Headers

Name
Type
Description

Authorization*

string

Bearer { bearer_token without bracket }

Accept*

string

application/json

{
     "message": "Successful but mail not send",
    "subscription": {
        "user_id": 6,
        "payment_id": "SWEFf56DF",
        "user_name": "Test",
        "package_id": 1,
        "price": "1",
        "status": "1",
        "method": "Free",
        "subscription_from": "2021-12-22T08:49:14.619359Z",
        "subscription_to": "2022-01-22T08:49:14.619412Z",
        "updated_at": "2021-12-22T08:49:14.000000Z",
        "created_at": "2021-12-22T08:49:14.000000Z",
        "id": 12,
        "plan": {
            "id": 1,
            "plan_id": "basic10",
            "name": "Basic",
            "currency": "USD",
            "currency_symbol": "fa fa-dollar",
            "amount": "0.00",
            "interval": "month",
            "interval_count": 1,
            "trial_period_days": null,
            "status": "active",
            "screens": 1,
            "download": 0,
            "downloadlimit": null,
            "delete_status": 1,
            "created_at": "2021-08-03T14:44:00.000000Z",
            "updated_at": "2021-08-23T13:52:55.000000Z",
            "free": 1,
            "feature": [
                "1",
                "2",
                "3",
                "4"
            ],
            "ads_in_web": 0,
            "ads_in_app": 0
        }
    }
}
{
  
    "message": "Unauthorized !"
}

//or

{
    "message": "Secret Key is required"
}
{
   "message": "Invalid Secret Key !"
}
{
    "msg": "The amount field is required.",
    "status": "fail"
}

//or

{
    "msg": "The status field is required.",
    "status": "fail"
}

//or

{
    "msg": "The plan id field is required.",
    "status": "fail"
}

//or

{
    "msg": "The reference field is required.",
    "status": "fail"
}
PreviousSubscribed with manual paymentNextSubscription Stop and Resume

Last updated 3 years ago