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
  • List of all coupons
  • api/coupon
  • Verify Coupon
  • api/verifycoupon

Coupon Api

Fire this api to show coupon information.

List of all coupons

api/coupon

GET https://yourdomain.com/api/coupon

This end point allows to you list of all coupons informations.

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

{
    "coupon": [
       
        {
            "id": 6,
            "coupon_code": "NEW100",
            "percent_off": null,
            "currency": "USD",
            "amount_off": 75,
            "duration": "repeating",
            "max_redemptions": "1",
            "redeem_by": "2021-08-02T18:30:00.000000Z",
            "created_at": "2021-08-03T19:38:46.000000Z",
            "updated_at": "2021-08-03T19:38:46.000000Z",
            "in_stripe": 1
        }
    ]
}
{
    "message": "Unauthorized !"
}

//or

{
    "message": "Secret Key is required"
}
{
    "message": "Invalid Secret Key !"
}

Verify Coupon

api/verifycoupon

POST https://yourdomain.com/api/verifycoupon

This end point allow to verifycoupon.

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

Request Body

Name
Type
Description

coupon_code*

string

enter the coupon code

{
    "message": "Coupon is applied !"
}
{
    "message": "Unauthorized !"
}

//or

{
    "message": "Secret Key is required"
}

//or

{
    "message": "Coupon is not available !"
}

//or

{
    "message": "Coupon Expired !"
}
{
    "message": "Invalid Secret Key !"
}

//or

{
    "message": "Coupon is applied !"
}
{
    "msg": "The coupon_code field is required.",
    "status": "fail"
}
PreviousNotificationNextOther Api

Last updated 3 years ago