Skip to content

NetTV NPL Coupon

This service sells NetTV cine coupons for Nepal Premire League. After a successful payment, the API returns the coupon code (PIN/serial). Integrators should send the PIN to the end customer via SMS and email.


SMS content suggestion

  • Your NPL Pass Coupon Code is [COUPON CODE]. Open the NETTV App, select NPL Pass, and apply this code while purchasing to redeem your offer.

How to redeem: [TUTORIAL LINK]

Enjoy NPL!


Email content suggestion

  • Subject: Purchase Confirmation — Nettv cine Coupon Code

Dear User,

Thank you for subscribing to the Nettv cine coupon through Khalti.

Your Activation Code: {pin}

To redeem your coupon, please apply the code within the Nettv app.

Please note:

  • Coupons are valid only in the region where they are issued.
  • Coupon validity and applicable terms are governed by Nettv.

If you need any assistance, please contact our support team.

Best regards,
{Company name}


1. List Products

This API returns available Nettv cine coupon products.

GET
{{base_url}}/api/products/nettv-coupon/?token={{token}}

Response


{
    "status": true,
    "data": [
        {
            "idx": "nyGqJ9zcn6dSmQnWPz3LmG",
            "name": "Nepal Only",
            "value": "nepal-only",
            "amount": 400.0
        },
        {
            "idx": "chLJBvxPcY4bMjycAjxi6v",
            "name": "Middle East Countries",
            "value": "middle-east-countries",
            "amount": 600.0
        },
        {
            "idx": "VhFaWXErQBeRjqBXY9hrV6",
            "name": "USA, Europe, Australia, Japan & Korea",
            "value": "usa-europe",
            "amount": 1500.0
        }
    ]
}

2. Payment

This endpoint processes the payment and returns the coupon PIN/serial.

POST
{{base_url}}/api/use/nettv-coupon/

Request Body


{
    "token": "{{token}}",
    "reference": "{{$guid}}",
    "value": "nettv coupon",
    "amount": 200
    "phone_number": 9860848045, //optional
    "email": "a@gmail.com" //optional
}

Success Response


{
  "status": true,
  "state": "Success",
  "message": "Your Pin number is 'c3'",
  "serial": "c3",
  "pin": "c3",
  "credits_consumed": xxx.xx,
  "credits_available": xxxx.xx,
  "id": 176925
}

Failed Response

Invalid Product Value


{
    "status": false,
    "error_code": "1010",
    "message": "Validation error",
    "error": "invalid_parameters",
    "details": {
        "value": "Invalid value for product"
    },
    "error_data": {
        "value": "Invalid value for product"
    },
    "state": "Error"
}

Invalid Amount


{
    "status": false,
    "error_code": "1010",
    "message": "Validation error",
    "error": "invalid_parameters",
    "details": {
        "amount": "enter valid amount "
    },
    "error_data": {
        "amount": "enter valid amount "
    },
    "state": "Error"
}

Product Out of Stock / Unavailable


{
    "status": false,
    "error_code": "4000",
    "message": "Can't fulfill request",
    "error": "client_error",
    "details": "Product Currently Unavailable",
    "error_data": {},
    "state": "Error"
}

Duplicate Reference ID


{
    "status": false,
    "error_code": "1013",
    "message": "Request with duplicate reference id obtained",
    "error": "duplicate_request",
    "details": "",
    "error_data": {},
    "state": "Error"
}