Retrieve all data records

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Raven atlas API allows you to retrieve paginated mobile plans records by making a GET request to the endpoint /data/records/ parsing the per_page and page as query params as shown in the example below

Example Requests

var axios = require('axios');

var config = {
  method: 'get',
  url: 'http://localhost:4000/data/records?page=1&per_page=10',
  headers: { }
};

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

Example Response

{
  "status": "success",
  "message": "Data records returned",
  "data": {
    "data_records": [
      {
        "id": 13,
        "merchant_email": "[email protected]",
        "phone_number": "07039765515",
        "reference": "202208241657103z0c3v5mnie8wozhdwa2co",
        "status": "successful",
        "refunded": 0,
        "network": "MTN",
        "request_id": null,
        "amount": 1000,
        "amount_charged": 1000,
        "currency": "NGN",
        "provider": "2",
        "data_plan": "1.5GB",
        "merchant_reference": "123456",
        "created_at": "2022-08-24T15:57:11.000Z"
      },
      {
        "id": 12,
        "merchant_email": "[email protected]",
        "phone_number": "09063790051",
        "reference": "202208241653074t5n4w6pbar9vunr6gcwj",
        "status": "pending",
        "refunded": 0,
        "network": "MTN",
        "request_id": null,
        "amount": 100,
        "amount_charged": 100,
        "currency": "NGN",
        "provider": "2",
        "data_plan": "100MB",
        "merchant_reference": "123456",
        "created_at": "2022-08-24T15:53:08.000Z"
      },
      {
        "id": 11,
        "merchant_email": "[email protected]",
        "phone_number": "09063790051",
        "reference": "20220824165146nmt6zb0v8qpke4u6yan9so",
        "status": "pending",
        "refunded": 0,
        "network": "MTN",
        "request_id": null,
        "amount": 100,
        "amount_charged": 100,
        "currency": "NGN",
        "provider": "2",
        "data_plan": "100MB",
        "merchant_reference": "123456",
        "created_at": "2022-08-24T15:51:47.000Z"
      },
      {
        "id": 10,
        "merchant_email": "[email protected]",
        "phone_number": "09063790051",
        "reference": "20220824164814r8w3yrqp0cqcoxjm9urgkv",
        "status": "successful",
        "refunded": 0,
        "network": "MTN",
        "request_id": null,
        "amount": 50,
        "amount_charged": 50,
        "currency": "NGN",
        "provider": "1",
        "data_plan": "MTN N50 50MB - (24 Hours)",
        "merchant_reference": "123456",
        "created_at": "2022-08-24T15:48:15.000Z"
      },
      {
        "id": 9,
        "merchant_email": "[email protected]",
        "phone_number": "09063790051",
        "reference": "20220823092554gei1qq08nm5bv0sf8wdfcl",
        "status": "successful",
        "refunded": 0,
        "network": "MTN",
        "request_id": null,
        "amount": 50,
        "amount_charged": 0,
        "currency": "NGN",
        "provider": "1",
        "data_plan": "MTN N50 50MB - (24 Hours)",
        "merchant_reference": "123456",
        "created_at": "2022-08-23T08:25:55.000Z"
      },
      {
        "id": 8,
        "merchant_email": "[email protected]",
        "phone_number": "09052137639",
        "reference": "20220823015152ggl763y5a5t1xftwfaggox",
        "status": "successful",
        "refunded": 0,
        "network": "GLO",
        "request_id": null,
        "amount": 25,
        "amount_charged": 0,
        "currency": "NGN",
        "provider": "2",
        "data_plan": "250MB",
        "merchant_reference": "123456",
        "created_at": "2022-08-23T00:51:53.000Z"
      },
      {
        "id": 7,
        "merchant_email": "[email protected]",
        "phone_number": "09052137639",
        "reference": "20220823015123m9aq39spaqecfle1k2fxfh",
        "status": "successful",
        "refunded": 0,
        "network": "GLO",
        "request_id": null,
        "amount": 25,
        "amount_charged": 0,
        "currency": "NGN",
        "provider": "2",
        "data_plan": "250MB",
        "merchant_reference": "123456",
        "created_at": "2022-08-23T00:51:24.000Z"
      },
      {
        "id": 6,
        "merchant_email": "[email protected]",
        "phone_number": "09052137639",
        "reference": "20220823014928bw729q9lvpj7k1mj3l63la",
        "status": "pending",
        "refunded": 0,
        "network": "GLO",
        "request_id": null,
        "amount": 25,
        "amount_charged": 0,
        "currency": "NGN",
        "provider": "2",
        "data_plan": "250MB",
        "merchant_reference": "123456",
        "created_at": "2022-08-23T00:49:29.000Z"
      },
      {
        "id": 5,
        "merchant_email": "[email protected]",
        "phone_number": "09052137639",
        "reference": "20220823004208mj08wxzyj7iw665e9etsv",
        "status": "successful",
        "refunded": 0,
        "network": "GLO",
        "request_id": null,
        "amount": 100,
        "amount_charged": 0,
        "currency": "NGN",
        "provider": "1",
        "data_plan": "Glo Data N100 -  150MB - 1 day",
        "merchant_reference": "123456",
        "created_at": "2022-08-22T23:42:08.000Z"
      },
      {
        "id": 4,
        "merchant_email": "[email protected]",
        "phone_number": "09052137639",
        "reference": "202208230017218dps32emq19wjncfy1mkt",
        "status": "pending",
        "refunded": 0,
        "network": "GLO",
        "request_id": null,
        "amount": 100,
        "amount_charged": 0,
        "currency": "NGN",
        "provider": "1",
        "data_plan": "250MB",
        "merchant_reference": "123456",
        "created_at": "2022-08-22T23:17:21.000Z"
      }
    ],
    "pagination": {
      "perPage": 10,
      "currentPage": 1,
      "nextPage": 2,
      "prevPage": null,
      "totalPages": 2,
      "total": 13
    }
  }
}
Query Params
string
Defaults to 1
string
Defaults to 10
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json