# Cable TV

We have three different services on **Cable TV** with following Service codes

| **SN** | **Service Code** | **Service Name** |
| ------ | ---------------- | ---------------- |
| **1**  | BPD-NGCA-AQA     | DSTV             |
| **2**  | BPD-NGCA-AQC     | GOTV             |
| **3**  | BPD-NGCA-AWA     | STARTIMES        |

There are four endpoints involved in Cable TV subscription in the order of ***Get Price, Account Number Validation***, ***Vend*** and ***Transaction Confirmation***

### Get Price

<mark style="color:green;">`POST`</mark> `http://epayment.com.ng/epayment/api/3pcable_prices`

#### Headers

| Name                                           | Type   | Description    |
| ---------------------------------------------- | ------ | -------------- |
| Bearer Token<mark style="color:red;">\*</mark> | String | your-api-token |

#### Request Body

| Name                                   | Type   | Description                  |
| -------------------------------------- | ------ | ---------------------------- |
| Body<mark style="color:red;">\*</mark> | String | { "service":"BPD-NGCA-AQA" } |

{% tabs %}
{% tab title="200: OK {"count":9,"products":\[{"code":"COMPE36","name":"DStv   Compact","price":"7900.000","topup\_value":7900,"currency":"NGN","topup\_currency" :"NGN","isAddon":false},{"code":"COMPLE36","name":"DStv Compact Plus","price":"12400.000","topup\_value":12400,"currency":"NGN","topup\_currency": "NGN","isAddon":false},{"code":"PRWE36","name":"DStv Premium","price":"18400.000","topup\_value":18400,"currency":"NGN","topup\_currenc y":"NGN","isAddon":false},{"code":"PRWASIE36","name":"DStv Premium Asia","price":"20500.000","topup\_value":20500,"currency":"NGN","topup\_currency": "NGN","isAddon":false},{"code":"ASIAE36","name":"Asian Bouqet","price":"6200.000","topup\_value":6200,"currency":"NGN","topup\_currency": "NGN","isAddon":false},{"code":"NNJ1E36","name":"DStv Yanga Bouquet E36","price":"2565.000","topup\_value":2565,"currency":"NGN","topup\_currency":"NG N","isAddon":false},{"code":"NNJ2E36","name":"DStv Confam Bouquet E36","price":"4615.000","topup\_value":4615,"currency":"NGN","topup\_currency":"NG N","isAddon":false},{"code":"NLTESE36","name":"Padi","price":"1850.000","topup\_v alue":1850,"currency":"NGN","topup\_currency":"NGN","isAddon":false},{"code":"PRW FRNSE36","name":"DStv Premium French","price":"25550.000","topup\_value":25550,"currency":"NGN","topup\_currency ":"NGN","isAddon":false}]}" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### Account Validation

<mark style="color:green;">`POST`</mark> `http://epayment.com.ng/epayment/api/3pcable_validate`

#### Headers

| Name                                           | Type   | Description    |
| ---------------------------------------------- | ------ | -------------- |
| Bearer Token<mark style="color:red;">\*</mark> | String | your-api-token |

#### Request Body

| Name                                   | Type   | Description                                                      |
| -------------------------------------- | ------ | ---------------------------------------------------------------- |
| Body<mark style="color:red;">\*</mark> | String | { "service":"BPD-NGCA-AQA", "smartcard\_number":"10175323 178" } |

{% tabs %}
{% tab title="200: OK {"name":"IDIARO KOLAWOLE","number":254559874}" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### Vend Cable TV

<mark style="color:green;">`POST`</mark> `http://epayment.com.ng/epayment/api/3pcable_vend`

#### Headers

| Name                                           | Type   | Description    |
| ---------------------------------------------- | ------ | -------------- |
| Bearer Token<mark style="color:red;">\*</mark> | String | your-api-token |

#### Request Body

| Name                                   | Type   | Description                                                                                                                             |
| -------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| Body<mark style="color:red;">\*</mark> | String | { "service":"BPD-NGCA-AQA", "smartcard\_number":"10175323 178", "customer\_reference":"221209 38399XYM00", "product\_code":"COMPLE36" } |

{% tabs %}
{% tab title="200: OK {"status":201,"message":"Operation Successful, Recharge created, Reference : a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","reference":"a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","code":"RECHARGE\_COMPLETE","paid\_amount":124 00,"paid\_currency":"NGN","topup\_amount":12400,"topup\_curre ncy":"NGN","target":"10175323178","product\_id":"BPD-NGCA- AQA","time":"2021-04- 07T10:18:48.036Z","country":"Nigeria","operator\_name":"DST V","completed\_in":1999,"customer\_reference":"5e2619dae30f4 873ae91148f#475-512596","pin\_based":false}" %}

{% endtab %}

{% tab title="201: Created {"status":201,"message":"Operation Successful, Recharge created, Reference : a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","reference":"a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","code":"RECHARGE\_COMPLETE","paid\_amount":124 00,"paid\_currency":"NGN","topup\_amount":12400,"topup\_curre ncy":"NGN","target":"10175323178","product\_id":"BPD-NGCA- AQA","time":"2021-04- 07T10:18:48.036Z","country":"Nigeria","operator\_name":"DST V","completed\_in":1999,"customer\_reference":"5e2619dae30f4 873ae91148f#475-512596","pin\_based":false}" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### Verify Completed Cable TV Vending

<mark style="color:green;">`POST`</mark> `http://epayment.com.ng/epayment/api/3pcable_verify`

#### Headers

| Name                                           | Type   | Description    |
| ---------------------------------------------- | ------ | -------------- |
| Bearer Token<mark style="color:red;">\*</mark> | String | your-api-token |

#### Request Body

| Name                                   | Type   | Description                        |
| -------------------------------------- | ------ | ---------------------------------- |
| Body<mark style="color:red;">\*</mark> | String | { "customer\_reference":"100123" } |

{% tabs %}
{% tab title="200: OK {"status":201,"message":"Operation Successful, Recharge created, Reference : a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","reference":"a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","code":"RECHARGE\_COMPLETE","paid\_amount":124 00,"paid\_currency":"NGN","topup\_amount":12400,"topup\_curre ncy":"NGN","target":"10175323178","product\_id":"BPD-NGCA- AQA","time":"2021-04- 07T10:18:48.036Z","country":"Nigeria","operator\_name":"DST V","completed\_in":1999,"customer\_reference":"5e2619dae30f4 873ae91148f#475-512596","pin\_based":false}" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="201: Created {"status":201,"message":"Operation Successful, Recharge created, Reference : a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","reference":"a3512fe0-978a-11eb-a3a1- e77ff81ad8aa","code":"RECHARGE\_COMPLETE","paid\_amount":124 00,"paid\_currency":"NGN","topup\_amount":12400,"topup\_curre ncy":"NGN","target":"10175323178","product\_id":"BPD-NGCA- AQA","time":"2021-04- 07T10:18:48.036Z","country":"Nigeria","operator\_name":"DST V","completed\_in":1999,"customer\_reference":"5e2619dae30f4 873ae91148f#475-512596","pin\_based":false}" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}
