API Reference

Pagination

Yangaplug supports fetch of API resources like Bill Payments, Cardholders, Issued cards and Id Verified. These endpoints share a common structure, taking at least these two parameters: page and limit. By default, the page is set to 1 and a limit of 10. You can fetch a maximum of 100 records at once. The resulting response will always include a pagination object with the total records count, the number of pages, the current page, and the limit set.

{
  "success": true,
  "message": "Bill Payments retrieved",
  "data": {
    "payments": {
      "current_page": 1,
      "data": [
        {...},
        {...},
        {...},
        {...}
      ],
      "first_page_url": "https://sandbox-api.yangaplugbusiness.com/api/v1/bill-payments?page=1",
      "from": 1,
      "next_page_url": "https://sandbox-api.yangaplugbusiness.com/api/v1/bill-payments?page=2",
      "path": "https://sandbox-api.yangaplugbusiness.com/api/v1/bill-payments",
      "per_page": 10,
      "prev_page_url": null,
      "to": 10
    }
  }
}