Subscribe to a plan

Raven atlas api allows you to subscribe to a cable plan by making a POST request to the endpoint /cable/subscribe and parsing provider, phone_number, code, merchant_reference 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': 'gotv',
  'smart_card_number': '8062093542',
  'phone_number': '07039765515',
  'code': 'gotv-smallie',
  'merchant_reference': '123456' 
});
var config = {
  method: 'post',
  url: 'http://localhost:4000/cable/subscribe',
  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 subscribed",
  "data": {
    "smart_card_number": "4061093522",
    "customer_name": "JOHN DOE",
    "amount": 900,
    "reference": "202208301804IAACHBH",
    "merchant_reference": "123456",
    "trx_id": "16618755362356458703942105"
  }
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!