All API endpoints are authenticated using Bearer tokens and picked up from the specification file.
// Include the UpamPay PHP libraryrequire_once 'upampay-php/init.php';// Set API key\UpamPay\UpamPay::setApiKey(UPAMPAY_API_KEY);// Retrieve JSON from POST body$jsonStr = file_get_contents('php://input');$jsonObj = json_decode($jsonStr);