This endpoint is used to subsribe to tv bundle after the bundle type has be selected and card number has also been verified
{{base_url}}
/vas/tv/verify-card
Parameter | Type | Details |
---|---|---|
serviceCategoryId | string | id_ of the Provider selected |
cardNumber | string | The card number of the decoder you want to subscribe to. |
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '{{base_url}}/vas/tv/verify-card', [
'json' => [
'serviceCategoryId' => 'xxxxxxxxxxx',
'cardNumber' => 'xxxxxxxxxxx',
],
'headers' => [
'Authorization' => 'Bearer {{access_token}}',
'client-id' => 'sdaH23sE5Th4*******dDF4df',
'accept' => 'application/json',
'content-type' => 'application/json',
],
]);
echo $response->getBody();
**Response: SUCCESS (200 OK)**
{
"message": {
"success": [
"Card Number Verified Successful"
]
},
"data":
{
"status": "sucess",
"name": "John Doe",
"customernumber": "0589*****652",
}
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}