get('/user', function (Request $request) { return $request->user(); }); //Comman Route::post('/send_otp', 'Api\CommonController@sendOTP')->name('send_otp'); Route::post('/verify_otp', 'Api\CommonController@verifyOtp')->name('verify_otp'); Route::post('/check_referral_code', 'Api\CommonController@checkReferralCode')->name('check_referral_code'); Route::get('/get_bank_list', 'Api\CommonController@getBankList')->name('get_bank_list'); Route::post('/check_valied_card_bank', 'Api\CommonController@checkValiedCardBank')->name('check_valied_card_bank'); //AUTH Route::group(['middleware' => ['jwt.verify']], function () { Route::post('/user_register', 'Api\AuthController@userRegister')->name('user_register'); //KYC Verification Route::post('/enter_pancard_number', 'Api\CommonController@enterPancardNumber')->name('enter_pancard_number'); Route::post('/gst_number_verification', 'Api\CommonController@gstNumberVerification')->name('gst_number_verification'); Route::post('/validate_with_otp', 'Api\CommonController@validateWithOTP')->name('validate_with_otp'); Route::post('/otp_validate', 'Api\CommonController@otpValidate')->name('otp_validate'); Route::post('/verify_account_number', 'Api\CommonController@verifyAccountNumber')->name('verify_account_number'); //GST Route::post('/add_business', 'Api\CommonController@addBusiness')->name('add_business'); //Services Route::get('/get_api_services', 'Api\CommonController@getApiServices')->name('get_api_services'); Route::post('/get_category', 'Api\CommonController@getCategorys')->name('get_category'); //************************ Rental Start **********************// //Add Payee Bank Route::post('/add_payee_bank', 'Api\BankController@addPayeeBank')->name('add_payee_bank'); Route::get('/payee_bank_list', 'Api\BankController@payeeBankList')->name('payee_bank_list'); Route::get('/delete_payee_bank/{id}', 'Api\BankController@deletePayeeBank')->name('delete_payee_bank'); Route::post('/update_vendor_gst', 'Api\BankController@updateVendorGst'); Route::get('/vendor_verify_response/{id}', 'Api\BankController@vendorVerifyResponse'); //Add Rental Route::post('/add_rental_detail', 'Api\BankController@addRentalDetail')->name('add_rental_detail'); Route::get('/rental_detail_list', 'Api\BankController@rentalDetailList')->name('rental_detail_list'); Route::get('/delete_rental_detail/{id}', 'Api\BankController@deleteRentalDetail')->name('delete_rental_detail'); //Rental Payout Route::post('/rental_payment_details', 'Api\UtilityController@RentalPaymentDetails')->name('rental_payment_details'); Route::post('/pay_rental_payment', 'Api\UtilityController@payRentalPayment')->name('pay_rental_payment'); Route::post('/get_payment_rental_historys', 'Api\UtilityController@getPaymentRentalHistory')->name('get_payment_rental_historys'); //************************ Rental END **********************// //************************ Credit Card Start **********************// //Card Add Route::post('/add_new_card', 'Api\CardController@addNewCard')->name('add_new_card'); Route::get('/get_card', 'Api\CardController@getCard')->name('get_card'); Route::get('/delete_card/{id}', 'Api\CardController@deleteCard')->name('delete_card'); //Credit Card Payment Route::post('/credit_card_bill_payment_details', 'Api\UtilityController@creditBillPayment')->name('credit_card_bill_payment_details'); Route::post('/credit_pay_bill_world_line', 'Api\UtilityController@creditPayBillWorldLine')->name('credit_pay_bill_world_line'); Route::post('/credit_pay_bill', 'Api\UtilityController@creditPayBill')->name('credit_pay_bill'); Route::post('/get_credit_pay_history', 'Api\UtilityController@getCreditPayHistory')->name('get_credit_pay_history'); //************************ Credit Card END **********************// //************************ Utility Start **********************// //Bill Payment Route::post('/bill_operator_list', 'Api\UtilityController@BillOperatorList')->name('bill_operator_list'); Route::post('/fetch_bill_details', 'Api\UtilityController@fetchBillDetails')->name('fetch_bill_details'); Route::post('/utility_bill_payment_details', 'Api\UtilityController@utilityBillPayment')->name('utility_bill_payment_details'); Route::post('/pay_bill', 'Api\UtilityController@payBill')->name('pay_bill'); Route::post('/pay_bill_history', 'Api\UtilityController@payBillHistory')->name('pay_bill_history'); Route::post('/nsdl_transaction_compliant', 'Api\UtilityController@nsdlTransactionCompliant')->name('nsdl_transaction_compliant'); Route::get('/nsdl-compliant-status-check/{id}', 'Api\UtilityController@nsdlCompliantStatusCheck')->name('nsdl-compliant-status-check'); Route::post('/get-transaction-compliant-list', 'Api\UtilityController@getTransactionCompliantList')->name('get-transaction-compliant-list'); //************************ Utility End **********************// //Profile Route::get('/get_profile', 'Api\AuthController@getProfile')->name('get_profile'); Route::post('/update_profile', 'Api\AuthController@updateProfile')->name('update_profile'); Route::post('/add_gst', 'Api\AuthController@addGST')->name('add_gst'); Route::get('/get_gst', 'Api\AuthController@getGst')->name('get_gst'); //Credit Card to credit card payment Route::post('/credit_card_to_credit_card_payment', 'Api\CommonController@creditCardToCreditCardPayment')->name('credit_card_to_credit_card_payment'); //Need Help Route::post('/need_help', 'Api\CommonController@needHelpPost')->name('need_help'); Route::post('/get_referral_users', 'Api\CommonController@getReferralUsers')->name('get_referral_users'); }); /* |-------------------------------------------------------------------------- | WhatsApp bot API (Chatieons) |-------------------------------------------------------------------------- | Service-to-service only: the caller proves itself with BOT_SERVICE_TOKEN, | then every protected call is scoped to the retailer whose mobile number | matches the WhatsApp contact, via a verified bot_sessions row. */ Route::group(['prefix' => 'bot', 'middleware' => ['bot.service'], 'namespace' => 'Api'], function () { // Login Route::post('/auth/start', 'BotController@authStart'); Route::post('/auth/verify', 'BotController@authVerify'); Route::post('/auth/status', 'BotController@authStatus'); Route::post('/auth/logout', 'BotController@authLogout'); // Customers Route::post('/customers/search', 'BotController@customerSearch'); Route::post('/customers/select', 'BotController@customerSelect'); Route::post('/customers/create', 'BotController@customerCreate'); // Cards Route::post('/cards/list', 'BotController@cardList'); Route::post('/cards/select', 'BotController@cardSelect'); Route::post('/cards/session', 'BotController@cardSession'); // Bill requests Route::post('/quote', 'BotController@quote'); Route::post('/bill-request', 'BotController@billRequest'); Route::post('/request-status', 'BotController@requestStatus'); // POS-slip withdraw. Inme OTP session NAHI lagta - retailer ka WhatsApp // number hi pehchaan hai, wahi tareeka jo customer flow me hai. Upar wale // endpoints abhi bhi bot_sessions par chalte hain. // Deposit template ke button se seedha yahan - list skip. Route::post('/withdraw/resume', 'BotWithdrawController@resume'); Route::post('/withdraw/pending', 'BotWithdrawController@pending'); Route::post('/withdraw/select', 'BotWithdrawController@select'); Route::post('/withdraw/slip', 'BotWithdrawController@slip'); Route::post('/withdraw/options', 'BotWithdrawController@options'); Route::post('/withdraw/confirm', 'BotWithdrawController@confirm'); // Bina request chune slip - card se request dhoondho/banao, warna Slip Inbox. Route::post('/withdraw/direct', 'BotWithdrawController@direct'); Route::post('/withdraw/direct-choose', 'BotWithdrawController@directChoose'); }); /* |-------------------------------------------------------------------------- | WhatsApp bot API — customers (Chatieons) |-------------------------------------------------------------------------- | No login: the WhatsApp number is the identity, resolved against | customers.customer_mobile_number on every call, and the retailer is derived | from customers.user_id. Nothing here moves money — the only write is a | pending credit_card_bill_requests row. */ Route::group(['prefix' => 'bot/customer', 'middleware' => ['bot.service'], 'namespace' => 'Api'], function () { Route::post('/identify', 'CustomerBotController@identify'); Route::post('/select-shop', 'CustomerBotController@selectShop'); Route::post('/cards', 'CustomerBotController@cards'); Route::post('/select-card', 'CustomerBotController@selectCard'); Route::post('/card/extract', 'CustomerBotController@cardExtract'); Route::post('/card/manual', 'CustomerBotController@cardManual'); Route::post('/card/register-mobile', 'CustomerBotController@cardRegisterMobile'); Route::post('/card/confirm', 'CustomerBotController@cardConfirm'); // Card to Bank: amount se pehle bank account chunwana Route::post('/banks', 'CustomerBotController@banks'); Route::post('/select-bank', 'CustomerBotController@selectBank'); Route::post('/bank/add', 'CustomerBotController@bankAdd'); Route::post('/bank/extract', 'CustomerBotController@bankExtract'); // Card to Card: amount se pehle deposit wala card chunwana Route::post('/deposit-cards', 'CustomerBotController@depositCards'); Route::post('/select-deposit-card', 'CustomerBotController@selectDepositCard'); // Card + bank / deposit card + amount ek page par (link) Route::post('/pay-form', 'CustomerBotController@payForm'); // Wahi, WhatsApp ke andar wale form (WhatsApp Flows) ke liye Route::post('/pay-options', 'CustomerBotController@payOptions'); Route::post('/pay-submit', 'CustomerBotController@paySubmit'); Route::post('/quote', 'CustomerBotController@quote'); Route::post('/bill-request', 'CustomerBotController@billRequest'); Route::post('/charge-qr', 'CustomerBotController@chargeQr'); Route::post('/charge-pay', 'CustomerBotController@chargePay'); Route::post('/request-status', 'CustomerBotController@requestStatus'); });