D MALL ONLINE API reference
The same API as the original D MALL ONLINE, scoped to your private sandbox. Every operation id doubles as an MCP tool name.
Authentication
Send your personal API key with every request. Create keys under Account → API keys; each key works only on your own sandbox.
curl -H "Authorization: Bearer mbz_xxxxxxxxxxxxxxxx_xxxxxxxx…" \
"https://dmall.online/api/v1/flights?origin=DEL&destination=BOM&date=2026-11-06"
The base URL is https://dmall.online. Paths, parameters, request bodies and responses are identical to the original D MALL ONLINE FastAPI service, so existing clients only need the new base URL and the Authorization header.
Errors & limits
- Errors return
{"detail": "…"}with a meaningful status:404not found,409conflict (for example insufficient funds or a booked slot),422validation errors (a list of{loc, msg}items, as in FastAPI). 401missing or invalid key ·403read-only key used for a change, or account not approved ·429rate limit exceeded (seeRetry-After).- Each response carries
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset. - Request bodies are JSON (
Content-Type: application/json), up to 64 KB.
Customers
Shared customer identity across all modules
/api/v1/customerslist_customersList customers
/api/v1/customerscreate_customerCreate a customer
/api/v1/customers/by-emailget_customer_by_emailLook up a customer by email
/api/v1/customers/{customer_id}get_customerGet a customer
/api/v1/customers/{customer_id}update_customerUpdate a customer
/api/v1/customers/{customer_id}delete_customerDelete a customer
Bank
D MALL ONLINE Bank: accounts, transactions, transfers, cards and loans
/api/v1/bank/brancheslist_bank_branchesList bank branches · All D MALL ONLINE Bank branches with IFSC codes, optionally filtered by city.
/api/v1/bank/accountslist_bank_accountsList a customer's bank accounts · Every account (savings, salary, current) held by the customer, with live balances.
/api/v1/bank/accountsopen_bank_accountOpen a bank account
/api/v1/bank/accounts/{account_number}get_bank_accountGet account details
/api/v1/bank/accounts/{account_number}/balanceget_account_balanceGet account balance · Ledger and available balance (available includes any overdraft limit).
/api/v1/bank/accounts/{account_number}/transactionslist_account_transactionsGet account statement · Transactions newest first, with filters for date range, type, category, channel, amount and free text.
/api/v1/bank/accounts/{account_number}/spending-summaryget_spending_summarySpending by category · Totals spent and received over the last N days, broken down by category.
/api/v1/bank/accounts/{account_number}/depositdeposit_moneyDeposit money
/api/v1/bank/accounts/{account_number}/withdrawwithdraw_moneyWithdraw money · Debit cash (ATM/branch). Fails with 409 if funds are insufficient.
/api/v1/bank/transferstransfer_fundsTransfer funds · Send money to another D MALL ONLINE Bank account (`to_account`) or a saved beneficiary (`beneficiary_id`).
/api/v1/bank/beneficiarieslist_beneficiariesList saved payees
/api/v1/bank/beneficiariesadd_beneficiaryAdd a payee
/api/v1/bank/beneficiaries/{beneficiary_id}delete_beneficiaryRemove a payee
/api/v1/bank/cardslist_cardsList debit and credit cards
/api/v1/bank/cards/{card_id}/blockblock_cardBlock a card · Temporarily block a lost or compromised card.
/api/v1/bank/cards/{card_id}/unblockunblock_cardUnblock a card
/api/v1/bank/loanslist_loansList a customer's loans
/api/v1/bank/loans/{loan_number}get_loanGet loan details
/api/v1/bank/customers/summaryget_customer_bank_summaryCustomer's financial overview · One-call snapshot: balances across accounts, credit card dues, loans, EMIs and net position.
Shop
D MALL ONLINE Shop: products, cart and orders
/api/v1/shop/categorieslist_product_categoriesList product categories
/api/v1/shop/brandslist_brandsList brands
/api/v1/shop/productssearch_productsSearch products · Catalogue search with filters. `in_stock` limits results to products with units in any warehouse.
/api/v1/shop/productscreate_productCreate a product
/api/v1/shop/products/{product_ref}get_productGet a product by id or SKU
/api/v1/shop/products/{product_id}update_productUpdate a product
/api/v1/shop/couponslist_couponsList active coupons
/api/v1/shop/cartget_cartView cart
/api/v1/shop/cart/itemsset_cart_itemAdd, update or remove a cart item · Set the quantity of a product in the cart (0 removes it).
/api/v1/shop/cart/checkoutcheckout_cartCheckout cart · Place an order for everything in the cart, then empty it.
/api/v1/shop/ordersplace_orderPlace an order · Buy specific products directly. Stock is allocated from one warehouse, preferring the shipping city.
/api/v1/shop/orderslist_ordersList orders
/api/v1/shop/orders/{order_number}get_orderGet / track an order · Full order detail including tracking history.
/api/v1/shop/orders/{order_number}/cancelcancel_orderCancel an order · Allowed before shipping. Restocks items and refunds prepaid orders.
/api/v1/shop/orders/{order_number}/returnreturn_orderReturn an order · Allowed within 10 days of delivery.
/api/v1/shop/orders/{order_number}/advanceadvance_order_statusAdvance fulfilment status · Operations tool: move PLACED → PACKED → SHIPPED → OUT_FOR_DELIVERY → DELIVERED.
Inventory
Warehouses, stock levels, movements and purchase orders
/api/v1/inventory/warehouseslist_warehousesList warehouses
/api/v1/inventory/summaryget_inventory_summaryStock summary per warehouse · SKU count, units on hand, stock value at cost, low-stock lines and utilisation for each warehouse.
/api/v1/inventory/stocklist_stock_levelsQuery stock levels
/api/v1/inventory/low-stocklist_low_stockLow-stock alerts · Lines at or below their reorder level. These are candidates for a purchase order.
/api/v1/inventory/adjustadjust_stockAdjust stock · Manual correction (cycle count, damage, shrinkage). Recorded as an ADJUSTMENT movement.
/api/v1/inventory/transfertransfer_stockTransfer stock between warehouses
/api/v1/inventory/movementslist_stock_movementsStock movement ledger
/api/v1/inventory/supplierslist_suppliersList suppliers
/api/v1/inventory/purchase-orderslist_purchase_ordersList purchase orders
/api/v1/inventory/purchase-orderscreate_purchase_orderRaise a purchase order · Order stock from the product's supplier. The expected date follows the supplier's lead time.
/api/v1/inventory/purchase-orders/{po_number}/receivereceive_purchase_orderReceive a purchase order · Mark goods received. Adds stock and records a RECEIPT movement.
/api/v1/inventory/purchase-orders/{po_number}/cancelcancel_purchase_orderCancel a purchase order
Healthcare
D MALL ONLINE Health: hospitals, doctors, slots and appointments
/api/v1/healthcare/specializationslist_specializationsList specialities · Specialities with doctor counts and fee range, optionally within a city.
/api/v1/healthcare/hospitalslist_hospitalsList hospitals and clinics
/api/v1/healthcare/doctorssearch_doctorsFind doctors
/api/v1/healthcare/doctors/{doctor_id}get_doctorGet doctor profile
/api/v1/healthcare/doctors/{doctor_id}/availabilityget_doctor_availabilityGet free appointment slots · Free slots grouped by date. Book one with POST /healthcare/appointments using its slot id.
/api/v1/healthcare/appointmentsbook_appointmentBook an appointment · Reserve a free slot for a patient. The fee depends on the slot mode (in-person or video).
/api/v1/healthcare/appointmentslist_appointmentsList appointments
/api/v1/healthcare/appointments/{appointment_ref}get_appointmentGet an appointment
/api/v1/healthcare/appointments/{appointment_ref}/cancelcancel_appointmentCancel an appointment · Frees the slot. Full refund if cancelled 4+ hours before the visit, otherwise 50%.
/api/v1/healthcare/appointments/{appointment_ref}/reschedulereschedule_appointmentReschedule an appointment · Move to another free slot with the same doctor.
Flights
Airports, airlines, flight search and fare calendar
/api/v1/flights/airportslist_airportsList airports
/api/v1/flights/airlineslist_airlinesList airlines
/api/v1/flightssearch_flightsSearch flights · Find flights with seats available in the requested cabin, priced per traveller.
/api/v1/flightscreate_flightCreate a flight
/api/v1/flights/fare-calendarget_fare_calendarLowest fare per day
/api/v1/flights/{flight_id}get_flightGet a flight
/api/v1/flights/{flight_id}update_flightUpdate a flight
/api/v1/flights/{flight_id}delete_flightDelete a flight
/api/v1/flights/{flight_id}/cabins/{cabin_id}update_flight_cabinUpdate cabin fare / inventory
Trains
Stations and train runs with class-wise availability
/api/v1/trains/stationslist_train_stationsList railway stations
/api/v1/trains/typeslist_train_typesList train types
/api/v1/trainssearch_trainsSearch trains
/api/v1/trainscreate_trainCreate a train run
/api/v1/trains/{train_id}get_trainGet a train run
/api/v1/trains/{train_id}update_trainUpdate a train run
/api/v1/trains/{train_id}delete_trainDelete a train run
Buses
Intercity coaches and operators
/api/v1/buses/citieslist_bus_citiesList cities served by bus
/api/v1/buses/operatorslist_operatorsList bus operators
/api/v1/busessearch_busesSearch buses
/api/v1/busescreate_busCreate a bus departure
/api/v1/buses/{bus_id}get_busGet a bus
/api/v1/buses/{bus_id}update_busUpdate a bus departure
/api/v1/buses/{bus_id}delete_busDelete a bus departure
Hotels
Properties and room types
/api/v1/hotels/citieslist_hotel_destinationsDestinations with hotel counts
/api/v1/hotelssearch_hotelsSearch hotels · Hotels with at least one room type that fits the party. `starting_price` reflects matching rooms only.
/api/v1/hotelscreate_hotelCreate a hotel
/api/v1/hotels/{hotel_id}get_hotelGet a hotel with all room types
/api/v1/hotels/{hotel_id}update_hotelUpdate a hotel
/api/v1/hotels/{hotel_id}delete_hotelDelete a hotel
/api/v1/hotels/{hotel_id}/roomsadd_hotel_roomAdd a room type
/api/v1/hotels/{hotel_id}/rooms/{room_id}update_hotel_roomUpdate a room type
/api/v1/hotels/{hotel_id}/rooms/{room_id}delete_hotel_roomDelete a room type
Bookings
Create, retrieve and cancel travel bookings
/api/v1/bookingslist_travel_bookingsList bookings
/api/v1/bookings/{booking_ref}get_travel_bookingGet a booking by reference
/api/v1/bookings/flightsbook_flightBook a flight
/api/v1/bookings/trainsbook_trainBook a train
/api/v1/bookings/busesbook_busBook a bus
/api/v1/bookings/hotelsbook_hotelBook a hotel
/api/v1/bookings/{booking_ref}/cancelcancel_travel_bookingCancel a booking (refund per policy) · Releases inventory and computes the refund: ≥72h 90%, ≥24h 60%, ≥4h 25% (hotels: free ≥48h if refundable).
Insights
Aggregated metrics
/api/v1/stats/overviewget_travel_overviewDashboard KPIs, trends and top destinations
/api/v1/stats/platformget_platform_overviewCross-module platform KPIs · Headline numbers for every D MALL ONLINE module: travel, bank, shop, inventory and healthcare.
/healthhealth_checkLiveness and database check