{"openapi":"3.1.0","info":{"title":"Sparkle","version":"2.0"},"servers":[{"url":"/","description":"Default Server URL"}],"security":[{"Bearer Authentication":[]}],"paths":{"/v1/customers/{id}":{"get":{"tags":["mobile-customer-controller"],"operationId":"getById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerSummaryDto"}}}}}},"put":{"tags":["mobile-customer-controller"],"operationId":"update","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomerRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerSummaryDto"}}}}}},"delete":{"tags":["mobile-customer-controller"],"operationId":"delete","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/v1/vendor":{"get":{"tags":["vendor-controller"],"operationId":"searchVendor","parameters":[{"name":"vendor","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"put":{"tags":["vendor-controller"],"operationId":"createUpdateVendor","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PosVendorDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/customer":{"get":{"tags":["customer-controller"],"operationId":"searchCustomer","parameters":[{"name":"customer","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"put":{"tags":["customer-controller"],"operationId":"createUpdateCustomer","parameters":[{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/customer/v2":{"get":{"tags":["customer-controller"],"operationId":"searchCustomerV2","parameters":[{"name":"customer","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"put":{"tags":["customer-controller"],"operationId":"createUpdateCustomerV2","parameters":[{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v1/orders":{"post":{"tags":["mobile-orders-controller"],"operationId":"createOrder","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/v1/orders/{billRef}/void":{"post":{"tags":["mobile-bills-controller"],"operationId":"voidBill","parameters":[{"name":"billRef","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VoidResponse"}}}}}}},"/v1/orders/{billRef}/refund":{"post":{"tags":["mobile-bills-controller"],"operationId":"refundBill","parameters":[{"name":"billRef","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RefundResponse"}}}}}}},"/v1/drawer/open":{"post":{"tags":["mobile-drawer-controller"],"operationId":"open","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrawerOpenRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DrawerResponse"}}}}}}},"/v1/drawer/close":{"post":{"tags":["mobile-drawer-controller"],"operationId":"close","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrawerCloseRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DrawerResponse"}}}}}}},"/v1/customers":{"post":{"tags":["mobile-customer-controller"],"operationId":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerSummaryDto"}}}}}}},"/auth/verify-manager-pin":{"post":{"tags":["mobile-auth-controller"],"operationId":"verifyManagerPin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyManagerPinRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/token/refresh":{"post":{"tags":["mobile-auth-controller"],"operationId":"refreshToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRefreshRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MobileAuthResponse"}}}}}}},"/auth/set-pin":{"post":{"tags":["mobile-auth-controller"],"operationId":"setPin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPinRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MobileAuthResponse"}}}}}}},"/auth/otp/verify":{"post":{"tags":["mobile-auth-controller"],"operationId":"verifyOtp","parameters":[{"name":"x-tenant-id","in":"header","required":false,"schema":{"type":"string"}},{"name":"x-otp-phone","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/otp/send":{"post":{"tags":["mobile-auth-controller"],"operationId":"sendOtp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSendRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/auth/login-with-pin":{"post":{"tags":["mobile-auth-controller"],"operationId":"loginWithPin","parameters":[{"name":"x-tenant-id","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/forgot-pin":{"post":{"tags":["mobile-auth-controller"],"operationId":"forgotPin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPinRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/v1/wastage":{"post":{"tags":["wastage-controller"],"operationId":"createWastage","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/upload":{"post":{"tags":["file-upload-controller"],"operationId":"uploadFile","parameters":[{"name":"file_type","in":"query","required":true,"schema":{"type":"string","enum":["INCOME","EXPENSE"]}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"multipartfile":{"type":"string","format":"binary"}},"required":["multipartfile"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/upload/process":{"post":{"tags":["file-upload-controller"],"operationId":"processFile","parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"file_type","in":"query","required":true,"schema":{"type":"string","enum":["INCOME","EXPENSE"]}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/upload/column-mapping":{"post":{"tags":["file-upload-controller"],"operationId":"saveColumnsMapping","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColumnMappingInfo"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/wastage":{"get":{"tags":["reports-controller"],"operationId":"getWastage","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadWastage","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/sale":{"get":{"tags":["reports-controller"],"operationId":"getSales","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadSales","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/sale-bill":{"get":{"tags":["reports-controller"],"operationId":"getSalesBill","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadSalesBill","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/purchase_item":{"get":{"tags":["reports-controller"],"operationId":"getPurchaseItem","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadPurchaseItem","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/purchase_bill":{"get":{"tags":["reports-controller"],"operationId":"getPurchaseBill","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadPurchaseBill","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/profit-loss":{"get":{"tags":["reports-controller"],"operationId":"profitLoss","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadProfitLoss","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/profit-loss-item":{"get":{"tags":["reports-controller"],"operationId":"profitLossItem","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadProfitLossItem","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/expense-income":{"get":{"tags":["reports-controller"],"operationId":"getExpenseIncome","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["reports-controller"],"operationId":"downloadExpenseIncome","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/purchase":{"post":{"tags":["purchase-controller"],"operationId":"createPurchase","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/purchase/update":{"post":{"tags":["purchase-controller"],"operationId":"updatePurchase","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/notification":{"post":{"tags":["notification-controller"],"operationId":"notifyBill","parameters":[{"name":"bill_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string","enum":["SMS","EMAIL","WHATSAPP"]}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}},{"name":"mobile","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/income":{"post":{"tags":["income-controller"],"operationId":"createIncome","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/income/upload":{"post":{"tags":["income-controller"],"operationId":"uploadIncome","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"incomeFile":{"type":"string","format":"binary"}},"required":["incomeFile"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/image-store":{"get":{"tags":["image-store-controller"],"operationId":"getImageById","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}},"post":{"tags":["image-store-controller"],"operationId":"uploadImage","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"image_name","in":"query","required":true,"schema":{"type":"string"}},{"name":"product_sku","in":"query","required":true,"schema":{"type":"string"}},{"name":"image_lik","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/image-store/wastage":{"post":{"tags":["image-store-controller"],"operationId":"uploadWastageImage","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"image_name","in":"query","required":true,"schema":{"type":"string"}},{"name":"product_sku","in":"query","required":false,"schema":{"type":"string"}},{"name":"tags","in":"query","required":false,"schema":{"type":"string"}},{"name":"bill_number","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/image-store/delete":{"post":{"tags":["image-store-controller"],"operationId":"deleteImage","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/expense":{"post":{"tags":["expense-controller"],"operationId":"createExpense","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/expense/upload":{"post":{"tags":["expense-controller"],"operationId":"uploadExpense","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"expenseFile":{"type":"string","format":"binary"}},"required":["expenseFile"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/challan":{"post":{"tags":["challan-controller"],"operationId":"createChallan","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/bill":{"post":{"tags":["bills-controller"],"operationId":"createBill","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/bill/update":{"post":{"tags":["bills-controller"],"operationId":"updateBill","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bill"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/authenticate":{"post":{"tags":["authentication-controller"],"operationId":"authorize","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/authenticate/verify-domain":{"post":{"tags":["authentication-controller"],"operationId":"verifyDomain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/authenticate/reset-password":{"post":{"tags":["authentication-controller"],"operationId":"resetPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/admin/catalog/products":{"post":{"tags":["mobile-catalog-admin-controller"],"operationId":"upsertProducts","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UpsertProductRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BulkUpsertResponse"}}}}}}},"/admin/catalog/categories":{"post":{"tags":["mobile-catalog-admin-controller"],"operationId":"upsertCategories","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UpsertCategoryRequest"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BulkUpsertResponse"}}}}}}},"/v1/orders/{billRef}":{"get":{"tags":["mobile-bills-controller"],"operationId":"getBill","parameters":[{"name":"billRef","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BillDetailResponse"}}}}}}},"/v1/drawer/current":{"get":{"tags":["mobile-drawer-controller"],"operationId":"getCurrent","parameters":[{"name":"storeId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DrawerCurrentResponse"}}}}}}},"/v1/customers/search":{"get":{"tags":["mobile-customer-controller"],"operationId":"search","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerSearchResponse"}}}}}}},"/v1/bills":{"get":{"tags":["mobile-bills-list-controller"],"operationId":"listBills","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"bill_status","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BillsListResponse"}}}}}}},"/v1/bills/{billRef}":{"get":{"tags":["mobile-bills-list-controller"],"operationId":"getBill_1","parameters":[{"name":"billRef","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BillDetailResponse"}}}}}}},"/v1/bills/{billRef}/receipt.pdf":{"get":{"tags":["mobile-bills-list-controller"],"operationId":"downloadReceiptPdf","parameters":[{"name":"billRef","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/health":{"get":{"tags":["mobile-health-controller"],"operationId":"health","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/catalog/products":{"get":{"tags":["mobile-catalog-controller"],"operationId":"listProducts","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CatalogProductsResponse"}}}}}}},"/catalog/categories":{"get":{"tags":["mobile-catalog-controller"],"operationId":"listCategories","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CatalogCategoriesResponse"}}}}}}},"/api/v1/vendor/list":{"get":{"tags":["vendor-controller"],"operationId":"getAllVendors","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/user/search":{"get":{"tags":["user-controller"],"operationId":"searchUsers","parameters":[{"name":"user_login","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/user/logged-in":{"get":{"tags":["user-controller"],"operationId":"getLoggedInUser","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/upload/starting-rows":{"get":{"tags":["file-upload-controller"],"operationId":"getFirstFewRows","parameters":[{"name":"file_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/upload/column-name":{"get":{"tags":["file-upload-controller"],"operationId":"getAllColumnNames","parameters":[{"name":"file_type","in":"query","required":false,"schema":{"type":"string","enum":["INCOME","EXPENSE"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports":{"get":{"tags":["reports-controller"],"operationId":"getAllReports","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"pageNo","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/status":{"get":{"tags":["reports-controller"],"operationId":"getReportStatus","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/reports/download-report":{"get":{"tags":["reports-controller"],"operationId":"downloadReport","parameters":[{"name":"report_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/v1/income/search":{"get":{"tags":["income-controller"],"operationId":"searchIncome","parameters":[{"name":"income_type","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/image-store/list":{"get":{"tags":["image-store-controller"],"operationId":"getAllImages","parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"product","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/image-store/image":{"get":{"tags":["image-store-controller"],"operationId":"getImage","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/v1/image-store/generic_image":{"get":{"tags":["image-store-controller"],"operationId":"getGenericImage","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/v1/expense/search":{"get":{"tags":["expense-controller"],"operationId":"searchExpense","parameters":[{"name":"expense_type","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/customer/invoices":{"get":{"tags":["customer-controller"],"operationId":"searchInvoices","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/bill/karnival-bill-url":{"get":{"tags":["bills-controller"],"operationId":"getKarnivalBillUrl","parameters":[{"name":"bill_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/bill/invoices":{"get":{"tags":["bills-controller"],"operationId":"searchInvoices_1","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"store_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"pos_number","in":"query","required":true,"schema":{"type":"string"}},{"name":"invoice_type","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["SALE","SALE_CANCELLED","PURCHASE","PURCHASE_CANCELLED","INCOME","EXPENSE","WASTAGE","SALE_CANCEL","PURCHASE_CANCEL","CHALLAN","CHALLAN_CANCEL"]}}},{"name":"invoice_number","in":"query","required":false,"schema":{"type":"string"}},{"name":"start_date","in":"query","required":false,"schema":{"type":"string"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/bill/download/invoice":{"get":{"tags":["bills-controller"],"operationId":"downloadInvoice","parameters":[{"name":"bill_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/bill/challan-download":{"get":{"tags":["bills-controller"],"operationId":"downloadChallan","parameters":[{"name":"billId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/health-check":{"get":{"tags":["health-check-controller"],"operationId":"getApplicationVersion","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/health-check/mongo-stats":{"get":{"tags":["health-check-controller"],"operationId":"getMongoStats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/admin/catalog/products/{skuId}":{"delete":{"tags":["mobile-catalog-admin-controller"],"operationId":"deactivateProduct","parameters":[{"name":"skuId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"UpdateCustomerRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":2},"email":{"type":"string"},"city":{"type":"string"}}},"CustomerSummaryDto":{"type":"object","properties":{"id":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"lastFour":{"type":"string"},"city":{"type":"string"},"tier":{"type":"string"},"totalOrders":{"type":"integer","format":"int32"}}},"AddressDto":{"type":"object","properties":{"customer_name":{"type":"string"},"country_code":{"type":"string"},"customer_mobile":{"type":"string"},"default_selected":{"type":"boolean"},"address_type":{"type":"string"},"address_line_1":{"type":"string"},"address_line_2":{"type":"string"},"landmark":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"state_code":{"type":"string"},"pincode":{"type":"string"},"country":{"type":"string"},"google_map_link":{"type":"string"}}},"PosVendorDto":{"type":"object","properties":{"id":{"type":"string"},"vendor_name":{"type":"string"},"vendor_id":{"type":"string"},"vendor_gst":{"type":"string"},"vendor_email":{"type":"string"},"vendor_phone":{"type":"string"},"vendor_telephone":{"type":"string"},"credit_period":{"type":"integer","format":"int32"},"credit_period_timeunit":{"type":"string","enum":["DAY","MONTH","YEAR"]},"local_vendor":{"type":"boolean"},"vendor_addresses":{"type":"array","items":{"$ref":"#/components/schemas/AddressDto"}},"pos_vendor_poc":{"$ref":"#/components/schemas/PosVendorPOC"},"created_date":{"type":"string","format":"date-time"}}},"PosVendorPOC":{"type":"object","properties":{"poc_name":{"type":"string"},"poc_phone":{"type":"string"},"poc_telephone":{"type":"string"},"poc_email":{"type":"string"}}},"CustomerDto":{"type":"object","properties":{"customer_id":{"type":"string"},"salutation":{"type":"string"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_email_ids":{"type":"array","items":{"type":"string"}},"customer_mobile":{"type":"string"},"mobile_numbers":{"type":"array","items":{"type":"string"}},"whatsapp_number":{"type":"string"},"country_code":{"type":"string"},"dob":{"type":"string","format":"date"},"gender":{"type":"string","enum":["MALE","FEMALE","OTHER"]},"customer_type":{"type":"string","enum":["Retail","eCommerce","Business"]},"customer_pan":{"type":"string"},"customer_gst":{"type":"string"},"credit_period":{"type":"string"},"credit_period_timeunit":{"type":"string","enum":["DAY","MONTH","YEAR"]},"customer_address":{"type":"array","items":{"$ref":"#/components/schemas/AddressDto"}}}},"CreateOrderRequest":{"type":"object","properties":{"clientOrderId":{"type":"string","maxLength":128,"minLength":0},"storeId":{"type":"string","minLength":1},"customerId":{"type":"string"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/OrderLineDto"},"maxItems":200,"minItems":0},"payments":{"type":"array","items":{"$ref":"#/components/schemas/OrderPaymentDto"},"maxItems":10,"minItems":0},"change":{"type":"integer","format":"int64"},"gift":{"$ref":"#/components/schemas/GiftDto"},"source":{"type":"string"},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/DiscountDto"}},"deliveryCharges":{"type":"integer","format":"int64"},"handlingCharges":{"type":"integer","format":"int64"},"invoiceType":{"type":"string"},"deliveryMode":{"type":"string"},"shippingAddress":{"type":"object","additionalProperties":{}}},"required":["clientOrderId","lines","payments","storeId"]},"Delivery":{"type":"object","properties":{"date":{"type":"string"},"slot":{"type":"string"},"pincode":{"type":"string"},"address":{"type":"string"},"mapsPin":{"$ref":"#/components/schemas/MapsPin"}}},"DiscountDto":{"type":"object","properties":{"description":{"type":"string"},"percentage":{"type":"string"},"amount":{"type":"string"},"discountableAmount":{"type":"string"},"discountType":{"type":"string"}}},"GiftDto":{"type":"object","properties":{"recipient":{"$ref":"#/components/schemas/Recipient"},"occasion":{"$ref":"#/components/schemas/Occasion"},"delivery":{"$ref":"#/components/schemas/Delivery"},"message":{"$ref":"#/components/schemas/Message"}}},"MapsPin":{"type":"object","properties":{"lat":{"type":"number","format":"double"},"lng":{"type":"number","format":"double"},"googleMapsUrl":{"type":"string"},"label":{"type":"string"}}},"Message":{"type":"object","properties":{"cardMessage":{"type":"string"},"giftWrap":{"type":"boolean"},"senderAnonymous":{"type":"boolean"}}},"Occasion":{"type":"object","properties":{"type":{"type":"string"},"customLabel":{"type":"string"}}},"OrderLineDto":{"type":"object","properties":{"skuId":{"type":"string"},"productId":{"type":"string"},"productName":{"type":"string"},"variantLabel":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"unitPrice":{"type":"integer","format":"int64"},"unitMrp":{"type":"integer","format":"int64"},"taxBps":{"type":"integer","format":"int32"},"multiDiscounts":{"type":"array","items":{"$ref":"#/components/schemas/DiscountDto"}},"taxes":{"type":"array","items":{"$ref":"#/components/schemas/TaxDto"}},"remarks":{"type":"string"},"category":{"type":"string"},"imageUrls":{"type":"array","items":{"type":"string"}}}},"OrderPaymentDto":{"type":"object","properties":{"method":{"type":"string"},"amount":{"type":"integer","format":"int64"},"providerRef":{"type":"string"},"manualOverride":{"type":"boolean"},"overrideReason":{"type":"string"}}},"Recipient":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"relationship":{"type":"string"}}},"TaxDto":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"percentage":{"type":"string"},"amount":{"type":"string"},"taxableAmount":{"type":"string"},"totalIncTax":{"type":"string"}}},"VoidRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":240,"minLength":1},"occurredAt":{"type":"string"}},"required":["reason"]},"VoidResponse":{"type":"object","properties":{"billRef":{"type":"string"},"billId":{"type":"string"},"status":{"type":"string"},"voidedAt":{"type":"string"},"voidedBy":{"type":"string"},"voidedByName":{"type":"string"}}},"RefundLineRequest":{"type":"object","properties":{"skuId":{"type":"string","minLength":1},"variantLabel":{"type":"string"},"quantity":{"type":"integer","format":"int32","minimum":1}},"required":["skuId"]},"RefundRequest":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/RefundLineRequest"},"maxItems":100,"minItems":0},"reason":{"type":"string","maxLength":240,"minLength":1},"reasonCode":{"type":"string"},"refundMethod":{"type":"string","minLength":1},"refundAmountPaise":{"type":"integer","format":"int64","minimum":1},"occurredAt":{"type":"string"},"managerApprovalToken":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["lines","reason","refundMethod"]},"RefundResponse":{"type":"object","properties":{"billRef":{"type":"string"},"billId":{"type":"string"},"refundId":{"type":"string"},"status":{"type":"string"},"refundedAt":{"type":"string"},"refundedBy":{"type":"string"},"totalRefundedPaise":{"type":"integer","format":"int64"},"remainingRefundablePaise":{"type":"integer","format":"int64"},"warnings":{"type":"array","items":{"type":"string"}}}},"DrawerOpenRequest":{"type":"object","properties":{"storeId":{"type":"string","minLength":1},"cashierUserId":{"type":"string","minLength":1},"cashierName":{"type":"string","maxLength":100,"minLength":0},"startingCashPaise":{"type":"integer","format":"int64","minimum":0}},"required":["cashierName","cashierUserId","startingCashPaise","storeId"]},"DrawerResponse":{"type":"object","properties":{"shift":{"$ref":"#/components/schemas/DrawerShiftDto"}}},"DrawerShiftDto":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"storeId":{"type":"string"},"cashierUserId":{"type":"string"},"cashierName":{"type":"string"},"businessDate":{"type":"string"},"status":{"type":"string"},"openedAt":{"type":"string","format":"date-time"},"closedAt":{"type":"string","format":"date-time"},"startingCashPaise":{"type":"integer","format":"int64"},"cashSalesPaise":{"type":"integer","format":"int64"},"cashRefundsInPaise":{"type":"integer","format":"int64"},"cashRefundsOutPaise":{"type":"integer","format":"int64"},"cashPayoutsPaise":{"type":"integer","format":"int64"},"expectedClosingCashPaise":{"type":"integer","format":"int64"},"countedClosingCashPaise":{"type":"integer","format":"int64"},"varianceCashPaise":{"type":"integer","format":"int64"},"varianceReason":{"type":"string"},"needsManagerReview":{"type":"boolean"}}},"DrawerCloseRequest":{"type":"object","properties":{"storeId":{"type":"string","minLength":1},"cashierUserId":{"type":"string","minLength":1},"countedCashPaise":{"type":"integer","format":"int64","minimum":0},"reason":{"type":"string"},"note":{"type":"string"}},"required":["cashierUserId","countedCashPaise","storeId"]},"CreateCustomerRequest":{"type":"object","properties":{"phone":{"type":"string","minLength":1,"pattern":"^[6-9]\\d{9}$"},"name":{"type":"string","maxLength":100,"minLength":2},"email":{"type":"string"},"city":{"type":"string"}},"required":["name","phone"]},"VerifyManagerPinRequest":{"type":"object","properties":{"phone":{"type":"string","minLength":1,"pattern":"^[6-9]\\d{9}$"},"pin":{"type":"string","minLength":1,"pattern":"^\\d{4}$"},"targetAction":{"type":"string","minLength":1,"pattern":"^(refund)$"},"targetAmountPaiseMax":{"type":"integer","format":"int64","minimum":1}},"required":["phone","pin","targetAction"]},"TokenRefreshRequest":{"type":"object","properties":{"refreshToken":{"type":"string"}}},"MobileAuthResponse":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"expiresInSeconds":{"type":"integer","format":"int64"},"user":{"$ref":"#/components/schemas/MobileUserDto"}}},"MobileUserDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"},"tenantId":{"type":"string"},"storeId":{"type":"string"},"role":{"type":"string"},"pinSetAt":{"type":"string","format":"date-time"},"tenantName":{"type":"string"},"storeName":{"type":"string"},"emailId":{"type":"string"},"posNumber":{"type":"string"}}},"SetPinRequest":{"type":"object","properties":{"pin":{"type":"string","minLength":1,"pattern":"^\\d{4}$"}},"required":["pin"]},"OtpVerifyRequest":{"type":"object","properties":{"challengeId":{"type":"string","minLength":1},"otp":{"type":"string","minLength":1,"pattern":"^\\d{6}$"},"deviceId":{"type":"string","maxLength":128,"minLength":0}},"required":["challengeId","deviceId","otp"]},"OtpSendRequest":{"type":"object","properties":{"phone":{"type":"string","minLength":1,"pattern":"^[6-9]\\d{9}$"},"mode":{"type":"string","minLength":1,"pattern":"^(sms|whatsapp)$"}},"required":["mode","phone"]},"PinLoginRequest":{"type":"object","properties":{"phone":{"type":"string","minLength":1,"pattern":"^[6-9]\\d{9}$"},"pin":{"type":"string","minLength":1,"pattern":"^\\d{4}$"},"deviceId":{"type":"string","maxLength":128,"minLength":0}},"required":["deviceId","phone","pin"]},"ForgotPinRequest":{"type":"object","properties":{"phone":{"type":"string","minLength":1,"pattern":"^[6-9]\\d{9}$"}},"required":["phone"]},"Address":{"type":"object","properties":{"fullAddress":{"type":"string"},"customer_name":{"type":"string"},"country_code":{"type":"string"},"customer_mobile":{"type":"string"},"default_selected":{"type":"boolean"},"address_type":{"type":"string"},"address_line_1":{"type":"string"},"address_line_2":{"type":"string"},"landmark":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"state_code":{"type":"string"},"pincode":{"type":"string"},"country":{"type":"string"},"google_map_link":{"type":"string"}}},"Bill":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastModifiedBy":{"type":"string"},"lastModifiedDate":{"type":"string","format":"date-time"},"id":{"type":"string"},"brand_id":{"type":"string"},"customer_info":{"$ref":"#/components/schemas/CustomerInfo"},"employee_info":{"$ref":"#/components/schemas/EmployeeInfo"},"vendor_info":{"$ref":"#/components/schemas/VendorInfo"},"bill_info":{"$ref":"#/components/schemas/BillInfo"},"pos_info":{"$ref":"#/components/schemas/PosInfo"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"item_count":{"type":"string"},"sub_total":{"type":"string"},"total_saving":{"type":"string"},"payment_info":{"$ref":"#/components/schemas/PaymentInfo"},"taxes":{"type":"array","items":{"$ref":"#/components/schemas/Tax"}},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/Discount"}},"store_id":{"type":"string"},"pos_number":{"type":"string"},"total_inc_tax":{"type":"string"},"total_tax":{"type":"string"},"total_without_discount":{"type":"string"},"app_identifier":{"type":"string"},"karnival_receipt_status":{"type":"string"},"karnival_bill_id":{"type":"string"},"karnival_bill_url":{"type":"string"},"invoice_type":{"type":"string","enum":["SALE","SALE_CANCELLED","PURCHASE","PURCHASE_CANCELLED","INCOME","EXPENSE","WASTAGE","SALE_CANCEL","PURCHASE_CANCEL","CHALLAN","CHALLAN_CANCEL"]},"channel":{"type":"string"},"cancelled_at":{"type":"string","format":"date-time"},"cancelled_by":{"type":"string"},"reference_bill_id":{"type":"string"},"update_status":{"type":"string"},"delivery_mode":{"type":"string"},"shipping_address":{"type":"object","additionalProperties":{}},"source":{"type":"string"},"gift_details":{"$ref":"#/components/schemas/MobileGiftDetails"},"voided_at":{"type":"string","format":"date-time"},"voided_by":{"type":"string"},"voided_by_name":{"type":"string"},"void_reason":{"type":"string"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/RefundEvent"}},"total_refunded_paise":{"type":"integer","format":"int64"},"bill_status":{"type":"string"}}},"BillInfo":{"type":"object","properties":{"bill_type":{"type":"string"},"bill_number":{"type":"string"},"purchase_date":{"type":"string"},"purchase_time":{"type":"string"},"employee_id":{"type":"string"},"employee_name":{"type":"string"},"invoice_addresses":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceAddress"}},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"delivery_charges":{"type":"string"},"handling_charges":{"type":"string"},"store_purchase_number":{"type":"string"},"store_purchase_date":{"type":"string"}}},"ComboItem":{"type":"object","properties":{"item_sku":{"type":"string"},"item_name":{"type":"string"},"item_quantity":{"type":"string"},"item_amount":{"type":"string"},"taxes":{"type":"array","items":{"$ref":"#/components/schemas/Tax"}},"base_unit":{"type":"string"}}},"CustomerInfo":{"type":"object","properties":{"customer_id":{"type":"string"},"salutation":{"type":"string"},"customer_name":{"type":"string"},"customer_email":{"type":"string"},"customer_mobile":{"type":"string"},"country_code":{"type":"string"},"gender":{"type":"string"},"customer_type":{"type":"string"},"customer_pan":{"type":"string"},"customer_gst":{"type":"string"},"customer_address":{"$ref":"#/components/schemas/Address"}}},"Discount":{"type":"object","properties":{"description":{"type":"string"},"percentage":{"type":"string"},"amount":{"type":"string"},"discountable_amount":{"type":"string"},"discount_type":{"type":"string"}}},"EmployeeInfo":{"type":"object","properties":{"employee_id":{"type":"string"},"employee_name":{"type":"string"},"employee_email":{"type":"string"},"employee_mobile":{"type":"string"}}},"InvoiceAddress":{"type":"object","properties":{"customer_name":{"type":"string"},"country_code":{"type":"string"},"customer_mobile":{"type":"string"},"address_type":{"type":"string"},"address_line_1":{"type":"string"},"address_line_2":{"type":"string"},"landmark":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"pincode":{"type":"string"},"country":{"type":"string"}}},"Item":{"type":"object","properties":{"product_name":{"type":"string"},"description":{"type":"string"},"item_code":{"type":"string"},"hsn_code":{"type":"string"},"category":{"type":"string"},"item_mrp":{"type":"string"},"amount":{"type":"string"},"unit_amount":{"type":"string"},"quantity":{"type":"string"},"multi_discounts":{"type":"array","items":{"$ref":"#/components/schemas/Discount"}},"taxes":{"type":"array","items":{"$ref":"#/components/schemas/Tax"}},"total_tax":{"type":"string"},"combo_items":{"type":"array","items":{"$ref":"#/components/schemas/ComboItem"}},"remarks":{"type":"string"},"base_unit":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"assisted_by":{"type":"string"},"image_urls":{"type":"array","items":{"type":"string"}}}},"MobileGiftDetails":{"type":"object","properties":{"recipient_name":{"type":"string"},"recipient_phone":{"type":"string"},"recipient_relationship":{"type":"string"},"occasion_type":{"type":"string"},"occasion_custom_label":{"type":"string"},"delivery_date":{"type":"string"},"delivery_slot":{"type":"string"},"delivery_pincode":{"type":"string"},"delivery_address":{"type":"string"},"delivery_lat":{"type":"number","format":"double"},"delivery_lng":{"type":"number","format":"double"},"card_message":{"type":"string"},"gift_wrap":{"type":"boolean"},"sender_anonymous":{"type":"boolean"}}},"PaymentInfo":{"type":"object","properties":{"payment_status":{"type":"string"},"payment_mode":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMode"}},"roundoff":{"type":"string"},"paid_amount":{"type":"string"},"roundedOff_amount":{"type":"string"},"total_tender":{"type":"string"},"change_due":{"type":"string"},"net_due":{"type":"string"},"balance_amount":{"type":"string"},"advance_amount":{"type":"string"},"base_currency":{"type":"string"},"payment_date":{"type":"string"},"payment_time":{"type":"string"},"remarks":{"type":"string"}}},"PaymentMode":{"type":"object","properties":{"mode":{"type":"string"},"amount":{"type":"string"},"currency":{"type":"string"},"currency_code":{"type":"string"},"currency_amount":{"type":"string"},"transaction_no":{"type":"string"},"sub_tender_type":{"type":"string"},"code":{"type":"string"},"account_number":{"type":"string"},"payment_status":{"type":"string"},"authorization_code":{"type":"string"},"payment_type":{"type":"string"},"card_no":{"type":"string"},"pan_seq":{"type":"string"},"card_name":{"type":"string"},"card_type":{"type":"string"},"payment_method":{"type":"string"},"tender":{"type":"string"},"reference":{"type":"string"},"payment_date_time":{"type":"string"},"manual_override":{"type":"boolean"},"override_reason":{"type":"string"}}},"PosInfo":{"type":"object","properties":{"pos_number":{"type":"string"},"user_id":{"type":"string"},"user_name":{"type":"string"}}},"RefundEvent":{"type":"object","properties":{"id":{"type":"string"},"refunded_at":{"type":"string","format":"date-time"},"refunded_by":{"type":"string"},"refunded_by_name":{"type":"string"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/RefundLine"}},"refund_method":{"type":"string"},"amount_paise":{"type":"integer","format":"int64"},"tax_refunded_paise":{"type":"integer","format":"int64"},"reason":{"type":"string"},"reason_code":{"type":"string"},"approving_manager_user_id":{"type":"string"}}},"RefundLine":{"type":"object","properties":{"sku_id":{"type":"string"},"variant_label":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"amount_paise":{"type":"integer","format":"int64"},"tax_refunded_paise":{"type":"integer","format":"int64"}}},"Tax":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"percentage":{"type":"string"},"amount":{"type":"string"},"taxable_amount":{"type":"string"},"total_inc_tax":{"type":"string"}}},"VendorInfo":{"type":"object","properties":{"vendor_name":{"type":"string"},"vendor_id":{"type":"string"},"vendor_gst":{"type":"string"},"vendor_email":{"type":"string"},"vendor_phone":{"type":"string"},"vendor_telephone":{"type":"string"}}},"ColumnMappingInfo":{"type":"object","properties":{"createdBy":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastModifiedBy":{"type":"string"},"lastModifiedDate":{"type":"string","format":"date-time"},"fileId":{"type":"string"},"ignoreFirstRow":{"type":"boolean"},"columnNamesMap":{"type":"object","additionalProperties":{"type":"string","enum":["INCOME_CODE","INCOME_AMOUNT","INCOME_DESCRIPTION","EXPENSE_CODE","EXPENSE_DESCRIPTION","EXPENSE_AMOUNT","TAX_CODE_1","TAX_DESCIPTION_1","TAX_PERCENTAGE_1","TAX_AMOUNT_1","TAX_CODE_2","TAX_DESCIPTION_2","TAX_PERCENTAGE_2","TAX_AMOUNT_2"]}},"id":{"type":"string"}}},"LoginDto":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"deviceId":{"type":"string"}}},"UpsertProductRequest":{"type":"object","properties":{"skuId":{"type":"string"},"productId":{"type":"string"},"name":{"type":"string"},"subtitle":{"type":"string"},"brand":{"type":"string"},"category":{"type":"string"},"sellPricePaise":{"type":"integer","format":"int64"},"mrpPaise":{"type":"integer","format":"int64"},"taxBps":{"type":"integer","format":"int32"},"stockOnHand":{"type":"integer","format":"int32"},"badge":{"type":"string"},"imagePath":{"type":"string"},"fullImagePath":{"type":"string"},"illustrationColor1":{"type":"string"},"illustrationColor2":{"type":"string"},"illustrationColor3":{"type":"string"},"attributesJson":{"type":"string"},"active":{"type":"boolean"}}},"BulkUpsertResponse":{"type":"object","properties":{"upserted":{"type":"integer","format":"int32"},"skipped":{"type":"integer","format":"int32"},"errors":{"type":"array","items":{"type":"string"}}}},"UpsertCategoryRequest":{"type":"object","properties":{"categoryId":{"type":"string"},"label":{"type":"string"},"displayOrder":{"type":"integer","format":"int32"},"active":{"type":"boolean"}}},"BillDetailResponse":{"type":"object","properties":{"billRef":{"type":"string"},"billId":{"type":"string"},"billStatus":{"type":"string"},"totalRefundedPaise":{"type":"integer","format":"int64"},"remainingRefundablePaise":{"type":"integer","format":"int64"},"voidedAt":{"type":"string"},"voidedBy":{"type":"string"},"voidedByName":{"type":"string"},"voidReason":{"type":"string"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/RefundEvent"}},"brand_id":{"type":"string"},"store_id":{"type":"string"},"total_inc_tax":{"type":"string"},"total_tax":{"type":"string"},"sub_total":{"type":"string"},"items":{},"payment_info":{},"bill_info":{},"source":{"type":"string"},"karnivalBillUrl":{"type":"string"}}},"DrawerCurrentResponse":{"type":"object","properties":{"shift":{"$ref":"#/components/schemas/DrawerShiftDto"},"recovery":{"type":"string"},"todayBusinessDate":{"type":"string"}}},"CustomerSearchResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CustomerSummaryDto"}},"hasMore":{"type":"boolean"},"servedFrom":{"type":"string"}}},"BillsListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BillsListRow"}},"nextCursor":{"type":"string"}}},"BillsListRow":{"type":"object","properties":{"billRef":{"type":"string"},"billId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"customer":{"$ref":"#/components/schemas/Customer"},"rungByName":{"type":"string"},"rungByUserId":{"type":"string"},"totalIncTaxPaise":{"type":"integer","format":"int64"},"paymentMethods":{"type":"array","items":{"type":"string"}},"billStatus":{"type":"string"},"totalRefundedPaise":{"type":"integer","format":"int64"},"voidedAt":{"type":"string","format":"date-time"}}},"Customer":{"type":"object","properties":{"name":{"type":"string"},"phoneLast4":{"type":"string"},"mobile":{"type":"string"}}},"CatalogProductDto":{"type":"object","properties":{"skuId":{"type":"string"},"productId":{"type":"string"},"name":{"type":"string"},"brand":{"type":"string"},"category":{"type":"string"},"subtitle":{"type":"string"},"sellPrice":{"type":"integer","format":"int64"},"mrp":{"type":"integer","format":"int64"},"taxBps":{"type":"integer","format":"int32"},"stockOnHand":{"type":"integer","format":"int32"},"imagePath":{"type":"string"},"fullImagePath":{"type":"string"},"badge":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"illustrationColors":{"type":"array","items":{"type":"string"}}}},"CatalogProductsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CatalogProductDto"}},"nextCursor":{"type":"integer","format":"int64"},"syncedAt":{"type":"string"}}},"CatalogCategoriesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CategoryDto"}},"nextCursor":{"type":"integer","format":"int64"}}},"CategoryDto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}}}},"securitySchemes":{"Bearer Authentication":{"type":"http","name":"Bearer Authentication","scheme":"bearer","bearerFormat":"JWT"}}}}