API reference
Endpoint reference for connected accounts, payments, and dashboard APIs.
API reference
Base URL: https://api.lakipay.co/api/v2
Endpoints below use master X-API-Key unless noted. Dashboard routes require JWT Bearer with CanActAsMaster.
Connected Accounts
/lakiconnect/connected-accountsCreate a new connected account under the authenticated master merchant.
/lakiconnect/connected-accountsList connected accounts. Supports filters such as page, page_size, status, created_from, created_to, and q. Response includes merchant details, configuration, and pagination metadata for admin dashboards.
- Query: page, page_size, status, created_from, created_to, q
/lakiconnect/connected-accounts/:idRetrieve a single connected account. Returns merchant core details plus associated bank accounts and their statuses — use for detailed merchant views, KYC status display, and bank account verification.
/lakiconnect/connected-accounts/kyc-documentsUpload KYC documents for a connected account.
- Content-Type: multipart/form-data
- Fields: tin, business_license, national_id
/lakiconnect/connected-accounts/walletRetrieve wallet aggregate for a connected account.
/lakiconnect/connected-accounts/webhook-settingsRetrieve master LakiConnect webhook settings.
/lakiconnect/connected-accounts/webhook-settingsCreate or update master LakiConnect webhook settings.
- Body: webhook_url (string), webhook_secret (string), webhook_enabled (boolean)
/lakiconnect/connected-accounts/fee-configRetrieve fee configuration for master default or a connected account.
- Optional header: X-Connected-Merchant-Id
- Without header: master default; with header: resolved per-connected config
/lakiconnect/connected-accounts/fee-configUpsert fee configuration for master default or a connected override.
- Optional header: X-Connected-Merchant-Id
- Body: fee_model (FREE | PERCENT | FIXED), fee_value (number)
Payments
/payment/directInitiate a direct payment attributed to a connected merchant.
- Optional: X-Connected-Merchant-Id (enables split settlement)
/payment/checkoutCreate a hosted checkout session optionally tied to a connected merchant.
- Optional: X-Connected-Merchant-Id
Dashboard (JWT)
All dashboard routes require a JWT Bearer token and CanActAsMaster permission.
/lakiconnect/dashboard/connected-accountsList connected accounts.
/lakiconnect/dashboard/connected-accounts/:idGet account detail with resolved fee context.
/lakiconnect/dashboard/connected-accounts/:id/price-configUpdate fee config for an account.
/lakiconnect/dashboard/connected-accounts/:id/transactionsList transactions for an account.
/lakiconnect/dashboard/connected-accounts/:id/wallet-balanceWallet balance for an account.
Pagination
List endpoints return a consistent pagination envelope:
{
"data": [...],
"pagination": {
"page": 1,
"per_page": 20,
"total": 150,
"total_pages": 8
}
}Pass ?page=2&per_page=50 to navigate pages.