create order
This commit is contained in:
@@ -211,10 +211,15 @@ class ApiConstants {
|
||||
// Order Endpoints
|
||||
// ============================================================================
|
||||
|
||||
/// Create new order
|
||||
/// POST /orders
|
||||
/// Body: { "items": [...], "deliveryAddress": {...}, "paymentMethod": "..." }
|
||||
static const String createOrder = '/orders';
|
||||
/// Get order status list (requires sid and csrf_token)
|
||||
/// POST /api/method/building_material.building_material.api.sales_order.get_order_status_list
|
||||
/// Returns: { "message": [{ "status": "...", "label": "...", "color": "...", "index": 0 }] }
|
||||
static const String getOrderStatusList = '/building_material.building_material.api.sales_order.get_order_status_list';
|
||||
|
||||
/// Create new order (requires sid and csrf_token)
|
||||
/// POST /api/method/building_material.building_material.api.sales_order.save
|
||||
/// Body: { "transaction_date": "...", "delivery_date": "...", "items": [...], ... }
|
||||
static const String createOrder = '/building_material.building_material.api.sales_order.save';
|
||||
|
||||
/// Get user's orders
|
||||
/// GET /orders?status={status}&page={page}&limit={limit}
|
||||
|
||||
Reference in New Issue
Block a user