Bayarcash
Bayarcash
  • Welcome
  • Bank List
    • FPX
    • DuitNow Online Banking/Wallets
  • Portal
    • Portal List
    • Create Portal
  • Payment
    • Payment Channel
    • Payment Intent
    • Payment Intent ID
  • Transaction
    • Callback
    • Transaction ID
    • All Transactions
  • Checksum
    • Checksum Validation
    • Payment Intent
    • Transaction Callback
  • Direct Debit
    • e-Mandate Enrollment
    • e-Mandate Maintenance
    • e-Mandate Termination
    • Callback
    • Mandate ID
    • Mandate Transaction ID
  • Enterprise Partner
    • Merchant Registration
    • Payout Bank List
    • Merchant Status
    • Merchant Payout ID
    • All Merchant Payouts
  • Sitelink
    • GitHub @webimpian
Powered by GitBook
On this page
  1. Portal

Portal List


v2 GET console.bayar.cash/api/v2/portals v3 GET api.console.bayar.cash/v3/portals


Retrieve list of portal in Bayarcash. Example of sending GET request with cURL.

curl -X GET https://api.console.bayar.cash/v3/portals \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer <Personal_Access_Token>'

Example of JSON structured response.

{
    "data": [
        {
            "id": 931,
            "created_at": "2024-10-19 12:47:07",
            "portal_key": "8baf5e234dd88c2d1375d5f386d78d8f",
            "portal_name": "Payment Link",
            "url": "https://bcl.my/",
            "transaction_notification_email": "hai@bayarcash.com",
            "custom_payment_button_text": null,
            "payment_channels": [
                {
                    "id": 1,
                    "code": "FPX",
                    "name": "FPX"
                },
                {
                    "id": 3,
                    "code": "FpxDirectDebit",
                    "name": "Direct Debit"
                },
                {
                    "id": 4,
                    "code": "FpxLineOfCredit",
                    "name": "FPX Line of Credit"
                }
            ]
        }
    ],
    "links": {
        "first": "https://api.console.bayar.cash/v3/portals?page=1",
        "last": "https://api.console.bayar.cash/v3/portals?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://api.console.bayar.cash/v3/portals?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://api.console.bayar.cash/v3/portals",
        "per_page": 15,
        "to": 2,
        "total": 2,
        "merchant": {
            "name": "Bayarcash Sdn. Bhd.",
            "email": "hai@bayarcash.com",
            "created_at": "2024-10-19 12:45:42"
        }
    }
}

PreviousDuitNow Online Banking/WalletsNextCreate Portal

Last updated 4 months ago