# Cable TV

### Fetch Data Bundle Providers

&#x20;<mark style="color:red;">`GET`</mark>  `{{ BASE }}/cable-tv-subscription`

```
--header 'Accept: application/json'
--header 'Authorization: Bearer {{  access_token }}'
```

Response Body

```
{
    "status": true,
    "message": "success",
    "data": [
        {
            "provider_name": "CableTV Provider 1",
            "provider_code": "unique_provider_code",
            "min_amount" => {{ min_amount }},
            "min_amount" => {{ min_amount }},
            "min_amount" => {{ min_amount }},
            "provider_info": "provider_info"
        },
        {
            "provider_name": "CableTV Provider 2",
            "provider_code": "unique_provider_code",
            "min_amount" => {{ min_amount }},
            "min_amount" => {{ min_amount }},
            "min_amount" => {{ min_amount }},
            "provider_info": "provider_info"
        }
    ]
}
```

### Fetch CableTV Packages

&#x20;<mark style="color:green;">`POST`</mark>  `{{ BASE }}/packages`&#x20;

```
--header 'Accept: application/json'
--header 'Authorization: Bearer {{  access_token }}'
```

**Request Body**

| Name           | Type   | Description             |
| -------------- | ------ | ----------------------- |
| provider\_code | String | The unique package code |

Response Body

```
{
  "status": true,
  "message": "success",
  "data": [
    {
      "package_name": "CableTV Package 1",
      "package_code": "unique_package_code",
      "provider_code": "provider_code"
      "package_amount": {{amount}},
      "package_original_amount": {{amount}},
    },
    {
      "package_name": "CableTV Package 2",
      "package_code": "unique_package_code",
      "provider_code": "provider_code"
      "package_amount": {{amount}},
      "package_original_amount": {{amount}},
    }
  ]
```

### Buy CableTV Plans

&#x20;<mark style="color:green;">`POST`</mark>  `{{ BASE }}/buy`&#x20;

```
--header 'Accept: application/json'
--header 'Authorization: Bearer {{  access_token }}'
```

**Request Body**

Below are the request body parameters :tada:

| Name               | Type   | Description                          |
| ------------------ | ------ | ------------------------------------ |
| **provider\_code** | String | Provider Code                        |
| **package\_code**  | String | Package code                         |
| **recipient**      | number | Recipient                            |
| **account\_pin**   | String | Your Padiwise account pin            |
| **reference**      | String | Unique reference for the transaction |

Response Body

```
{
    "status": true,
    "message": "success",
    "data": {
        "status": true,
        "message": "Transaction Sent For {{status}} . N{{amount}} {{provider}}  Recipient : {{recipient}}  ",
        "transaction_data": {
            "reference": "{{reference}}",
            "status": "{{status}}",
            "package": {{package}},
            "provider" : {{provider}},
            "recipient": "{{recipient}}",
            "amount_paid": {{amount_paid}},
            "commission" : {{commission}}
        }
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://padiwise.gitbook.io/padiwise/value-added-services/cable-tv.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
