{
    "name": "M-Pesa Payment Gateway API",
    "version": "1.0.0",
    "environment": "sandbox",
    "endpoints": [
        {
            "method": "POST",
            "path": "\/api\/initiate",
            "description": "Initiate STK Push payment",
            "body": {
                "amount": "integer (required)",
                "phone": "string (required) - Phone number (e.g., 0712345678)",
                "account_reference": "string (optional)",
                "transaction_desc": "string (optional)"
            }
        },
        {
            "method": "GET",
            "path": "\/api\/status?checkoutRequestID={id}",
            "description": "Query payment status"
        },
        {
            "method": "POST",
            "path": "\/api\/callback",
            "description": "M-Pesa callback endpoint (internal)"
        }
    ]
}