API Documentation

Agent Login API Documentation

Agent Login API

Overview

The Agent Login API authenticates agents and returns user details and session information.

Endpoint

URL: https://techvibs.com/api_agents_login.php
Method: POST
Content-Type: application/json

Request Format

FieldTypeRequiredDescription
fintech_idStringYesFintech identifier (e.g., SmartPay).
emailStringYesAgent's email address.
passwordStringYesAgent's password.

Example Request:


{
    "fintech_id": "SmartPay",
    "email": "dayoallen@mbbsolutions.tech",
    "password": "your_password"
}
            

Response Format

Success Response

Status Code: 200 OK


{
    "status": "success",
    "data": {
        "id": 123,
        "fintech_id": "SmartPay",
        "firstname": "Dayo",
        "middlename": "",
        "lastname": "Allen",
        "email": "dayoallen@mbbsolutions.tech",
        "virtualbal": 1000.00,
        "virtualaccnum": "1234567890",
        "virtualaccname": "Dayo Allen",
        "virtualbank": "SmartBank",
        "bankcode": "001",
        "customer_id": "CUST123"
    },
    "session": {
        "id": "session_abc123",
        "expires_at": "2025-04-30 12:00:00"
    }
}
            

Error Response

Status Code: 200 OK


{
    "status": "error",
    "message": "Invalid credentials"
}
            

Test Credentials

Notes

Test Agent Login

Response will appear here...