Validate cable account

Raven atlas api allows you to validate cable accounts by making a POST request to the endpoint /validate_account and parsing provider, and smart_card_number , in the request body as shown in the example below

Example Requests

var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
  'provider': 'dstv',
  'smart_card_number': '7551930236' 
});
var config = {
  method: 'post',
  url: '{{lIVE_url}}/cable/validate_account',
  headers: { },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

Example Response

{
  "status": "success",
  "message": "Cable account verified",
  "data": {
    "smart_card_number": "7251920233",
    "customer_name": "FIRSNAME LASTNAME",
    "account_status": "OPEN",
    "due_date": "2022-09-09T00:00:00+01:00",
    "type": "DSTV"
  }
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!