{"info":{"_postman_id":"e8a085ad-5146-4903-9729-d09fe304ad05","name":"DMart Self Checkout API Documentation","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"39216531","collectionId":"e8a085ad-5146-4903-9729-d09fe304ad05","publishedId":"2sBYHQ12bh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-10-08T08:25:33.000Z"},"item":[{"name":"Auth","item":[{"name":"Admin","id":"75dbf4bf-8c07-4545-ae97-79c39682ba18","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"admin@dmart.com\",\r\n  \"password\": \"admin123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/auth/login/","description":"<p>Authenticates a user using email and password. Returns an access token (JWT) to be used as a Bearer Token in other requests.</p>\n","urlObject":{"protocol":"https","path":["api","auth","login",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"75dbf4bf-8c07-4545-ae97-79c39682ba18"},{"name":"customer","id":"a948faa4-4acc-4d36-8c6f-c0966f700a14","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Kiran Chaudhary\",\r\n  \"email\": \"kiran@example.com\",\r\n  \"password\": \"Password@123\",\r\n \"confirm_password\": \"Password@123\",\r\n  \"phone\": \"9876543210\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/auth/register/","description":"<p>Creates a new customer account in the system. Required fields: name, email, password, and phone number.</p>\n","urlObject":{"protocol":"https","path":["api","auth","register",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"a948faa4-4acc-4d36-8c6f-c0966f700a14"},{"name":"Security","id":"e657c575-cdcd-4380-a218-9c63b8bfac9e","request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"security@dmart.com\",\r\n  \"password\": \"Security@123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/auth/login/","description":"<p>Authenticates a user using email and password. Returns an access token (JWT) to be used as a Bearer Token in other requests.</p>\n","urlObject":{"protocol":"https","path":["api","auth","login",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"e657c575-cdcd-4380-a218-9c63b8bfac9e"}],"id":"8f0abc53-d4b1-46b0-8745-d8f91b8e8a8e","_postman_id":"8f0abc53-d4b1-46b0-8745-d8f91b8e8a8e","description":""},{"name":"Product","item":[{"name":"Get All Products","id":"1149312f-5b21-44a7-be39-6ea072c5b710","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dmartselfcheckout.duckdns.org/api/products/","description":"<p><em>Fetches a list of all active products in the store. Admins can see both active and inactive products.</em></p>\n","urlObject":{"protocol":"https","path":["api","products",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"1149312f-5b21-44a7-be39-6ea072c5b710"},{"name":"Barcode Lookup","id":"f49c5c48-cbc5-45e0-9119-a9788cf6e6a6","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/products/barcode/12334/","description":"<p><em>Scans a product's barcode and returns its details (price, name, etc.). Barcode must be passed directly in the URL.</em></p>\n","urlObject":{"protocol":"https","path":["api","products","barcode","12334",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"f49c5c48-cbc5-45e0-9119-a9788cf6e6a6"},{"name":"Adjust Inventory (Admin Only)","id":"53e7da7a-a481-49d1-bee4-d66daa028c2a","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"product_id\": 1,\r\n  \"quantity\": 50,\r\n  \"transaction_type\": \"ADJUST\",\r\n  \"reason\": \"New Stock Arrived\",\r\n  \"reference_id\": \"PO-10023\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/inventory/adjust/","description":"<p><em>Allows admins to manually add or remove stock for a specific product. Used for restocking or damage adjustments.</em></p>\n","urlObject":{"protocol":"https","path":["api","inventory","adjust",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"53e7da7a-a481-49d1-bee4-d66daa028c2a"}],"id":"a72acc99-2918-4f91-904f-d229e9e3cb06","_postman_id":"a72acc99-2918-4f91-904f-d229e9e3cb06","description":""},{"name":"Cart & Coupons","item":[{"name":"Add Item to Cart","id":"2fdb3ae6-2a26-4a8f-8e16-7e338de247cb","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"barcode\": \"12334\",\r\n  \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/cart/items/barcode/","description":"<p><em>Adds a product to the customer's cart using its barcode. If the item already exists, its quantity is increased.</em></p>\n","urlObject":{"protocol":"https","path":["api","cart","items","barcode",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"2fdb3ae6-2a26-4a8f-8e16-7e338de247cb"},{"name":"Remove Item from Cart","id":"e369911a-499d-40d2-976c-940192e75dde","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/cart/items/3/","description":"<p><em>Deletes a specific item from the cart using its unique item_id. Passed directly in the URL.</em></p>\n","urlObject":{"protocol":"https","path":["api","cart","items","3",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"e369911a-499d-40d2-976c-940192e75dde"},{"name":"Get Cart Summary","id":"ee051d44-7771-4344-b70f-75a5ea5a32dd","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dmartselfcheckout.duckdns.org/api/cart/summary/","description":"<p><em>Returns the total items, tax, discounts, and final payable amount of the current active cart.</em></p>\n","urlObject":{"protocol":"https","path":["api","cart","summary",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee051d44-7771-4344-b70f-75a5ea5a32dd"},{"name":"Apply Coupon","id":"37e2ff23-f604-44e1-bc50-b2ce30cc8e27","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"code\": \"WELCOME50\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/coupons/apply/","description":"<p><em>Applies a valid promotional coupon code to the cart to get discounts on the total bill.</em></p>\n","urlObject":{"protocol":"https","path":["api","coupons","apply",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"37e2ff23-f604-44e1-bc50-b2ce30cc8e27"}],"id":"f984b7e6-8f97-4e60-994f-5c371643c3ba","_postman_id":"f984b7e6-8f97-4e60-994f-5c371643c3ba","description":""},{"name":"payment","item":[{"name":"Checkout Order","id":"7a5e8f4e-f7c2-42fe-a8d2-8211c717bf49","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"payment_method\": \"UPI\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/orders/checkout/","description":"<p><em>Converts the active cart into a finalized order. Payment method (CASH/CARD/UPI) must be provided in the body.</em></p>\n","urlObject":{"protocol":"https","path":["api","orders","checkout",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a5e8f4e-f7c2-42fe-a8d2-8211c717bf49"},{"name":"Create Razorpay Order","id":"7c0e34f3-239e-47a9-8f06-a9391ce57870","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"order_number\": \"DMART-20261008-CD2F01\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/orders/checkout/","description":"<p><em>Generates a unique Razorpay Order ID for processing online payments for a specific DMart order.</em></p>\n","urlObject":{"protocol":"https","path":["api","orders","checkout",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c0e34f3-239e-47a9-8f06-a9391ce57870"}],"id":"2190e514-d816-48b6-b3e9-0742a3b68872","_postman_id":"2190e514-d816-48b6-b3e9-0742a3b68872","description":""},{"name":"Exit Verification","item":[{"name":"Generate Exit Token","id":"80f7101e-1d50-4620-816d-1e16d018fecf","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"order_number\": \"DMART-20261008-CD2F01\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/exit-verification/generate/","description":"<p><em>Generates a unique exit token (like A1B2C) for a customer after their payment is successfully verified.</em></p>\n","urlObject":{"protocol":"https","path":["api","exit-verification","generate",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"80f7101e-1d50-4620-816d-1e16d018fecf"}],"id":"8ca0327a-d6fa-4146-82f6-520d24f56fdb","_postman_id":"8ca0327a-d6fa-4146-82f6-520d24f56fdb","description":""},{"name":"admin analytics","item":[{"name":"Dashboard Analytics (Admin Only)","id":"f9eaa74a-7e2a-4e13-b7f7-d356d68cd12d","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dmartselfcheckout.duckdns.org/api/analytics/dashboard/","description":"<p><em>Provides high-level statistics like total sales, active customers, and low-stock alerts for the Admin dashboard.</em></p>\n","urlObject":{"protocol":"https","path":["api","analytics","dashboard",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9eaa74a-7e2a-4e13-b7f7-d356d68cd12d"},{"name":"Adjust Loyalty Points (Admin Only)","id":"6c0f5b65-85b1-4317-8a1e-7e7321dd89f0","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"customer_id\": 2,\r\n  \"points\": 500,\r\n  \"transaction_type\": \"EARN\",\r\n  \"description\": \"Bonus points for loyal customer\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://dmartselfcheckout.duckdns.org/api/loyalty/admin/adjust/","description":"<p><em>Allows admins to manually reward or deduct loyalty points for a specific customer.</em></p>\n","urlObject":{"protocol":"https","path":["api","loyalty","admin","adjust",""],"host":["dmartselfcheckout","duckdns","org"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c0f5b65-85b1-4317-8a1e-7e7321dd89f0"}],"id":"8e359d2c-938e-4eae-b2ed-acd8dabac462","_postman_id":"8e359d2c-938e-4eae-b2ed-acd8dabac462","description":""}]}