Get bet records

You can retrieve a single betting record by parsing in the reference of the betting record

Example Request

var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
  'type': 'Bet9ja',
  'customer_id': '14196892',
  'name': 'JOHN DOE',
  'amount': '500',
  'merchant_reference': '123456' 
});
var config = {
  method: 'post',
  url: 'http://localhost:4000/bet_account/pay',
  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": "Bet record returned",
  "data": {
    "id": 5,
    "merchant_email": "johndoe@gmail.com",
    "reference": "202208241337JAFEDAF",
    "status": "successful",
    "refunded": 0,
    "customer_id": "15096891",
    "amount": 500,
    "amount_charged": 500,
    "currency": "NGN",
    "provider": "1",
    "merchant_reference": "123456785",
    "type": "Bet9ja",
    "trx_id": "16613410491207224533742404009",
    "name": "CHIBUOKEM IBEZIM",
    "created_at": "2022-08-24T11:37:27.000Z"
  }
Language
Credentials
Header
Click Try It! to start a request and see the response here!