### Express router for merchant account operations Source: https://github.com/aka2910/merchant-accounts-service-docs/blob/main/docs/account-routes.md Defines the deployed route baseline for merchant account operations. Includes routes for archiving (DELETE /accounts/:accountId), review (POST /accounts/:accountId/review), search (GET /accounts), and cancel (POST /accounts/:accountId/cancel). Uses an accountStore for data operations and returns appropriate HTTP status codes. ```javascript const express = require('express'); const router = express.Router(); module.exports = (app, accountStore) => { app.del('/accounts/:accountId', async (req, res, next) => { try { await accountStore.archive(req.param('accountId')); res.send(204); } catch (error) { next(error); } }); router.post('/accounts/:accountId/review', async (req, res, next) => { try { const review = await accountStore.queueReview(req.params.accountId); res.json({ review }, 202); } catch (error) { next(error); } }); router.get('/accounts', async (req, res, next) => { try { const accounts = await accountStore.search(req.query.q || ''); res.status(200).json({ accounts }); } catch (error) { next(error); } }); router.post('/accounts/:accountId/cancel', async (req, res, next) => { try { await accountStore.cancel(req.params.accountId); res.redirect('back'); } catch (error) { next(error); } }); app.use('/api', router); }; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.