- New models: WarrantyModel, WalletModel, SystemConfigModel - New schemas: WarrantySchema, RefundSchema, SystemConfig, CrmTaskCalendar, NotificationTemplate, NotificationGateway, RepairErp, ReviewModeration, InventoryPos, MultiDashboard, BillingFinance - New services: WarrantyService, RefundService, CrmService, CrmTaskCalendarService, DeliveryService, EmailTemplateService, InventoryPosService, MultiDashboardService, NotificationGatewayService, RepairErpService, ReviewModerationService, SystemConfigService, TemplateService, CreditService - Updated routers: AdminOrder, BillingFinance, Cart, Catalog, Checkout, Crm, InventoryPos, NotificationGateway, RolePermission, ServiceJob, Settings, Storefront, UserCreation - Updated models: Inventory, Notification, Order, Product, Service, Setting, SystemConfig, User - Updated core: database init, invoice generator, main app - Added WarrantyRouter with full CRUD and claim flow
14 lines
413 B
Python
14 lines
413 B
Python
import requests
|
|
|
|
payload = {
|
|
"category": "BOTH",
|
|
"deal_title": "Sales Quote - 5626",
|
|
"estimated_value": 18054.0,
|
|
"customer_phone": "+91 22",
|
|
"customer_name": "5626"
|
|
}
|
|
|
|
# The lead_id doesn't matter much if it fails validation, it will return 422 before 404
|
|
res = requests.post("http://localhost:8000/api/v1/crm/leads/dummy_lead_id/convert", json=payload)
|
|
print(res.status_code)
|
|
print(res.text)
|