Download OpenAPI specification:Download
Complete API documentation for Repzo platform
Retrieve a list of all AI sales order activities with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "activityType": "recommendation",
- "inputData": {
- "historicalOrders": [
- {
- "orderId": "string",
- "date": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "clientPreferences": { },
- "marketData": { },
- "inventoryLevels": { }
}, - "aiModel": {
- "name": "sales-recommender-v2",
- "version": "2.1.0",
- "confidence": 1,
- "parameters": { }
}, - "recommendations": [
- {
- "product": "string",
- "productName": "string",
- "quantity": 1,
- "price": 0,
- "confidence": 1,
- "reason": "string",
- "category": "frequent-buy",
- "priority": 1
}
], - "insights": {
- "buyingPatterns": [
- "string"
], - "seasonality": { },
- "riskFactors": [
- "string"
], - "opportunities": [
- "string"
]
}, - "status": "processing",
- "processingTime": 0,
- "accuracy": {
- "historical": 1,
- "estimated": 1
}, - "feedback": {
- "userRating": 1,
- "acceptedRecommendations": [
- "string"
], - "rejectedRecommendations": [
- "string"
], - "comments": "string"
}, - "generatedOrder": {
- "orderId": "string",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
], - "totalAmount": 0
}, - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new AI sales order activity with the provided data
| client required | string Client ID |
| rep required | string Sales representative ID |
| activityType required | string Enum: "recommendation" "order-analysis" "demand-forecasting" "cross-sell" "upsell" Type of AI activity |
object | |
object | |
object | |
object Additional metadata |
{- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "activityType": "recommendation",
- "inputData": {
- "historicalOrders": [
- {
- "orderId": "string",
- "date": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "clientPreferences": { },
- "marketData": { },
- "inventoryLevels": { }
}, - "aiModel": {
- "name": "sales-recommender-v2",
- "version": "2.1.0",
- "parameters": { }
}, - "feedback": {
- "userRating": 1,
- "acceptedRecommendations": [
- "string"
], - "rejectedRecommendations": [
- "string"
], - "comments": "string"
}, - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "activityType": "recommendation",
- "inputData": {
- "historicalOrders": [
- {
- "orderId": "string",
- "date": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "clientPreferences": { },
- "marketData": { },
- "inventoryLevels": { }
}, - "aiModel": {
- "name": "sales-recommender-v2",
- "version": "2.1.0",
- "confidence": 1,
- "parameters": { }
}, - "recommendations": [
- {
- "product": "string",
- "productName": "string",
- "quantity": 1,
- "price": 0,
- "confidence": 1,
- "reason": "string",
- "category": "frequent-buy",
- "priority": 1
}
], - "insights": {
- "buyingPatterns": [
- "string"
], - "seasonality": { },
- "riskFactors": [
- "string"
], - "opportunities": [
- "string"
]
}, - "status": "processing",
- "processingTime": 0,
- "accuracy": {
- "historical": 1,
- "estimated": 1
}, - "feedback": {
- "userRating": 1,
- "acceptedRecommendations": [
- "string"
], - "rejectedRecommendations": [
- "string"
], - "comments": "string"
}, - "generatedOrder": {
- "orderId": "string",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
], - "totalAmount": 0
}, - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific AI sales order activity by its ID
| id required | string AI sales order activity ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "activityType": "recommendation",
- "inputData": {
- "historicalOrders": [
- {
- "orderId": "string",
- "date": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "clientPreferences": { },
- "marketData": { },
- "inventoryLevels": { }
}, - "aiModel": {
- "name": "sales-recommender-v2",
- "version": "2.1.0",
- "confidence": 1,
- "parameters": { }
}, - "recommendations": [
- {
- "product": "string",
- "productName": "string",
- "quantity": 1,
- "price": 0,
- "confidence": 1,
- "reason": "string",
- "category": "frequent-buy",
- "priority": 1
}
], - "insights": {
- "buyingPatterns": [
- "string"
], - "seasonality": { },
- "riskFactors": [
- "string"
], - "opportunities": [
- "string"
]
}, - "status": "processing",
- "processingTime": 0,
- "accuracy": {
- "historical": 1,
- "estimated": 1
}, - "feedback": {
- "userRating": 1,
- "acceptedRecommendations": [
- "string"
], - "rejectedRecommendations": [
- "string"
], - "comments": "string"
}, - "generatedOrder": {
- "orderId": "string",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
], - "totalAmount": 0
}, - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing AI sales order activity with new data
| id required | string AI sales order activity ID |
| client required | string Client ID |
| rep required | string Sales representative ID |
| activityType required | string Enum: "recommendation" "order-analysis" "demand-forecasting" "cross-sell" "upsell" Type of AI activity |
object | |
object | |
object | |
object Additional metadata |
{- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "activityType": "recommendation",
- "inputData": {
- "historicalOrders": [
- {
- "orderId": "string",
- "date": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "clientPreferences": { },
- "marketData": { },
- "inventoryLevels": { }
}, - "aiModel": {
- "name": "sales-recommender-v2",
- "version": "2.1.0",
- "parameters": { }
}, - "feedback": {
- "userRating": 1,
- "acceptedRecommendations": [
- "string"
], - "rejectedRecommendations": [
- "string"
], - "comments": "string"
}, - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "activityType": "recommendation",
- "inputData": {
- "historicalOrders": [
- {
- "orderId": "string",
- "date": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
]
}
], - "clientPreferences": { },
- "marketData": { },
- "inventoryLevels": { }
}, - "aiModel": {
- "name": "sales-recommender-v2",
- "version": "2.1.0",
- "confidence": 1,
- "parameters": { }
}, - "recommendations": [
- {
- "product": "string",
- "productName": "string",
- "quantity": 1,
- "price": 0,
- "confidence": 1,
- "reason": "string",
- "category": "frequent-buy",
- "priority": 1
}
], - "insights": {
- "buyingPatterns": [
- "string"
], - "seasonality": { },
- "riskFactors": [
- "string"
], - "opportunities": [
- "string"
]
}, - "status": "processing",
- "processingTime": 0,
- "accuracy": {
- "historical": 1,
- "estimated": 1
}, - "feedback": {
- "userRating": 1,
- "acceptedRecommendations": [
- "string"
], - "rejectedRecommendations": [
- "string"
], - "comments": "string"
}, - "generatedOrder": {
- "orderId": "string",
- "items": [
- {
- "product": "string",
- "quantity": 0,
- "price": 0
}
], - "totalAmount": 0
}, - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Generate AI-powered sales order recommendations for the activity
| id required | string AI sales order activity ID |
{- "success": true,
- "data": {
- "recommendations": [
- {
- "product": "string",
- "quantity": 0,
- "confidence": 0,
- "reason": "string"
}
]
}
}Retrieve a list of all activity feedback v2 with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| activity_type | string Filter by activity type |
| rep | string Filter by representative ID |
| client | string Filter by client ID |
| overall_satisfaction | integer [ 1 .. 10 ] Filter by overall satisfaction rating |
| template_id | string Filter by feedback template ID |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "template_id": "507f1f77bcf86cd799439015",
- "overall_satisfaction": 8,
- "responses": [
- {
- "question_id": "string",
- "question_text": "string",
- "question_type": "rating",
- "response_value": "string",
- "response_text": "string"
}
], - "nps_score": 9,
- "sentiment_analysis": {
- "overall_sentiment": "very_positive",
- "confidence_score": 1,
- "keywords": [
- "string"
]
}, - "completion_time": 180,
- "completion_rate": 100,
- "session_data": {
- "device_type": "mobile",
- "browser": "string",
- "ip_address": "string",
- "location": {
- "country": "string",
- "city": "string"
}
}, - "follow_up_actions": [
- {
- "action_type": "call",
- "priority": "high",
- "assigned_to": "string",
- "due_date": "2019-08-24",
- "status": "pending"
}
], - "is_anonymous": false,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new activity feedback v2 entry
| activity_type required | string Type of activity this feedback is for |
| activity_id | string ID of the related activity |
| rep required | string Representative ID |
| client | string Client ID |
| template_id required | string Feedback template ID used |
| overall_satisfaction required | integer [ 1 .. 10 ] Overall satisfaction rating (1-10 scale) |
Array of objects | |
| nps_score | integer [ 0 .. 10 ] Net Promoter Score (0-10) |
| completion_time | integer Time taken to complete feedback (in seconds) |
object | |
| is_anonymous | boolean Default: false Whether the feedback is anonymous |
| company_namespace | Array of strings Company namespace |
{- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "template_id": "507f1f77bcf86cd799439015",
- "overall_satisfaction": 8,
- "responses": [
- {
- "question_id": "string",
- "question_type": "rating",
- "response_value": "string",
- "response_text": "string"
}
], - "nps_score": 10,
- "completion_time": 0,
- "session_data": {
- "device_type": "mobile",
- "browser": "string",
- "ip_address": "string"
}, - "is_anonymous": false,
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "template_id": "507f1f77bcf86cd799439015",
- "overall_satisfaction": 8,
- "responses": [
- {
- "question_id": "string",
- "question_text": "string",
- "question_type": "rating",
- "response_value": "string",
- "response_text": "string"
}
], - "nps_score": 9,
- "sentiment_analysis": {
- "overall_sentiment": "very_positive",
- "confidence_score": 1,
- "keywords": [
- "string"
]
}, - "completion_time": 180,
- "completion_rate": 100,
- "session_data": {
- "device_type": "mobile",
- "browser": "string",
- "ip_address": "string",
- "location": {
- "country": "string",
- "city": "string"
}
}, - "follow_up_actions": [
- {
- "action_type": "call",
- "priority": "high",
- "assigned_to": "string",
- "due_date": "2019-08-24",
- "status": "pending"
}
], - "is_anonymous": false,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific activity feedback v2 by its ID
| id required | string Activity feedback v2 ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "template_id": "507f1f77bcf86cd799439015",
- "overall_satisfaction": 8,
- "responses": [
- {
- "question_id": "string",
- "question_text": "string",
- "question_type": "rating",
- "response_value": "string",
- "response_text": "string"
}
], - "nps_score": 9,
- "sentiment_analysis": {
- "overall_sentiment": "very_positive",
- "confidence_score": 1,
- "keywords": [
- "string"
]
}, - "completion_time": 180,
- "completion_rate": 100,
- "session_data": {
- "device_type": "mobile",
- "browser": "string",
- "ip_address": "string",
- "location": {
- "country": "string",
- "city": "string"
}
}, - "follow_up_actions": [
- {
- "action_type": "call",
- "priority": "high",
- "assigned_to": "string",
- "due_date": "2019-08-24",
- "status": "pending"
}
], - "is_anonymous": false,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing activity feedback v2
| id required | string Activity feedback v2 ID |
| overall_satisfaction | integer [ 1 .. 10 ] Overall satisfaction rating (1-10 scale) |
Array of objects | |
| nps_score | integer [ 0 .. 10 ] Net Promoter Score (0-10) |
Array of objects | |
| company_namespace | Array of strings Company namespace |
{- "overall_satisfaction": 1,
- "responses": [
- {
- "question_id": "string",
- "question_type": "rating",
- "response_value": "string",
- "response_text": "string"
}
], - "nps_score": 10,
- "follow_up_actions": [
- {
- "action_type": "call",
- "priority": "high",
- "assigned_to": "string",
- "due_date": "2019-08-24",
- "status": "pending"
}
], - "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "template_id": "507f1f77bcf86cd799439015",
- "overall_satisfaction": 8,
- "responses": [
- {
- "question_id": "string",
- "question_text": "string",
- "question_type": "rating",
- "response_value": "string",
- "response_text": "string"
}
], - "nps_score": 9,
- "sentiment_analysis": {
- "overall_sentiment": "very_positive",
- "confidence_score": 1,
- "keywords": [
- "string"
]
}, - "completion_time": 180,
- "completion_rate": 100,
- "session_data": {
- "device_type": "mobile",
- "browser": "string",
- "ip_address": "string",
- "location": {
- "country": "string",
- "city": "string"
}
}, - "follow_up_actions": [
- {
- "action_type": "call",
- "priority": "high",
- "assigned_to": "string",
- "due_date": "2019-08-24",
- "status": "pending"
}
], - "is_anonymous": false,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Get detailed analytics and insights for activity feedback v2
| date_from | string <date> Start date for analytics |
| date_to | string <date> End date for analytics |
| activity_type | string Filter by activity type |
| rep | string Filter by representative ID |
| template_id | string Filter by feedback template ID |
{- "success": true,
- "data": {
- "summary": {
- "total_feedback": 0,
- "average_satisfaction": 0,
- "response_rate": 0
}, - "satisfaction_trends": [
- {
- "date": "2019-08-24",
- "average_satisfaction": 0,
- "count": 0
}
], - "question_analysis": [
- {
- "question_id": "string",
- "question_text": "string",
- "average_score": 0,
- "response_count": 0
}
]
}
}Retrieve a list of all activity feedback with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| activity_type | string Filter by activity type |
| rep | string Filter by representative ID |
| client | string Filter by client ID |
| rating | integer [ 1 .. 5 ] Filter by rating |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "rating": 4,
- "feedback_text": "Great service, very professional",
- "feedback_categories": [
- "service_quality",
- "timeliness",
- "professionalism"
], - "sentiment": "positive",
- "is_anonymous": false,
- "source": "mobile_app",
- "response_time": 120,
- "attachments": [
- {
- "file_url": "string",
- "file_type": "string",
- "file_size": 0
}
], - "follow_up_required": false,
- "follow_up_notes": "string",
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new activity feedback entry
| activity_type required | string Type of activity this feedback is for |
| activity_id | string ID of the related activity |
| rep required | string Representative ID |
| client | string Client ID |
| rating required | integer [ 1 .. 5 ] Feedback rating (1-5 scale) |
| feedback_text | string Detailed feedback text |
| feedback_categories | Array of strings Categories of feedback |
| is_anonymous | boolean Default: false Whether the feedback is anonymous |
| source | string Default: "mobile_app" Enum: "mobile_app" "web_portal" "email" "sms" "phone" Source of the feedback |
| response_time | integer Time taken to provide feedback (in seconds) |
Array of objects | |
| follow_up_required | boolean Default: false Whether follow-up is required |
| follow_up_notes | string Notes for follow-up actions |
| company_namespace | Array of strings Company namespace |
{- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "rating": 4,
- "feedback_text": "Great service, very professional",
- "feedback_categories": [
- "string"
], - "is_anonymous": false,
- "source": "mobile_app",
- "response_time": 0,
- "attachments": [
- {
- "file_url": "string",
- "file_type": "string",
- "file_size": 0
}
], - "follow_up_required": false,
- "follow_up_notes": "string",
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "rating": 4,
- "feedback_text": "Great service, very professional",
- "feedback_categories": [
- "service_quality",
- "timeliness",
- "professionalism"
], - "sentiment": "positive",
- "is_anonymous": false,
- "source": "mobile_app",
- "response_time": 120,
- "attachments": [
- {
- "file_url": "string",
- "file_type": "string",
- "file_size": 0
}
], - "follow_up_required": false,
- "follow_up_notes": "string",
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific activity feedback by its ID
| id required | string Activity feedback ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "rating": 4,
- "feedback_text": "Great service, very professional",
- "feedback_categories": [
- "service_quality",
- "timeliness",
- "professionalism"
], - "sentiment": "positive",
- "is_anonymous": false,
- "source": "mobile_app",
- "response_time": 120,
- "attachments": [
- {
- "file_url": "string",
- "file_type": "string",
- "file_size": 0
}
], - "follow_up_required": false,
- "follow_up_notes": "string",
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing activity feedback
| id required | string Activity feedback ID |
| rating | integer [ 1 .. 5 ] Feedback rating (1-5 scale) |
| feedback_text | string Detailed feedback text |
| feedback_categories | Array of strings Categories of feedback |
| follow_up_required | boolean Whether follow-up is required |
| follow_up_notes | string Notes for follow-up actions |
| company_namespace | Array of strings Company namespace |
{- "rating": 1,
- "feedback_text": "string",
- "feedback_categories": [
- "string"
], - "follow_up_required": true,
- "follow_up_notes": "string",
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "activity_type": "sales_visit",
- "activity_id": "507f1f77bcf86cd799439012",
- "rep": "507f1f77bcf86cd799439013",
- "client": "507f1f77bcf86cd799439014",
- "rating": 4,
- "feedback_text": "Great service, very professional",
- "feedback_categories": [
- "service_quality",
- "timeliness",
- "professionalism"
], - "sentiment": "positive",
- "is_anonymous": false,
- "source": "mobile_app",
- "response_time": 120,
- "attachments": [
- {
- "file_url": "string",
- "file_type": "string",
- "file_size": 0
}
], - "follow_up_required": false,
- "follow_up_notes": "string",
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Get analytics and statistics for activity feedback
| date_from | string <date> Start date for analytics |
| date_to | string <date> End date for analytics |
| activity_type | string Filter by activity type |
| rep | string Filter by representative ID |
{- "success": true,
- "data": {
- "total_feedback": 0,
- "average_rating": 0,
- "rating_distribution": {
- "1": 0,
- "2": 0,
- "3": 0,
- "4": 0,
- "5": 0
}, - "by_activity_type": {
- "property1": {
- "count": 0,
- "average_rating": 0
}, - "property2": {
- "count": 0,
- "average_rating": 0
}
}
}
}Retrieve a list of all activity storecheck records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new activity storecheck record with the provided data
| client required | string Client identifier |
| rep required | string Sales representative identifier |
| template required | string Storecheck template identifier |
| date required | string <date-time> Date and time of the storecheck activity |
object | |
Array of objects | |
| status | string Default: "draft" Enum: "draft" "submitted" "approved" "rejected" Status of the storecheck activity |
| notes | string Additional notes |
{- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific activity storecheck record by its ID
| id required | string Activity storecheck record ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing activity storecheck record with new data
| id required | string Activity storecheck record ID |
| client required | string Client identifier |
| rep required | string Sales representative identifier |
| template required | string Storecheck template identifier |
| date required | string <date-time> Date and time of the storecheck activity |
object | |
Array of objects | |
| status | string Default: "draft" Enum: "draft" "submitted" "approved" "rejected" Status of the storecheck activity |
| notes | string Additional notes |
{- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "client": "60f7b1b3e4b0e8b3f8b3f8b4",
- "rep": "60f7b1b3e4b0e8b3f8b3f8b5",
- "template": "60f7b1b3e4b0e8b3f8b3f8b6",
- "date": "2023-01-15T10:30:00Z",
- "location": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "responses": [
- {
- "questionId": "string",
- "answer": "string",
- "photos": [
- "string"
]
}
], - "status": "draft",
- "notes": "string",
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Delete an existing activity storecheck record
| id required | string Activity storecheck record ID |
{- "success": true,
- "message": "Activity storecheck record deleted successfully"
}Retrieve a list of all asset part receivals with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "receivalNumber": "RCV-2023-001",
- "purchaseOrder": "PO-2023-001",
- "supplier": "60f7b1b3e4b0e8b3f8b3f8b4",
- "receivalDate": "2023-01-15T10:00:00Z",
- "expectedDate": "2023-01-14T10:00:00Z",
- "receivedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "warehouse": "60f7b1b3e4b0e8b3f8b3f8b6",
- "status": "pending",
- "items": [
- {
- "assetPart": "string",
- "orderedQuantity": 1,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0,
- "condition": "new",
- "batchNumber": "string",
- "serialNumbers": [
- "string"
], - "expiryDate": "2019-08-24",
- "notes": "string"
}
], - "totalValue": 0,
- "currency": "USD",
- "shippingCost": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "amount": 0
}, - "qualityCheck": {
- "performed": false,
- "checkedBy": "string",
- "checkDate": "2019-08-24T14:15:22Z",
- "passed": true,
- "notes": "string"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part receival with the provided data
| receivalNumber required | string Unique receival number |
| purchaseOrder | string Purchase order reference |
| supplier required | string Supplier ID |
| receivalDate required | string <date-time> Date and time of receival |
| expectedDate | string <date-time> Expected delivery date |
| receivedBy | string User who received the parts |
| warehouse | string Warehouse ID where parts were received |
| status | string Default: "pending" Enum: "pending" "partial" "complete" "cancelled" Status of the receival |
required | Array of objects |
| totalValue | number <double> >= 0 Total value of the receival |
| currency | string Currency code |
| shippingCost | number <double> >= 0 Shipping cost |
| taxAmount | number <double> >= 0 Tax amount |
| discountAmount | number <double> >= 0 Discount amount |
object | |
object | |
Array of objects | |
| notes | string General notes |
object Additional metadata |
{- "receivalNumber": "RCV-2023-001",
- "purchaseOrder": "PO-2023-001",
- "supplier": "60f7b1b3e4b0e8b3f8b3f8b4",
- "receivalDate": "2023-01-15T10:00:00Z",
- "expectedDate": "2023-01-14T10:00:00Z",
- "receivedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "warehouse": "60f7b1b3e4b0e8b3f8b3f8b6",
- "status": "pending",
- "items": [
- {
- "assetPart": "string",
- "orderedQuantity": 1,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0,
- "condition": "new",
- "batchNumber": "string",
- "serialNumbers": [
- "string"
], - "expiryDate": "2019-08-24",
- "notes": "string"
}
], - "totalValue": 0,
- "currency": "USD",
- "shippingCost": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "amount": 0
}, - "qualityCheck": {
- "performed": false,
- "checkedBy": "string",
- "checkDate": "2019-08-24T14:15:22Z",
- "passed": true,
- "notes": "string"
}, - "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "receivalNumber": "RCV-2023-001",
- "purchaseOrder": "PO-2023-001",
- "supplier": "60f7b1b3e4b0e8b3f8b3f8b4",
- "receivalDate": "2023-01-15T10:00:00Z",
- "expectedDate": "2023-01-14T10:00:00Z",
- "receivedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "warehouse": "60f7b1b3e4b0e8b3f8b3f8b6",
- "status": "pending",
- "items": [
- {
- "assetPart": "string",
- "orderedQuantity": 1,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0,
- "condition": "new",
- "batchNumber": "string",
- "serialNumbers": [
- "string"
], - "expiryDate": "2019-08-24",
- "notes": "string"
}
], - "totalValue": 0,
- "currency": "USD",
- "shippingCost": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "amount": 0
}, - "qualityCheck": {
- "performed": false,
- "checkedBy": "string",
- "checkDate": "2019-08-24T14:15:22Z",
- "passed": true,
- "notes": "string"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part receival by its ID
| id required | string Asset part receival ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "receivalNumber": "RCV-2023-001",
- "purchaseOrder": "PO-2023-001",
- "supplier": "60f7b1b3e4b0e8b3f8b3f8b4",
- "receivalDate": "2023-01-15T10:00:00Z",
- "expectedDate": "2023-01-14T10:00:00Z",
- "receivedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "warehouse": "60f7b1b3e4b0e8b3f8b3f8b6",
- "status": "pending",
- "items": [
- {
- "assetPart": "string",
- "orderedQuantity": 1,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0,
- "condition": "new",
- "batchNumber": "string",
- "serialNumbers": [
- "string"
], - "expiryDate": "2019-08-24",
- "notes": "string"
}
], - "totalValue": 0,
- "currency": "USD",
- "shippingCost": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "amount": 0
}, - "qualityCheck": {
- "performed": false,
- "checkedBy": "string",
- "checkDate": "2019-08-24T14:15:22Z",
- "passed": true,
- "notes": "string"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part receival with new data
| id required | string Asset part receival ID |
| receivalNumber required | string Unique receival number |
| purchaseOrder | string Purchase order reference |
| supplier required | string Supplier ID |
| receivalDate required | string <date-time> Date and time of receival |
| expectedDate | string <date-time> Expected delivery date |
| receivedBy | string User who received the parts |
| warehouse | string Warehouse ID where parts were received |
| status | string Default: "pending" Enum: "pending" "partial" "complete" "cancelled" Status of the receival |
required | Array of objects |
| totalValue | number <double> >= 0 Total value of the receival |
| currency | string Currency code |
| shippingCost | number <double> >= 0 Shipping cost |
| taxAmount | number <double> >= 0 Tax amount |
| discountAmount | number <double> >= 0 Discount amount |
object | |
object | |
Array of objects | |
| notes | string General notes |
object Additional metadata |
{- "receivalNumber": "RCV-2023-001",
- "purchaseOrder": "PO-2023-001",
- "supplier": "60f7b1b3e4b0e8b3f8b3f8b4",
- "receivalDate": "2023-01-15T10:00:00Z",
- "expectedDate": "2023-01-14T10:00:00Z",
- "receivedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "warehouse": "60f7b1b3e4b0e8b3f8b3f8b6",
- "status": "pending",
- "items": [
- {
- "assetPart": "string",
- "orderedQuantity": 1,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0,
- "condition": "new",
- "batchNumber": "string",
- "serialNumbers": [
- "string"
], - "expiryDate": "2019-08-24",
- "notes": "string"
}
], - "totalValue": 0,
- "currency": "USD",
- "shippingCost": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "amount": 0
}, - "qualityCheck": {
- "performed": false,
- "checkedBy": "string",
- "checkDate": "2019-08-24T14:15:22Z",
- "passed": true,
- "notes": "string"
}, - "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "receivalNumber": "RCV-2023-001",
- "purchaseOrder": "PO-2023-001",
- "supplier": "60f7b1b3e4b0e8b3f8b3f8b4",
- "receivalDate": "2023-01-15T10:00:00Z",
- "expectedDate": "2023-01-14T10:00:00Z",
- "receivedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "warehouse": "60f7b1b3e4b0e8b3f8b3f8b6",
- "status": "pending",
- "items": [
- {
- "assetPart": "string",
- "orderedQuantity": 1,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0,
- "condition": "new",
- "batchNumber": "string",
- "serialNumbers": [
- "string"
], - "expiryDate": "2019-08-24",
- "notes": "string"
}
], - "totalValue": 0,
- "currency": "USD",
- "shippingCost": 0,
- "taxAmount": 0,
- "discountAmount": 0,
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "amount": 0
}, - "qualityCheck": {
- "performed": false,
- "checkedBy": "string",
- "checkDate": "2019-08-24T14:15:22Z",
- "passed": true,
- "notes": "string"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all asset part transfers with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part transfer with the provided data
| transferNumber required | string Unique transfer number |
required | object |
required | object |
| requestedBy required | string User who requested the transfer |
| approvedBy | string User who approved the transfer |
| transferredBy | string User who executed the transfer |
| requestDate | string <date-time> Date when transfer was requested |
| approvalDate | string <date-time> Date when transfer was approved |
| transferDate | string <date-time> Date when transfer was executed |
| scheduledDate | string <date-time> Scheduled transfer date |
| status | string Default: "requested" Enum: "requested" "approved" "in-progress" "completed" "cancelled" Status of the transfer |
| priority | string Default: "medium" Enum: "low" "medium" "high" "urgent" Priority of the transfer |
| reason | string Reason for the transfer |
required | Array of objects |
| totalItems | integer >= 0 Total number of items being transferred |
| transportMethod | string Default: "manual" Enum: "manual" "vehicle" "courier" "automated" Method of transport |
| carrier | string Carrier/transporter name |
| trackingNumber | string Tracking number if applicable |
| estimatedArrival | string <date-time> Estimated arrival time |
| actualArrival | string <date-time> Actual arrival time |
| cost | number <double> >= 0 Transfer cost |
| currency | string Currency code |
Array of objects | |
| notes | string General notes |
object Additional metadata |
{- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part transfer by its ID
| id required | string Asset part transfer ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part transfer with new data
| id required | string Asset part transfer ID |
| transferNumber required | string Unique transfer number |
required | object |
required | object |
| requestedBy required | string User who requested the transfer |
| approvedBy | string User who approved the transfer |
| transferredBy | string User who executed the transfer |
| requestDate | string <date-time> Date when transfer was requested |
| approvalDate | string <date-time> Date when transfer was approved |
| transferDate | string <date-time> Date when transfer was executed |
| scheduledDate | string <date-time> Scheduled transfer date |
| status | string Default: "requested" Enum: "requested" "approved" "in-progress" "completed" "cancelled" Status of the transfer |
| priority | string Default: "medium" Enum: "low" "medium" "high" "urgent" Priority of the transfer |
| reason | string Reason for the transfer |
required | Array of objects |
| totalItems | integer >= 0 Total number of items being transferred |
| transportMethod | string Default: "manual" Enum: "manual" "vehicle" "courier" "automated" Method of transport |
| carrier | string Carrier/transporter name |
| trackingNumber | string Tracking number if applicable |
| estimatedArrival | string <date-time> Estimated arrival time |
| actualArrival | string <date-time> Actual arrival time |
| cost | number <double> >= 0 Transfer cost |
| currency | string Currency code |
Array of objects | |
| notes | string General notes |
object Additional metadata |
{- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Mark an asset part transfer as completed
| id required | string Asset part transfer ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "transferNumber": "TRF-2023-001",
- "fromLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "toLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "requestedBy": "60f7b1b3e4b0e8b3f8b3f8b4",
- "approvedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "transferredBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "requestDate": "2023-01-15T08:00:00Z",
- "approvalDate": "2023-01-15T09:00:00Z",
- "transferDate": "2023-01-15T10:00:00Z",
- "scheduledDate": "2023-01-15T10:00:00Z",
- "status": "requested",
- "priority": "low",
- "reason": "string",
- "items": [
- {
- "assetPartUnit": "string",
- "assetPart": "string",
- "serialNumber": "string",
- "quantity": 1,
- "condition": "new",
- "notes": "string"
}
], - "totalItems": 0,
- "transportMethod": "manual",
- "carrier": "string",
- "trackingNumber": "string",
- "estimatedArrival": "2019-08-24T14:15:22Z",
- "actualArrival": "2019-08-24T14:15:22Z",
- "cost": 0,
- "currency": "USD",
- "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all asset part types with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Engine Parts",
- "description": "string",
- "category": "Mechanical",
- "subcategory": "string",
- "specifications": {
- "material": "Steel",
- "dimensions": "10x5x2 cm",
- "weight": "0.5 kg"
}, - "compatibleAssetTypes": [
- "string"
], - "maintenanceSchedule": {
- "frequency": "daily",
- "intervalDays": 1,
- "description": "string"
}, - "warrantPeriod": 365,
- "supplier": "string",
- "standardCost": 0,
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part type with the provided data
| name required | string Name of the asset part type |
| description | string Description of the asset part type |
| category required | string Category of the asset part type |
| subcategory | string Subcategory of the asset part type |
object Technical specifications | |
| compatibleAssetTypes | Array of strings List of compatible asset type IDs |
object | |
| warrantPeriod | integer Warranty period in days |
| supplier | string Default supplier ID |
| standardCost | number <double> >= 0 Standard cost of the part |
| isActive | boolean Default: true Whether the part type is active |
object Additional metadata |
{- "name": "Engine Parts",
- "description": "string",
- "category": "Mechanical",
- "subcategory": "string",
- "specifications": {
- "material": "Steel",
- "dimensions": "10x5x2 cm",
- "weight": "0.5 kg"
}, - "compatibleAssetTypes": [
- "string"
], - "maintenanceSchedule": {
- "frequency": "daily",
- "intervalDays": 1,
- "description": "string"
}, - "warrantPeriod": 365,
- "supplier": "string",
- "standardCost": 0,
- "isActive": true,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Engine Parts",
- "description": "string",
- "category": "Mechanical",
- "subcategory": "string",
- "specifications": {
- "material": "Steel",
- "dimensions": "10x5x2 cm",
- "weight": "0.5 kg"
}, - "compatibleAssetTypes": [
- "string"
], - "maintenanceSchedule": {
- "frequency": "daily",
- "intervalDays": 1,
- "description": "string"
}, - "warrantPeriod": 365,
- "supplier": "string",
- "standardCost": 0,
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part type by its ID
| id required | string Asset part type ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Engine Parts",
- "description": "string",
- "category": "Mechanical",
- "subcategory": "string",
- "specifications": {
- "material": "Steel",
- "dimensions": "10x5x2 cm",
- "weight": "0.5 kg"
}, - "compatibleAssetTypes": [
- "string"
], - "maintenanceSchedule": {
- "frequency": "daily",
- "intervalDays": 1,
- "description": "string"
}, - "warrantPeriod": 365,
- "supplier": "string",
- "standardCost": 0,
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part type with new data
| id required | string Asset part type ID |
| name required | string Name of the asset part type |
| description | string Description of the asset part type |
| category required | string Category of the asset part type |
| subcategory | string Subcategory of the asset part type |
object Technical specifications | |
| compatibleAssetTypes | Array of strings List of compatible asset type IDs |
object | |
| warrantPeriod | integer Warranty period in days |
| supplier | string Default supplier ID |
| standardCost | number <double> >= 0 Standard cost of the part |
| isActive | boolean Default: true Whether the part type is active |
object Additional metadata |
{- "name": "Engine Parts",
- "description": "string",
- "category": "Mechanical",
- "subcategory": "string",
- "specifications": {
- "material": "Steel",
- "dimensions": "10x5x2 cm",
- "weight": "0.5 kg"
}, - "compatibleAssetTypes": [
- "string"
], - "maintenanceSchedule": {
- "frequency": "daily",
- "intervalDays": 1,
- "description": "string"
}, - "warrantPeriod": 365,
- "supplier": "string",
- "standardCost": 0,
- "isActive": true,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Engine Parts",
- "description": "string",
- "category": "Mechanical",
- "subcategory": "string",
- "specifications": {
- "material": "Steel",
- "dimensions": "10x5x2 cm",
- "weight": "0.5 kg"
}, - "compatibleAssetTypes": [
- "string"
], - "maintenanceSchedule": {
- "frequency": "daily",
- "intervalDays": 1,
- "description": "string"
}, - "warrantPeriod": 365,
- "supplier": "string",
- "standardCost": 0,
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all asset part units with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "serialNumber": "SN-EP001-2023-001",
- "assetPart": "60f7b1b3e4b0e8b3f8b3f8b4",
- "batchNumber": "BATCH-2023-001",
- "lotNumber": "string",
- "manufactureDate": "2023-01-15",
- "expiryDate": "2019-08-24",
- "receiptDate": "2023-01-20T10:00:00Z",
- "status": "available",
- "condition": "new",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "assignedTo": {
- "asset": "string",
- "workOrder": "string",
- "technician": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "installationDate": "2019-08-24T14:15:22Z",
- "lastMaintenanceDate": "2019-08-24T14:15:22Z",
- "nextMaintenanceDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24",
- "cost": 0,
- "supplier": "string",
- "purchaseOrder": "string",
- "invoice": "string",
- "notes": "string",
- "maintenanceHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "inspection",
- "description": "string",
- "technician": "string",
- "cost": 0
}
], - "customFields": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part unit with the provided data
| serialNumber required | string Serial number of the part unit |
| assetPart required | string Asset part ID this unit belongs to |
| batchNumber | string Batch number |
| lotNumber | string Lot number |
| manufactureDate | string <date> Manufacturing date |
| expiryDate | string <date> Expiry date (if applicable) |
| receiptDate | string <date-time> Date when the unit was received |
| status required | string Default: "available" Enum: "available" "reserved" "in-use" "maintenance" "disposed" "returned" Current status of the part unit |
| condition | string Default: "new" Enum: "new" "good" "fair" "poor" "damaged" Physical condition of the part unit |
object | |
object | |
| installationDate | string <date-time> Date when the unit was installed |
| lastMaintenanceDate | string <date-time> Last maintenance date |
| nextMaintenanceDate | string <date-time> Next scheduled maintenance date |
| warrantyExpiry | string <date> Warranty expiry date |
| cost | number <double> >= 0 Cost of this specific unit |
| supplier | string Supplier ID |
| purchaseOrder | string Purchase order reference |
| invoice | string Invoice reference |
| notes | string Additional notes |
object Custom fields | |
object Additional metadata |
{- "serialNumber": "SN-EP001-2023-001",
- "assetPart": "60f7b1b3e4b0e8b3f8b3f8b4",
- "batchNumber": "BATCH-2023-001",
- "lotNumber": "string",
- "manufactureDate": "2023-01-15",
- "expiryDate": "2019-08-24",
- "receiptDate": "2023-01-20T10:00:00Z",
- "status": "available",
- "condition": "new",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "assignedTo": {
- "asset": "string",
- "workOrder": "string",
- "technician": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "installationDate": "2019-08-24T14:15:22Z",
- "lastMaintenanceDate": "2019-08-24T14:15:22Z",
- "nextMaintenanceDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24",
- "cost": 0,
- "supplier": "string",
- "purchaseOrder": "string",
- "invoice": "string",
- "notes": "string",
- "customFields": { },
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "serialNumber": "SN-EP001-2023-001",
- "assetPart": "60f7b1b3e4b0e8b3f8b3f8b4",
- "batchNumber": "BATCH-2023-001",
- "lotNumber": "string",
- "manufactureDate": "2023-01-15",
- "expiryDate": "2019-08-24",
- "receiptDate": "2023-01-20T10:00:00Z",
- "status": "available",
- "condition": "new",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "assignedTo": {
- "asset": "string",
- "workOrder": "string",
- "technician": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "installationDate": "2019-08-24T14:15:22Z",
- "lastMaintenanceDate": "2019-08-24T14:15:22Z",
- "nextMaintenanceDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24",
- "cost": 0,
- "supplier": "string",
- "purchaseOrder": "string",
- "invoice": "string",
- "notes": "string",
- "maintenanceHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "inspection",
- "description": "string",
- "technician": "string",
- "cost": 0
}
], - "customFields": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part unit by its ID
| id required | string Asset part unit ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "serialNumber": "SN-EP001-2023-001",
- "assetPart": "60f7b1b3e4b0e8b3f8b3f8b4",
- "batchNumber": "BATCH-2023-001",
- "lotNumber": "string",
- "manufactureDate": "2023-01-15",
- "expiryDate": "2019-08-24",
- "receiptDate": "2023-01-20T10:00:00Z",
- "status": "available",
- "condition": "new",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "assignedTo": {
- "asset": "string",
- "workOrder": "string",
- "technician": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "installationDate": "2019-08-24T14:15:22Z",
- "lastMaintenanceDate": "2019-08-24T14:15:22Z",
- "nextMaintenanceDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24",
- "cost": 0,
- "supplier": "string",
- "purchaseOrder": "string",
- "invoice": "string",
- "notes": "string",
- "maintenanceHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "inspection",
- "description": "string",
- "technician": "string",
- "cost": 0
}
], - "customFields": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part unit with new data
| id required | string Asset part unit ID |
| serialNumber required | string Serial number of the part unit |
| assetPart required | string Asset part ID this unit belongs to |
| batchNumber | string Batch number |
| lotNumber | string Lot number |
| manufactureDate | string <date> Manufacturing date |
| expiryDate | string <date> Expiry date (if applicable) |
| receiptDate | string <date-time> Date when the unit was received |
| status required | string Default: "available" Enum: "available" "reserved" "in-use" "maintenance" "disposed" "returned" Current status of the part unit |
| condition | string Default: "new" Enum: "new" "good" "fair" "poor" "damaged" Physical condition of the part unit |
object | |
object | |
| installationDate | string <date-time> Date when the unit was installed |
| lastMaintenanceDate | string <date-time> Last maintenance date |
| nextMaintenanceDate | string <date-time> Next scheduled maintenance date |
| warrantyExpiry | string <date> Warranty expiry date |
| cost | number <double> >= 0 Cost of this specific unit |
| supplier | string Supplier ID |
| purchaseOrder | string Purchase order reference |
| invoice | string Invoice reference |
| notes | string Additional notes |
object Custom fields | |
object Additional metadata |
{- "serialNumber": "SN-EP001-2023-001",
- "assetPart": "60f7b1b3e4b0e8b3f8b3f8b4",
- "batchNumber": "BATCH-2023-001",
- "lotNumber": "string",
- "manufactureDate": "2023-01-15",
- "expiryDate": "2019-08-24",
- "receiptDate": "2023-01-20T10:00:00Z",
- "status": "available",
- "condition": "new",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "assignedTo": {
- "asset": "string",
- "workOrder": "string",
- "technician": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "installationDate": "2019-08-24T14:15:22Z",
- "lastMaintenanceDate": "2019-08-24T14:15:22Z",
- "nextMaintenanceDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24",
- "cost": 0,
- "supplier": "string",
- "purchaseOrder": "string",
- "invoice": "string",
- "notes": "string",
- "customFields": { },
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "serialNumber": "SN-EP001-2023-001",
- "assetPart": "60f7b1b3e4b0e8b3f8b3f8b4",
- "batchNumber": "BATCH-2023-001",
- "lotNumber": "string",
- "manufactureDate": "2023-01-15",
- "expiryDate": "2019-08-24",
- "receiptDate": "2023-01-20T10:00:00Z",
- "status": "available",
- "condition": "new",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "assignedTo": {
- "asset": "string",
- "workOrder": "string",
- "technician": "string",
- "date": "2019-08-24T14:15:22Z"
}, - "installationDate": "2019-08-24T14:15:22Z",
- "lastMaintenanceDate": "2019-08-24T14:15:22Z",
- "nextMaintenanceDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24",
- "cost": 0,
- "supplier": "string",
- "purchaseOrder": "string",
- "invoice": "string",
- "notes": "string",
- "maintenanceHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "inspection",
- "description": "string",
- "technician": "string",
- "cost": 0
}
], - "customFields": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all asset parts with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "partNumber": "EP-001-2023",
- "name": "Engine Valve",
- "description": "string",
- "partType": "60f7b1b3e4b0e8b3f8b3f8b4",
- "manufacturer": "ABC Manufacturing",
- "model": "string",
- "specifications": {
- "material": "Stainless Steel",
- "diameter": "25mm",
- "length": "50mm"
}, - "compatibleAssets": [
- "string"
], - "supplier": "string",
- "cost": 0,
- "currency": "USD",
- "minStockLevel": 0,
- "maxStockLevel": 0,
- "reorderPoint": 0,
- "leadTime": 7,
- "warrantyPeriod": 365,
- "category": "Engine",
- "subcategory": "Valves",
- "isActive": true,
- "barcode": "string",
- "qrCode": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part with the provided data
| partNumber required | string Unique part number |
| name required | string Name of the asset part |
| description | string Description of the asset part |
| partType required | string Asset part type ID |
| manufacturer | string Manufacturer name |
| model | string Part model number |
object Technical specifications | |
| compatibleAssets | Array of strings List of compatible asset IDs |
| supplier | string Primary supplier ID |
| cost | number <double> >= 0 Current cost of the part |
| currency | string Currency code |
| minStockLevel | integer >= 0 Minimum stock level |
| maxStockLevel | integer >= 0 Maximum stock level |
| reorderPoint | integer >= 0 Reorder point threshold |
| leadTime | integer Lead time in days |
| warrantyPeriod | integer Warranty period in days |
| category | string Part category |
| subcategory | string Part subcategory |
| isActive | boolean Default: true Whether the part is active |
| barcode | string Barcode for the part |
| qrCode | string QR code for the part |
| images | Array of strings <uri> Part images URLs |
Array of objects | |
object Additional metadata |
{- "partNumber": "EP-001-2023",
- "name": "Engine Valve",
- "description": "string",
- "partType": "60f7b1b3e4b0e8b3f8b3f8b4",
- "manufacturer": "ABC Manufacturing",
- "model": "string",
- "specifications": {
- "material": "Stainless Steel",
- "diameter": "25mm",
- "length": "50mm"
}, - "compatibleAssets": [
- "string"
], - "supplier": "string",
- "cost": 0,
- "currency": "USD",
- "minStockLevel": 0,
- "maxStockLevel": 0,
- "reorderPoint": 0,
- "leadTime": 7,
- "warrantyPeriod": 365,
- "category": "Engine",
- "subcategory": "Valves",
- "isActive": true,
- "barcode": "string",
- "qrCode": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "partNumber": "EP-001-2023",
- "name": "Engine Valve",
- "description": "string",
- "partType": "60f7b1b3e4b0e8b3f8b3f8b4",
- "manufacturer": "ABC Manufacturing",
- "model": "string",
- "specifications": {
- "material": "Stainless Steel",
- "diameter": "25mm",
- "length": "50mm"
}, - "compatibleAssets": [
- "string"
], - "supplier": "string",
- "cost": 0,
- "currency": "USD",
- "minStockLevel": 0,
- "maxStockLevel": 0,
- "reorderPoint": 0,
- "leadTime": 7,
- "warrantyPeriod": 365,
- "category": "Engine",
- "subcategory": "Valves",
- "isActive": true,
- "barcode": "string",
- "qrCode": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part by its ID
| id required | string Asset part ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "partNumber": "EP-001-2023",
- "name": "Engine Valve",
- "description": "string",
- "partType": "60f7b1b3e4b0e8b3f8b3f8b4",
- "manufacturer": "ABC Manufacturing",
- "model": "string",
- "specifications": {
- "material": "Stainless Steel",
- "diameter": "25mm",
- "length": "50mm"
}, - "compatibleAssets": [
- "string"
], - "supplier": "string",
- "cost": 0,
- "currency": "USD",
- "minStockLevel": 0,
- "maxStockLevel": 0,
- "reorderPoint": 0,
- "leadTime": 7,
- "warrantyPeriod": 365,
- "category": "Engine",
- "subcategory": "Valves",
- "isActive": true,
- "barcode": "string",
- "qrCode": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part with new data
| id required | string Asset part ID |
| partNumber required | string Unique part number |
| name required | string Name of the asset part |
| description | string Description of the asset part |
| partType required | string Asset part type ID |
| manufacturer | string Manufacturer name |
| model | string Part model number |
object Technical specifications | |
| compatibleAssets | Array of strings List of compatible asset IDs |
| supplier | string Primary supplier ID |
| cost | number <double> >= 0 Current cost of the part |
| currency | string Currency code |
| minStockLevel | integer >= 0 Minimum stock level |
| maxStockLevel | integer >= 0 Maximum stock level |
| reorderPoint | integer >= 0 Reorder point threshold |
| leadTime | integer Lead time in days |
| warrantyPeriod | integer Warranty period in days |
| category | string Part category |
| subcategory | string Part subcategory |
| isActive | boolean Default: true Whether the part is active |
| barcode | string Barcode for the part |
| qrCode | string QR code for the part |
| images | Array of strings <uri> Part images URLs |
Array of objects | |
object Additional metadata |
{- "partNumber": "EP-001-2023",
- "name": "Engine Valve",
- "description": "string",
- "partType": "60f7b1b3e4b0e8b3f8b3f8b4",
- "manufacturer": "ABC Manufacturing",
- "model": "string",
- "specifications": {
- "material": "Stainless Steel",
- "diameter": "25mm",
- "length": "50mm"
}, - "compatibleAssets": [
- "string"
], - "supplier": "string",
- "cost": 0,
- "currency": "USD",
- "minStockLevel": 0,
- "maxStockLevel": 0,
- "reorderPoint": 0,
- "leadTime": 7,
- "warrantyPeriod": 365,
- "category": "Engine",
- "subcategory": "Valves",
- "isActive": true,
- "barcode": "string",
- "qrCode": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "partNumber": "EP-001-2023",
- "name": "Engine Valve",
- "description": "string",
- "partType": "60f7b1b3e4b0e8b3f8b3f8b4",
- "manufacturer": "ABC Manufacturing",
- "model": "string",
- "specifications": {
- "material": "Stainless Steel",
- "diameter": "25mm",
- "length": "50mm"
}, - "compatibleAssets": [
- "string"
], - "supplier": "string",
- "cost": 0,
- "currency": "USD",
- "minStockLevel": 0,
- "maxStockLevel": 0,
- "reorderPoint": 0,
- "leadTime": 7,
- "warrantyPeriod": 365,
- "category": "Engine",
- "subcategory": "Valves",
- "isActive": true,
- "barcode": "string",
- "qrCode": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all asset units with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| asset | string Filter by asset ID |
| status | string Enum: "active" "maintenance" "retired" "disposed" Filter by status |
| location | string Filter by location |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new asset unit entry
| asset required | string Asset ID reference |
| serial_number required | string Unique serial number for this unit |
| barcode | string Barcode identifier |
| status | string Default: "active" Enum: "active" "maintenance" "retired" "disposed" Initial status of the asset unit |
| condition | string Default: "good" Enum: "excellent" "good" "fair" "poor" Physical condition of the asset |
| location | string Current location of the asset unit |
| assigned_to | string User or department assigned to this asset |
| purchase_date | string <date> Date when the asset unit was purchased |
| warranty_expiry | string <date> Warranty expiration date |
| purchase_cost | number <float> Original purchase cost |
object | |
| notes | string Additional notes about the asset unit |
| custom_fields | object Custom fields for additional data |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether the asset unit is disabled |
{- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "string",
- "status": "active",
- "condition": "excellent",
- "location": "string",
- "assigned_to": "string",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "purchase_cost": 0,
- "depreciation": {
- "method": "straight-line",
- "rate": 0
}, - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific asset unit by its ID
| id required | string Asset unit ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing asset unit
| id required | string Asset unit ID |
| serial_number | string Unique serial number for this unit |
| barcode | string Barcode identifier |
| status | string Enum: "active" "maintenance" "retired" "disposed" Status of the asset unit |
| condition | string Enum: "excellent" "good" "fair" "poor" Physical condition of the asset |
| location | string Current location of the asset unit |
| assigned_to | string User or department assigned to this asset |
| purchase_date | string <date> Date when the asset unit was purchased |
| warranty_expiry | string <date> Warranty expiration date |
| last_maintenance | string <date-time> Date of last maintenance |
| next_maintenance | string <date> Date of next scheduled maintenance |
| purchase_cost | number <float> Original purchase cost |
object | |
| notes | string Additional notes about the asset unit |
| custom_fields | object Custom fields for additional data |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether the asset unit is disabled |
{- "serial_number": "string",
- "barcode": "string",
- "status": "active",
- "condition": "excellent",
- "location": "string",
- "assigned_to": "string",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 0,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Delete multiple asset units by their IDs
| ids required | Array of strings Array of asset unit IDs to delete |
{- "ids": [
- "string"
]
}{- "success": true
}Update the status of an asset unit
| id required | string Asset unit ID |
| status required | string Enum: "active" "maintenance" "retired" "disposed" New status for the asset unit |
| reason | string Reason for status change |
| notes | string Additional notes |
{- "status": "active",
- "reason": "string",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a list of all client channels with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
string or Array of strings Filter by channel ID(s) | |
| search | string Search text for channel name |
string or Array of strings Filter by channel name(s) | |
string or Array of strings Filter by local name(s) | |
| disabled | boolean Filter by disabled status |
| from_updatedAt | integer <int64> Filter channels updated after this timestamp |
| from__id | string Filter channels with ID greater than this value |
| to__id | string Filter channels with ID less than this value |
Array of objects Advanced sorting options |
{- "success": true,
- "data": [
- {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
], - "pagination": {
- "page": 1,
- "per_page": 25,
- "pre_page": 0,
- "next_page": 2,
- "total": 100,
- "total_page": 4
}
}Create a new client channel
| name required | string Channel name (required) |
| local_name | string Local/translated name |
| disabled | boolean Whether the channel is disabled |
object Metadata for third-party integrations | |
| company_namespace | Array of strings Company namespaces this channel belongs to |
{- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123"
}, - "company_namespace": [
- "company1"
]
}{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Retrieve a specific client channel by ID
| id required | string Channel ID |
{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Update an existing client channel
| id required | string Channel ID |
| name | string Channel name |
| local_name | string Local/translated name |
| disabled | boolean Whether the channel is disabled |
object Metadata for third-party integrations | |
| company_namespace | Array of strings Company namespaces this channel belongs to |
| _id | string Channel ID (for internal use) |
| createdAt | string <date-time> Creation timestamp (for internal use) |
| updatedAt | string <date-time> Last update timestamp (for internal use) |
| __v | integer Version key (for internal use) |
{- "name": "Updated Retail Channel",
- "local_name": "قناة التجزئة المحدثة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "updated"
}, - "company_namespace": [
- "company1"
], - "_id": "60f1b2b3c9e9a12345678901",
- "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Delete an existing client channel
| id required | string Channel ID |
{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Retrieve a list of all client contacts with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
string or Array of strings Filter by contact ID(s) | |
| search | string Search text for contact name |
string or Array of strings Filter by contact name(s) | |
| from_updatedAt | integer <int64> Filter contacts updated after this timestamp |
| to_updatedAt | integer <int64> Filter contacts updated before this timestamp |
| from__id | string Filter contacts with ID greater than this value |
| to__id | string Filter contacts with ID less than this value |
Array of objects Advanced sorting options |
{- "success": true,
- "data": [
- {
- "_id": "60f1b2b3c9e9a12345678901",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "name": "John Smith",
- "local_name": "جون سميث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith@example.com",
- "title": "Sales Manager",
- "extra_info": "Primary contact for technical issues",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
], - "pagination": {
- "page": 1,
- "per_page": 25,
- "pre_page": 0,
- "next_page": 2,
- "total": 100,
- "total_page": 4
}
}Create a new client contact
| name required | string Contact name (required) |
AdminCreator (object) or RepCreator (object) or ClientCreator (object) User who created this contact | |
AdminCreator (object) or RepCreator (object) or ClientCreator (object) User who last edited this contact | |
| local_name | string Local/translated name |
| phone1 | string Primary phone number |
| phone2 | string Secondary phone number |
string <email> Email address | |
| title | string Job title or position |
| extra_info | string Additional information about the contact |
| disabled | boolean Whether the contact is disabled |
| media | Array of strings Array of media file URLs |
| cover_photo | string Cover photo URL |
object Metadata for third-party integrations | |
| company_namespace | Array of strings Company namespaces this contact belongs to |
{- "name": "John Smith",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "local_name": "جون سميث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith@example.com",
- "title": "Sales Manager",
- "extra_info": "Primary contact for technical issues",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123"
}, - "company_namespace": [
- "company1"
]
}{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "name": "John Smith",
- "local_name": "جون سميث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith@example.com",
- "title": "Sales Manager",
- "extra_info": "Primary contact for technical issues",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Retrieve a specific client contact by ID
| id required | string Client contact ID |
{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "name": "John Smith",
- "local_name": "جون سميث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith@example.com",
- "title": "Sales Manager",
- "extra_info": "Primary contact for technical issues",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Update an existing client contact
| id required | string Client contact ID |
| name | string Contact name |
AdminCreator (object) or RepCreator (object) or ClientCreator (object) User who created this contact | |
AdminCreator (object) or RepCreator (object) or ClientCreator (object) User who last edited this contact | |
| local_name | string Local/translated name |
| phone1 | string Primary phone number |
| phone2 | string Secondary phone number |
string <email> Email address | |
| title | string Job title or position |
| extra_info | string Additional information about the contact |
| disabled | boolean Whether the contact is disabled |
| media | Array of strings Array of media file URLs |
| cover_photo | string Cover photo URL |
object Metadata for third-party integrations | |
| company_namespace | Array of strings Company namespaces this contact belongs to |
| _id | string Contact ID (for internal use) |
| createdAt | string <date-time> Creation timestamp (for internal use) |
| updatedAt | string <date-time> Last update timestamp (for internal use) |
| __v | integer Version key (for internal use) |
{- "name": "John Smith Updated",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "local_name": "جون سميث محدث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith.updated@example.com",
- "title": "Senior Sales Manager",
- "extra_info": "Primary contact for technical issues - updated",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123",
- "sync_status": "updated"
}, - "company_namespace": [
- "company1"
], - "_id": "60f1b2b3c9e9a12345678901",
- "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "name": "John Smith",
- "local_name": "جون سميث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith@example.com",
- "title": "Sales Manager",
- "extra_info": "Primary contact for technical issues",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Delete an existing client contact
| id required | string Client contact ID |
{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "creator": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "editor": {
- "_id": "60f1b2b3c9e9a12345678901",
- "username": "admin_user",
- "name": "Admin User",
- "type": "admin"
}, - "name": "John Smith",
- "local_name": "جون سميث",
- "phone1": "+1234567890",
- "phone2": "+1234567891",
- "email": "john.smith@example.com",
- "title": "Sales Manager",
- "extra_info": "Primary contact for technical issues",
- "disabled": false,
- "integration_meta": {
- "external_id": "contact_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Retrieve a list of all client locations with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| client | string Filter by client ID |
| disabled | boolean Filter by disabled status |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "client": "507f1f77bcf86cd799439012",
- "name": "Main Office",
- "address": "123 Main St",
- "city": "New York",
- "state": "NY",
- "postal_code": "10001",
- "country": "United States",
- "coordinates": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "is_primary": true,
- "location_type": "office",
- "contact_info": {
- "phone": "+1-555-123-4567",
- "email": "contact@example.com",
- "fax": "string"
}, - "business_hours": {
- "monday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "tuesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "wednesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "thursday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "friday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "saturday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "sunday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}
}, - "notes": "string",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new client location entry
| client required | string Client ID |
| name required | string Location name |
| address required | string Street address |
| city | string City name |
| state | string State or province |
| postal_code | string Postal or ZIP code |
| country | string Country name |
object | |
| is_primary | boolean Default: false Whether this is the primary location |
| location_type | string Default: "office" Enum: "office" "warehouse" "retail" "branch" "other" Type of location |
object | |
object | |
| notes | string Additional notes about the location |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether the location is disabled |
{- "client": "507f1f77bcf86cd799439012",
- "name": "Main Office",
- "address": "123 Main St",
- "city": "New York",
- "state": "NY",
- "postal_code": "10001",
- "country": "United States",
- "coordinates": {
- "latitude": 0,
- "longitude": 0
}, - "is_primary": false,
- "location_type": "office",
- "contact_info": {
- "phone": "string",
- "email": "user@example.com",
- "fax": "string"
}, - "business_hours": {
- "monday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "tuesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "wednesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "thursday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "friday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "saturday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "sunday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}
}, - "notes": "string",
- "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "client": "507f1f77bcf86cd799439012",
- "name": "Main Office",
- "address": "123 Main St",
- "city": "New York",
- "state": "NY",
- "postal_code": "10001",
- "country": "United States",
- "coordinates": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "is_primary": true,
- "location_type": "office",
- "contact_info": {
- "phone": "+1-555-123-4567",
- "email": "contact@example.com",
- "fax": "string"
}, - "business_hours": {
- "monday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "tuesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "wednesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "thursday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "friday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "saturday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "sunday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}
}, - "notes": "string",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific client location by its ID
| id required | string Client location ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "client": "507f1f77bcf86cd799439012",
- "name": "Main Office",
- "address": "123 Main St",
- "city": "New York",
- "state": "NY",
- "postal_code": "10001",
- "country": "United States",
- "coordinates": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "is_primary": true,
- "location_type": "office",
- "contact_info": {
- "phone": "+1-555-123-4567",
- "email": "contact@example.com",
- "fax": "string"
}, - "business_hours": {
- "monday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "tuesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "wednesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "thursday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "friday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "saturday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "sunday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}
}, - "notes": "string",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing client location
| id required | string Client location ID |
| name | string Location name |
| address | string Street address |
| city | string City name |
| state | string State or province |
| postal_code | string Postal or ZIP code |
| country | string Country name |
object | |
| is_primary | boolean Whether this is the primary location |
| location_type | string Enum: "office" "warehouse" "retail" "branch" "other" Type of location |
object | |
object | |
| notes | string Additional notes about the location |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether the location is disabled |
{- "name": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "postal_code": "string",
- "country": "string",
- "coordinates": {
- "latitude": 0,
- "longitude": 0
}, - "is_primary": true,
- "location_type": "office",
- "contact_info": {
- "phone": "string",
- "email": "user@example.com",
- "fax": "string"
}, - "business_hours": {
- "monday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "tuesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "wednesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "thursday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "friday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "saturday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "sunday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}
}, - "notes": "string",
- "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "client": "507f1f77bcf86cd799439012",
- "name": "Main Office",
- "address": "123 Main St",
- "city": "New York",
- "state": "NY",
- "postal_code": "10001",
- "country": "United States",
- "coordinates": {
- "latitude": 40.7128,
- "longitude": -74.006
}, - "is_primary": true,
- "location_type": "office",
- "contact_info": {
- "phone": "+1-555-123-4567",
- "email": "contact@example.com",
- "fax": "string"
}, - "business_hours": {
- "monday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "tuesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "wednesday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "thursday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "friday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "saturday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}, - "sunday": {
- "open": "09:00",
- "close": "17:00",
- "is_closed": false
}
}, - "notes": "string",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Delete multiple client locations by their IDs
| ids required | Array of strings Array of client location IDs to delete |
{- "ids": [
- "string"
]
}{- "success": true
}Retrieve a list of all contract installments with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| contract | string Filter by contract ID |
| status | string Enum: "pending" "paid" "overdue" "cancelled" Filter by payment status |
| due_date_from | string <date> Filter by due date from |
| due_date_to | string <date> Filter by due date to |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 50,
- "discount_applied": 0,
- "interest_rate": 5.5,
- "grace_period_days": 5,
- "reminder_sent": false,
- "reminder_dates": [
- "2019-08-24T14:15:22Z"
], - "auto_pay_enabled": false,
- "payment_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "amount": 0,
- "method": "string",
- "reference": "string",
- "notes": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new contract installment
| contract required | string Contract ID reference |
| installment_number required | integer Installment sequence number |
| due_date required | string <date> Due date for this installment |
| amount required | number <float> Installment amount |
| currency | string Default: "USD" Currency code |
| late_fee | number <float> Default: 0 Late fee charged if overdue |
| discount_applied | number <float> Default: 0 Discount applied to this installment |
| interest_rate | number <float> Default: 0 Interest rate for this installment |
| grace_period_days | integer Default: 0 Grace period in days before marking overdue |
| auto_pay_enabled | boolean Default: false Whether auto-pay is enabled for this installment |
| notes | string Additional notes |
| custom_fields | object Custom fields for additional data |
| company_namespace | Array of strings Company namespace |
{- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "late_fee": 0,
- "discount_applied": 0,
- "interest_rate": 0,
- "grace_period_days": 0,
- "auto_pay_enabled": false,
- "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 50,
- "discount_applied": 0,
- "interest_rate": 5.5,
- "grace_period_days": 5,
- "reminder_sent": false,
- "reminder_dates": [
- "2019-08-24T14:15:22Z"
], - "auto_pay_enabled": false,
- "payment_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "amount": 0,
- "method": "string",
- "reference": "string",
- "notes": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific contract installment by its ID
| id required | string Contract installment ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 50,
- "discount_applied": 0,
- "interest_rate": 5.5,
- "grace_period_days": 5,
- "reminder_sent": false,
- "reminder_dates": [
- "2019-08-24T14:15:22Z"
], - "auto_pay_enabled": false,
- "payment_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "amount": 0,
- "method": "string",
- "reference": "string",
- "notes": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing contract installment
| id required | string Contract installment ID |
| due_date | string <date> Due date for this installment |
| amount | number <float> Installment amount |
| status | string Enum: "pending" "paid" "overdue" "cancelled" Payment status |
| payment_date | string <date> Date when payment was made |
| payment_amount | number <float> Amount actually paid |
| payment_method | string Enum: "cash" "check" "credit_card" "bank_transfer" "other" Payment method used |
| payment_reference | string Payment reference number |
| late_fee | number <float> Late fee charged if overdue |
| discount_applied | number <float> Discount applied to this installment |
| interest_rate | number <float> Interest rate for this installment |
| grace_period_days | integer Grace period in days before marking overdue |
| auto_pay_enabled | boolean Whether auto-pay is enabled for this installment |
| notes | string Additional notes |
| custom_fields | object Custom fields for additional data |
| company_namespace | Array of strings Company namespace |
{- "due_date": "2019-08-24",
- "amount": 0,
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 0,
- "discount_applied": 0,
- "interest_rate": 0,
- "grace_period_days": 0,
- "auto_pay_enabled": true,
- "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 50,
- "discount_applied": 0,
- "interest_rate": 5.5,
- "grace_period_days": 5,
- "reminder_sent": false,
- "reminder_dates": [
- "2019-08-24T14:15:22Z"
], - "auto_pay_enabled": false,
- "payment_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "amount": 0,
- "method": "string",
- "reference": "string",
- "notes": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Mark a contract installment as paid
| id required | string Contract installment ID |
| payment_date required | string <date> Date of payment |
| payment_amount required | number <float> Amount paid |
| payment_method | string Enum: "cash" "check" "credit_card" "bank_transfer" "other" Payment method used |
| payment_reference | string Payment reference number |
| notes | string Payment notes |
{- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 50,
- "discount_applied": 0,
- "interest_rate": 5.5,
- "grace_period_days": 5,
- "reminder_sent": false,
- "reminder_dates": [
- "2019-08-24T14:15:22Z"
], - "auto_pay_enabled": false,
- "payment_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "amount": 0,
- "method": "string",
- "reference": "string",
- "notes": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Get all overdue contract installments
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| days_overdue | integer >= 0 Minimum days overdue |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "contract": "507f1f77bcf86cd799439012",
- "installment_number": 1,
- "due_date": "2024-01-15",
- "amount": 1500,
- "currency": "USD",
- "status": "pending",
- "payment_date": "2019-08-24",
- "payment_amount": 0,
- "payment_method": "cash",
- "payment_reference": "string",
- "late_fee": 50,
- "discount_applied": 0,
- "interest_rate": 5.5,
- "grace_period_days": 5,
- "reminder_sent": false,
- "reminder_dates": [
- "2019-08-24T14:15:22Z"
], - "auto_pay_enabled": false,
- "payment_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "amount": 0,
- "method": "string",
- "reference": "string",
- "notes": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0,
- "days_overdue": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Retrieve a list of all feedback options with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| category | string Filter by category |
| is_active | boolean Filter by active status |
| template_type | string Enum: "survey" "rating" "nps" "custom" Filter by template type |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Sales Visit Feedback",
- "description": "Feedback template for sales visit activities",
- "category": "sales",
- "template_type": "survey",
- "questions": [
- {
- "question_id": "string",
- "question_text": "How satisfied were you with the service?",
- "question_type": "rating",
- "is_required": false,
- "options": [
- {
- "value": "string",
- "label": "string",
- "weight": 0
}
], - "validation": {
- "min_length": 0,
- "max_length": 0,
- "pattern": "string",
- "custom_validation": "string"
}, - "display_settings": {
- "show_labels": true,
- "orientation": "horizontal",
- "scale_min": 0,
- "scale_max": 0,
- "scale_step": 0
}, - "conditional_logic": {
- "show_if": {
- "question_id": "string",
- "operator": "equals",
- "value": "string"
}
}
}
], - "settings": {
- "allow_anonymous": true,
- "require_all_questions": false,
- "show_progress": true,
- "randomize_questions": false,
- "max_completion_time": 0,
- "reminder_settings": {
- "send_reminders": true,
- "reminder_intervals": [
- 0
]
}
}, - "styling": {
- "theme": "light",
- "primary_color": "#007bff",
- "font_family": "Arial, sans-serif",
- "custom_css": "string"
}, - "notification_settings": {
- "notify_on_completion": true,
- "notify_on_low_rating": true,
- "low_rating_threshold": 1,
- "notification_recipients": [
- "string"
]
}, - "is_active": true,
- "usage_count": 25,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new feedback options template
| name required | string Template name |
| description | string Template description |
| category | string Category of the template |
| template_type required | string Enum: "survey" "rating" "nps" "custom" Type of feedback template |
required | Array of objects (FeedbackQuestion) |
object | |
object | |
object | |
| is_active | boolean Default: true Whether the template is active |
| company_namespace | Array of strings Company namespace |
{- "name": "Sales Visit Feedback",
- "description": "string",
- "category": "string",
- "template_type": "survey",
- "questions": [
- {
- "question_id": "string",
- "question_text": "How satisfied were you with the service?",
- "question_type": "rating",
- "is_required": false,
- "options": [
- {
- "value": "string",
- "label": "string",
- "weight": 0
}
], - "validation": {
- "min_length": 0,
- "max_length": 0,
- "pattern": "string",
- "custom_validation": "string"
}, - "display_settings": {
- "show_labels": true,
- "orientation": "horizontal",
- "scale_min": 0,
- "scale_max": 0,
- "scale_step": 0
}, - "conditional_logic": {
- "show_if": {
- "question_id": "string",
- "operator": "equals",
- "value": "string"
}
}
}
], - "settings": {
- "allow_anonymous": true,
- "require_all_questions": false,
- "show_progress": true,
- "randomize_questions": false,
- "max_completion_time": 0
}, - "styling": {
- "theme": "light",
- "primary_color": "string",
- "font_family": "string",
- "custom_css": "string"
}, - "notification_settings": {
- "notify_on_completion": false,
- "notify_on_low_rating": false,
- "low_rating_threshold": 0,
- "notification_recipients": [
- "string"
]
}, - "is_active": true,
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Sales Visit Feedback",
- "description": "Feedback template for sales visit activities",
- "category": "sales",
- "template_type": "survey",
- "questions": [
- {
- "question_id": "string",
- "question_text": "How satisfied were you with the service?",
- "question_type": "rating",
- "is_required": false,
- "options": [
- {
- "value": "string",
- "label": "string",
- "weight": 0
}
], - "validation": {
- "min_length": 0,
- "max_length": 0,
- "pattern": "string",
- "custom_validation": "string"
}, - "display_settings": {
- "show_labels": true,
- "orientation": "horizontal",
- "scale_min": 0,
- "scale_max": 0,
- "scale_step": 0
}, - "conditional_logic": {
- "show_if": {
- "question_id": "string",
- "operator": "equals",
- "value": "string"
}
}
}
], - "settings": {
- "allow_anonymous": true,
- "require_all_questions": false,
- "show_progress": true,
- "randomize_questions": false,
- "max_completion_time": 0,
- "reminder_settings": {
- "send_reminders": true,
- "reminder_intervals": [
- 0
]
}
}, - "styling": {
- "theme": "light",
- "primary_color": "#007bff",
- "font_family": "Arial, sans-serif",
- "custom_css": "string"
}, - "notification_settings": {
- "notify_on_completion": true,
- "notify_on_low_rating": true,
- "low_rating_threshold": 1,
- "notification_recipients": [
- "string"
]
}, - "is_active": true,
- "usage_count": 25,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific feedback options template by its ID
| id required | string Feedback options ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Sales Visit Feedback",
- "description": "Feedback template for sales visit activities",
- "category": "sales",
- "template_type": "survey",
- "questions": [
- {
- "question_id": "string",
- "question_text": "How satisfied were you with the service?",
- "question_type": "rating",
- "is_required": false,
- "options": [
- {
- "value": "string",
- "label": "string",
- "weight": 0
}
], - "validation": {
- "min_length": 0,
- "max_length": 0,
- "pattern": "string",
- "custom_validation": "string"
}, - "display_settings": {
- "show_labels": true,
- "orientation": "horizontal",
- "scale_min": 0,
- "scale_max": 0,
- "scale_step": 0
}, - "conditional_logic": {
- "show_if": {
- "question_id": "string",
- "operator": "equals",
- "value": "string"
}
}
}
], - "settings": {
- "allow_anonymous": true,
- "require_all_questions": false,
- "show_progress": true,
- "randomize_questions": false,
- "max_completion_time": 0,
- "reminder_settings": {
- "send_reminders": true,
- "reminder_intervals": [
- 0
]
}
}, - "styling": {
- "theme": "light",
- "primary_color": "#007bff",
- "font_family": "Arial, sans-serif",
- "custom_css": "string"
}, - "notification_settings": {
- "notify_on_completion": true,
- "notify_on_low_rating": true,
- "low_rating_threshold": 1,
- "notification_recipients": [
- "string"
]
}, - "is_active": true,
- "usage_count": 25,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing feedback options template
| id required | string Feedback options ID |
| name | string Template name |
| description | string Template description |
| category | string Category of the template |
Array of objects (FeedbackQuestion) | |
object | |
object | |
object | |
| is_active | boolean Whether the template is active |
| company_namespace | Array of strings Company namespace |
{- "name": "string",
- "description": "string",
- "category": "string",
- "questions": [
- {
- "question_id": "string",
- "question_text": "How satisfied were you with the service?",
- "question_type": "rating",
- "is_required": false,
- "options": [
- {
- "value": "string",
- "label": "string",
- "weight": 0
}
], - "validation": {
- "min_length": 0,
- "max_length": 0,
- "pattern": "string",
- "custom_validation": "string"
}, - "display_settings": {
- "show_labels": true,
- "orientation": "horizontal",
- "scale_min": 0,
- "scale_max": 0,
- "scale_step": 0
}, - "conditional_logic": {
- "show_if": {
- "question_id": "string",
- "operator": "equals",
- "value": "string"
}
}
}
], - "settings": {
- "allow_anonymous": true,
- "require_all_questions": true,
- "show_progress": true,
- "randomize_questions": true,
- "max_completion_time": 0
}, - "styling": {
- "theme": "light",
- "primary_color": "string",
- "font_family": "string",
- "custom_css": "string"
}, - "notification_settings": {
- "notify_on_completion": true,
- "notify_on_low_rating": true,
- "low_rating_threshold": 0,
- "notification_recipients": [
- "string"
]
}, - "is_active": true,
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Sales Visit Feedback",
- "description": "Feedback template for sales visit activities",
- "category": "sales",
- "template_type": "survey",
- "questions": [
- {
- "question_id": "string",
- "question_text": "How satisfied were you with the service?",
- "question_type": "rating",
- "is_required": false,
- "options": [
- {
- "value": "string",
- "label": "string",
- "weight": 0
}
], - "validation": {
- "min_length": 0,
- "max_length": 0,
- "pattern": "string",
- "custom_validation": "string"
}, - "display_settings": {
- "show_labels": true,
- "orientation": "horizontal",
- "scale_min": 0,
- "scale_max": 0,
- "scale_step": 0
}, - "conditional_logic": {
- "show_if": {
- "question_id": "string",
- "operator": "equals",
- "value": "string"
}
}
}
], - "settings": {
- "allow_anonymous": true,
- "require_all_questions": false,
- "show_progress": true,
- "randomize_questions": false,
- "max_completion_time": 0,
- "reminder_settings": {
- "send_reminders": true,
- "reminder_intervals": [
- 0
]
}
}, - "styling": {
- "theme": "light",
- "primary_color": "#007bff",
- "font_family": "Arial, sans-serif",
- "custom_css": "string"
}, - "notification_settings": {
- "notify_on_completion": true,
- "notify_on_low_rating": true,
- "low_rating_threshold": 1,
- "notification_recipients": [
- "string"
]
}, - "is_active": true,
- "usage_count": 25,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Get a preview of how the feedback template will appear
| id required | string Feedback options ID |
{- "success": true,
- "data": {
- "template_html": "string",
- "estimated_completion_time": 0,
- "question_count": 0
}
}Get a list of predefined feedback templates
| category | string Filter by category |
| template_type | string Enum: "survey" "rating" "nps" "custom" Filter by template type |
{- "success": true,
- "data": [
- {
- "template_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "template_type": "string",
- "question_count": 0,
- "estimated_time": 0
}
]
}Retrieve a list of all integration action log records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "actionType": "create",
- "entityType": "product",
- "entityId": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "success",
- "payload": { },
- "response": { },
- "errorMessage": "string",
- "retryCount": 0,
- "executionTime": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new integration action log record with the provided data
| integrationId required | string Integration identifier |
| actionType required | string Enum: "create" "update" "delete" "sync" "webhook" Type of action performed |
| entityType required | string Type of entity affected |
| entityId | string ID of the affected entity |
| status required | string Enum: "pending" "success" "failed" "retrying" Status of the action |
object Action payload data | |
object Response data from the action | |
| errorMessage | string Error message if action failed |
| retryCount | integer >= 0 Default: 0 Number of retry attempts |
| executionTime | number Execution time in milliseconds |
object Additional metadata |
{- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "actionType": "create",
- "entityType": "product",
- "entityId": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "success",
- "payload": { },
- "response": { },
- "errorMessage": "string",
- "retryCount": 0,
- "executionTime": 0,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "actionType": "create",
- "entityType": "product",
- "entityId": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "success",
- "payload": { },
- "response": { },
- "errorMessage": "string",
- "retryCount": 0,
- "executionTime": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific integration action log record by its ID
| id required | string Integration action log record ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "actionType": "create",
- "entityType": "product",
- "entityId": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "success",
- "payload": { },
- "response": { },
- "errorMessage": "string",
- "retryCount": 0,
- "executionTime": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing integration action log record with new data
| id required | string Integration action log record ID |
| integrationId required | string Integration identifier |
| actionType required | string Enum: "create" "update" "delete" "sync" "webhook" Type of action performed |
| entityType required | string Type of entity affected |
| entityId | string ID of the affected entity |
| status required | string Enum: "pending" "success" "failed" "retrying" Status of the action |
object Action payload data | |
object Response data from the action | |
| errorMessage | string Error message if action failed |
| retryCount | integer >= 0 Default: 0 Number of retry attempts |
| executionTime | number Execution time in milliseconds |
object Additional metadata |
{- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "actionType": "create",
- "entityType": "product",
- "entityId": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "success",
- "payload": { },
- "response": { },
- "errorMessage": "string",
- "retryCount": 0,
- "executionTime": 0,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "actionType": "create",
- "entityType": "product",
- "entityId": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "success",
- "payload": { },
- "response": { },
- "errorMessage": "string",
- "retryCount": 0,
- "executionTime": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Delete an existing integration action log record
| id required | string Integration action log record ID |
{- "success": true,
- "message": "Integration action log record deleted successfully"
}Retrieve a list of all integration command log records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "commandType": "sync",
- "command": "sync-products",
- "parameters": { },
- "status": "completed",
- "startTime": "2023-01-15T08:00:00Z",
- "endTime": "2023-01-15T08:05:00Z",
- "duration": 300000,
- "output": { },
- "errorLog": "string",
- "processedRecords": 0,
- "failedRecords": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new integration command log record with the provided data
| integrationId required | string Integration identifier |
| commandType required | string Enum: "sync" "import" "export" "validate" "transform" Type of command executed |
| command required | string The actual command that was executed |
object Command parameters | |
| status required | string Enum: "pending" "running" "completed" "failed" "cancelled" Status of the command execution |
| startTime | string <date-time> Command start time |
| endTime | string <date-time> Command end time |
| duration | number Command execution duration in milliseconds |
object Command output data | |
| errorLog | string Error log if command failed |
| processedRecords | integer >= 0 Number of records processed |
| failedRecords | integer >= 0 Number of records that failed processing |
object Additional metadata |
{- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "commandType": "sync",
- "command": "sync-products",
- "parameters": { },
- "status": "completed",
- "startTime": "2023-01-15T08:00:00Z",
- "endTime": "2023-01-15T08:05:00Z",
- "duration": 300000,
- "output": { },
- "errorLog": "string",
- "processedRecords": 0,
- "failedRecords": 0,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "commandType": "sync",
- "command": "sync-products",
- "parameters": { },
- "status": "completed",
- "startTime": "2023-01-15T08:00:00Z",
- "endTime": "2023-01-15T08:05:00Z",
- "duration": 300000,
- "output": { },
- "errorLog": "string",
- "processedRecords": 0,
- "failedRecords": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific integration command log record by its ID
| id required | string Integration command log record ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "commandType": "sync",
- "command": "sync-products",
- "parameters": { },
- "status": "completed",
- "startTime": "2023-01-15T08:00:00Z",
- "endTime": "2023-01-15T08:05:00Z",
- "duration": 300000,
- "output": { },
- "errorLog": "string",
- "processedRecords": 0,
- "failedRecords": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing integration command log record with new data
| id required | string Integration command log record ID |
| integrationId required | string Integration identifier |
| commandType required | string Enum: "sync" "import" "export" "validate" "transform" Type of command executed |
| command required | string The actual command that was executed |
object Command parameters | |
| status required | string Enum: "pending" "running" "completed" "failed" "cancelled" Status of the command execution |
| startTime | string <date-time> Command start time |
| endTime | string <date-time> Command end time |
| duration | number Command execution duration in milliseconds |
object Command output data | |
| errorLog | string Error log if command failed |
| processedRecords | integer >= 0 Number of records processed |
| failedRecords | integer >= 0 Number of records that failed processing |
object Additional metadata |
{- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "commandType": "sync",
- "command": "sync-products",
- "parameters": { },
- "status": "completed",
- "startTime": "2023-01-15T08:00:00Z",
- "endTime": "2023-01-15T08:05:00Z",
- "duration": 300000,
- "output": { },
- "errorLog": "string",
- "processedRecords": 0,
- "failedRecords": 0,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "integrationId": "60f7b1b3e4b0e8b3f8b3f8b4",
- "commandType": "sync",
- "command": "sync-products",
- "parameters": { },
- "status": "completed",
- "startTime": "2023-01-15T08:00:00Z",
- "endTime": "2023-01-15T08:05:00Z",
- "duration": 300000,
- "output": { },
- "errorLog": "string",
- "processedRecords": 0,
- "failedRecords": 0,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Delete an existing integration command log record
| id required | string Integration command log record ID |
{- "success": true,
- "message": "Integration command log record deleted successfully"
}Retrieve a list of all unsubscribed email addresses with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
string Filter by email address | |
| company_namespace | Array of strings Company namespace for filtering |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "marketing",
- "newsletters"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Add an email address to the unsubscribe list
| email required | string <email> Email address to unsubscribe |
| reason | string Reason for unsubscribing |
| unsubscribe_types | Array of strings Default: ["all"] Types of emails to unsubscribe from |
| company_namespace | Array of strings Company namespace |
| user_agent | string User agent of the request |
| ip_address | string IP address of the request |
{- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "all"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "marketing",
- "newsletters"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific unsubscribe record by its ID
| id required | string Unsubscribe record ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "marketing",
- "newsletters"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Remove multiple email addresses from the unsubscribe list
| ids required | Array of strings Array of unsubscribe record IDs to remove |
{- "ids": [
- "string"
]
}{- "success": true
}Check if an email address is in the unsubscribe list
| email required | string <email> Email address to check |
{- "email": "user@example.com"
}{- "success": true,
- "data": {
- "is_unsubscribed": true,
- "unsubscribe_date": "2019-08-24T14:15:22Z"
}
}Retrieve a list of all OCR invoice job groups with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Monthly Invoice Batch - January 2023",
- "description": "string",
- "batchNumber": "BATCH-2023-001",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "totalJobs": 150,
- "completedJobs": 120,
- "pendingJobs": 20,
- "failedJobs": 10,
- "status": "created",
- "priority": "low",
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T10:30:00Z",
- "estimatedCompletionTime": "2023-01-15T11:00:00Z",
- "processingSettings": {
- "parallelJobs": 3,
- "retryCount": 2,
- "timeoutMinutes": 30
}, - "statistics": {
- "totalDocuments": 0,
- "totalPages": 0,
- "averageProcessingTime": 0,
- "successRate": 1,
- "totalCost": 0,
- "currency": "USD"
}, - "notifications": {
- "onCompletion": false,
- "onFailure": true,
- "recipients": [
- "user@example.com"
]
}, - "createdBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "assignedTo": "60f7b1b3e4b0e8b3f8b3f8b6",
- "tags": [
- "monthly",
- "invoices",
- "accounting"
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new OCR invoice job group with the provided data
| name required | string Name of the job group |
| description | string Description of the job group |
| batchNumber | string Batch number for tracking |
| template required | string OCR template ID to use for this group |
| priority | string Default: "medium" Enum: "low" "medium" "high" "urgent" Processing priority |
object | |
object | |
| createdBy | string User who created the job group |
| assignedTo | string User assigned to manage this group |
| tags | Array of strings Tags for categorization |
object Additional metadata |
{- "name": "Monthly Invoice Batch - January 2023",
- "description": "string",
- "batchNumber": "BATCH-2023-001",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "priority": "low",
- "processingSettings": {
- "parallelJobs": 3,
- "retryCount": 2,
- "timeoutMinutes": 30
}, - "notifications": {
- "onCompletion": false,
- "onFailure": true,
- "recipients": [
- "user@example.com"
]
}, - "createdBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "assignedTo": "60f7b1b3e4b0e8b3f8b3f8b6",
- "tags": [
- "monthly",
- "invoices",
- "accounting"
], - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Monthly Invoice Batch - January 2023",
- "description": "string",
- "batchNumber": "BATCH-2023-001",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "totalJobs": 150,
- "completedJobs": 120,
- "pendingJobs": 20,
- "failedJobs": 10,
- "status": "created",
- "priority": "low",
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T10:30:00Z",
- "estimatedCompletionTime": "2023-01-15T11:00:00Z",
- "processingSettings": {
- "parallelJobs": 3,
- "retryCount": 2,
- "timeoutMinutes": 30
}, - "statistics": {
- "totalDocuments": 0,
- "totalPages": 0,
- "averageProcessingTime": 0,
- "successRate": 1,
- "totalCost": 0,
- "currency": "USD"
}, - "notifications": {
- "onCompletion": false,
- "onFailure": true,
- "recipients": [
- "user@example.com"
]
}, - "createdBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "assignedTo": "60f7b1b3e4b0e8b3f8b3f8b6",
- "tags": [
- "monthly",
- "invoices",
- "accounting"
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific OCR invoice job group by its ID
| id required | string OCR invoice job group ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Monthly Invoice Batch - January 2023",
- "description": "string",
- "batchNumber": "BATCH-2023-001",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "totalJobs": 150,
- "completedJobs": 120,
- "pendingJobs": 20,
- "failedJobs": 10,
- "status": "created",
- "priority": "low",
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T10:30:00Z",
- "estimatedCompletionTime": "2023-01-15T11:00:00Z",
- "processingSettings": {
- "parallelJobs": 3,
- "retryCount": 2,
- "timeoutMinutes": 30
}, - "statistics": {
- "totalDocuments": 0,
- "totalPages": 0,
- "averageProcessingTime": 0,
- "successRate": 1,
- "totalCost": 0,
- "currency": "USD"
}, - "notifications": {
- "onCompletion": false,
- "onFailure": true,
- "recipients": [
- "user@example.com"
]
}, - "createdBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "assignedTo": "60f7b1b3e4b0e8b3f8b3f8b6",
- "tags": [
- "monthly",
- "invoices",
- "accounting"
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing OCR invoice job group with new data
| id required | string OCR invoice job group ID |
| name required | string Name of the job group |
| description | string Description of the job group |
| batchNumber | string Batch number for tracking |
| template required | string OCR template ID to use for this group |
| priority | string Default: "medium" Enum: "low" "medium" "high" "urgent" Processing priority |
object | |
object | |
| createdBy | string User who created the job group |
| assignedTo | string User assigned to manage this group |
| tags | Array of strings Tags for categorization |
object Additional metadata |
{- "name": "Monthly Invoice Batch - January 2023",
- "description": "string",
- "batchNumber": "BATCH-2023-001",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "priority": "low",
- "processingSettings": {
- "parallelJobs": 3,
- "retryCount": 2,
- "timeoutMinutes": 30
}, - "notifications": {
- "onCompletion": false,
- "onFailure": true,
- "recipients": [
- "user@example.com"
]
}, - "createdBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "assignedTo": "60f7b1b3e4b0e8b3f8b3f8b6",
- "tags": [
- "monthly",
- "invoices",
- "accounting"
], - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Monthly Invoice Batch - January 2023",
- "description": "string",
- "batchNumber": "BATCH-2023-001",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "totalJobs": 150,
- "completedJobs": 120,
- "pendingJobs": 20,
- "failedJobs": 10,
- "status": "created",
- "priority": "low",
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T10:30:00Z",
- "estimatedCompletionTime": "2023-01-15T11:00:00Z",
- "processingSettings": {
- "parallelJobs": 3,
- "retryCount": 2,
- "timeoutMinutes": 30
}, - "statistics": {
- "totalDocuments": 0,
- "totalPages": 0,
- "averageProcessingTime": 0,
- "successRate": 1,
- "totalCost": 0,
- "currency": "USD"
}, - "notifications": {
- "onCompletion": false,
- "onFailure": true,
- "recipients": [
- "user@example.com"
]
}, - "createdBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "assignedTo": "60f7b1b3e4b0e8b3f8b3f8b6",
- "tags": [
- "monthly",
- "invoices",
- "accounting"
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve all OCR jobs belonging to a specific group
| id required | string OCR invoice job group ID |
{- "success": true,
- "data": [
- {
- "jobId": "string",
- "status": "string",
- "documentName": "string"
}
]
}Retrieve a list of all OCR invoice job pages with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new OCR invoice job page with the provided data
| job required | string OCR invoice job ID this page belongs to |
| pageNumber required | integer >= 1 Page number within the document |
| pageUrl required | string <uri> URL of the page image |
| pageType | string Enum: "cover" "header" "content" "footer" "summary" "attachment" Type of page content |
object | |
Array of objects | |
object Additional metadata |
{- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific OCR invoice job page by its ID
| id required | string OCR invoice job page ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing OCR invoice job page with new data
| id required | string OCR invoice job page ID |
| job required | string OCR invoice job ID this page belongs to |
| pageNumber required | integer >= 1 Page number within the document |
| pageUrl required | string <uri> URL of the page image |
| pageType | string Enum: "cover" "header" "content" "footer" "summary" "attachment" Type of page content |
object | |
Array of objects | |
object Additional metadata |
{- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all OCR invoice job templates with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Standard Invoice OCR Template",
- "description": "string",
- "version": "1.0.0",
- "ocrEngine": "google-vision",
- "documentType": "invoice",
- "extractionRules": {
- "fields": [
- {
- "name": "string",
- "type": "text",
- "required": true,
- "pattern": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "validation": {
- "minLength": 0,
- "maxLength": 0,
- "format": "string"
}
}
], - "lineItems": {
- "enabled": true,
- "tableStructure": {
- "headerRow": 0,
- "dataStartRow": 0,
- "columns": [
- {
- "name": "string",
- "index": 0,
- "type": "text"
}
]
}
}
}, - "preprocessingSettings": {
- "imageEnhancement": true,
- "deskew": true,
- "denoising": true,
- "binarization": false,
- "resolutionDPI": 300
}, - "postprocessingSettings": {
- "spellCheck": false,
- "confidenceThreshold": 0.8,
- "validationRules": [
- {
- "field": "string",
- "rule": "required",
- "message": "string"
}
]
}, - "supportedFormats": [
- "pdf"
], - "languages": [
- "en",
- "es",
- "fr"
], - "accuracy": {
- "averageAccuracy": 1,
- "fieldAccuracy": {
- "property1": 0,
- "property2": 0
}
}, - "isActive": true,
- "isDefault": false,
- "createdBy": "string",
- "lastModifiedBy": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new OCR invoice job template with the provided data
| name required | string Name of the template |
| description | string Description of the template |
| version | string Template version |
| ocrEngine required | string Enum: "tesseract" "google-vision" "aws-textract" "azure-cognitive" "custom" OCR engine to use |
| documentType required | string Enum: "invoice" "receipt" "bill" "statement" "other" Type of document |
required | object |
object | |
object | |
| supportedFormats | Array of strings Items Enum: "pdf" "png" "jpg" "jpeg" "tiff" "bmp" Supported document formats |
| languages | Array of strings Supported languages for OCR |
| isActive | boolean Default: true Whether the template is active |
| isDefault | boolean Default: false Whether this is the default template |
| createdBy | string User who created the template |
| lastModifiedBy | string User who last modified the template |
object Additional metadata |
{- "name": "Standard Invoice OCR Template",
- "description": "string",
- "version": "1.0.0",
- "ocrEngine": "google-vision",
- "documentType": "invoice",
- "extractionRules": {
- "fields": [
- {
- "name": "string",
- "type": "text",
- "required": true,
- "pattern": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "validation": {
- "minLength": 0,
- "maxLength": 0,
- "format": "string"
}
}
], - "lineItems": {
- "enabled": true,
- "tableStructure": {
- "headerRow": 0,
- "dataStartRow": 0,
- "columns": [
- {
- "name": "string",
- "index": 0,
- "type": "text"
}
]
}
}
}, - "preprocessingSettings": {
- "imageEnhancement": true,
- "deskew": true,
- "denoising": true,
- "binarization": false,
- "resolutionDPI": 300
}, - "postprocessingSettings": {
- "spellCheck": false,
- "confidenceThreshold": 0.8,
- "validationRules": [
- {
- "field": "string",
- "rule": "required",
- "message": "string"
}
]
}, - "supportedFormats": [
- "pdf"
], - "languages": [
- "en",
- "es",
- "fr"
], - "isActive": true,
- "isDefault": false,
- "createdBy": "string",
- "lastModifiedBy": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Standard Invoice OCR Template",
- "description": "string",
- "version": "1.0.0",
- "ocrEngine": "google-vision",
- "documentType": "invoice",
- "extractionRules": {
- "fields": [
- {
- "name": "string",
- "type": "text",
- "required": true,
- "pattern": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "validation": {
- "minLength": 0,
- "maxLength": 0,
- "format": "string"
}
}
], - "lineItems": {
- "enabled": true,
- "tableStructure": {
- "headerRow": 0,
- "dataStartRow": 0,
- "columns": [
- {
- "name": "string",
- "index": 0,
- "type": "text"
}
]
}
}
}, - "preprocessingSettings": {
- "imageEnhancement": true,
- "deskew": true,
- "denoising": true,
- "binarization": false,
- "resolutionDPI": 300
}, - "postprocessingSettings": {
- "spellCheck": false,
- "confidenceThreshold": 0.8,
- "validationRules": [
- {
- "field": "string",
- "rule": "required",
- "message": "string"
}
]
}, - "supportedFormats": [
- "pdf"
], - "languages": [
- "en",
- "es",
- "fr"
], - "accuracy": {
- "averageAccuracy": 1,
- "fieldAccuracy": {
- "property1": 0,
- "property2": 0
}
}, - "isActive": true,
- "isDefault": false,
- "createdBy": "string",
- "lastModifiedBy": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific OCR invoice job template by its ID
| id required | string OCR invoice job template ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Standard Invoice OCR Template",
- "description": "string",
- "version": "1.0.0",
- "ocrEngine": "google-vision",
- "documentType": "invoice",
- "extractionRules": {
- "fields": [
- {
- "name": "string",
- "type": "text",
- "required": true,
- "pattern": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "validation": {
- "minLength": 0,
- "maxLength": 0,
- "format": "string"
}
}
], - "lineItems": {
- "enabled": true,
- "tableStructure": {
- "headerRow": 0,
- "dataStartRow": 0,
- "columns": [
- {
- "name": "string",
- "index": 0,
- "type": "text"
}
]
}
}
}, - "preprocessingSettings": {
- "imageEnhancement": true,
- "deskew": true,
- "denoising": true,
- "binarization": false,
- "resolutionDPI": 300
}, - "postprocessingSettings": {
- "spellCheck": false,
- "confidenceThreshold": 0.8,
- "validationRules": [
- {
- "field": "string",
- "rule": "required",
- "message": "string"
}
]
}, - "supportedFormats": [
- "pdf"
], - "languages": [
- "en",
- "es",
- "fr"
], - "accuracy": {
- "averageAccuracy": 1,
- "fieldAccuracy": {
- "property1": 0,
- "property2": 0
}
}, - "isActive": true,
- "isDefault": false,
- "createdBy": "string",
- "lastModifiedBy": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing OCR invoice job template with new data
| id required | string OCR invoice job template ID |
| name required | string Name of the template |
| description | string Description of the template |
| version | string Template version |
| ocrEngine required | string Enum: "tesseract" "google-vision" "aws-textract" "azure-cognitive" "custom" OCR engine to use |
| documentType required | string Enum: "invoice" "receipt" "bill" "statement" "other" Type of document |
required | object |
object | |
object | |
| supportedFormats | Array of strings Items Enum: "pdf" "png" "jpg" "jpeg" "tiff" "bmp" Supported document formats |
| languages | Array of strings Supported languages for OCR |
| isActive | boolean Default: true Whether the template is active |
| isDefault | boolean Default: false Whether this is the default template |
| createdBy | string User who created the template |
| lastModifiedBy | string User who last modified the template |
object Additional metadata |
{- "name": "Standard Invoice OCR Template",
- "description": "string",
- "version": "1.0.0",
- "ocrEngine": "google-vision",
- "documentType": "invoice",
- "extractionRules": {
- "fields": [
- {
- "name": "string",
- "type": "text",
- "required": true,
- "pattern": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "validation": {
- "minLength": 0,
- "maxLength": 0,
- "format": "string"
}
}
], - "lineItems": {
- "enabled": true,
- "tableStructure": {
- "headerRow": 0,
- "dataStartRow": 0,
- "columns": [
- {
- "name": "string",
- "index": 0,
- "type": "text"
}
]
}
}
}, - "preprocessingSettings": {
- "imageEnhancement": true,
- "deskew": true,
- "denoising": true,
- "binarization": false,
- "resolutionDPI": 300
}, - "postprocessingSettings": {
- "spellCheck": false,
- "confidenceThreshold": 0.8,
- "validationRules": [
- {
- "field": "string",
- "rule": "required",
- "message": "string"
}
]
}, - "supportedFormats": [
- "pdf"
], - "languages": [
- "en",
- "es",
- "fr"
], - "isActive": true,
- "isDefault": false,
- "createdBy": "string",
- "lastModifiedBy": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Standard Invoice OCR Template",
- "description": "string",
- "version": "1.0.0",
- "ocrEngine": "google-vision",
- "documentType": "invoice",
- "extractionRules": {
- "fields": [
- {
- "name": "string",
- "type": "text",
- "required": true,
- "pattern": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "validation": {
- "minLength": 0,
- "maxLength": 0,
- "format": "string"
}
}
], - "lineItems": {
- "enabled": true,
- "tableStructure": {
- "headerRow": 0,
- "dataStartRow": 0,
- "columns": [
- {
- "name": "string",
- "index": 0,
- "type": "text"
}
]
}
}
}, - "preprocessingSettings": {
- "imageEnhancement": true,
- "deskew": true,
- "denoising": true,
- "binarization": false,
- "resolutionDPI": 300
}, - "postprocessingSettings": {
- "spellCheck": false,
- "confidenceThreshold": 0.8,
- "validationRules": [
- {
- "field": "string",
- "rule": "required",
- "message": "string"
}
]
}, - "supportedFormats": [
- "pdf"
], - "languages": [
- "en",
- "es",
- "fr"
], - "accuracy": {
- "averageAccuracy": 1,
- "fieldAccuracy": {
- "property1": 0,
- "property2": 0
}
}, - "isActive": true,
- "isDefault": false,
- "createdBy": "string",
- "lastModifiedBy": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all OCR invoice jobs with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "jobNumber": "OCR-2023-001",
- "documentName": "invoice_2023_001.pdf",
- "documentType": "pdf",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "group": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "created",
- "priority": "low",
- "progress": {
- "percentage": 100,
- "currentStep": "string",
- "totalSteps": 0
}, - "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:05:00Z",
- "processingTime": 45.6,
- "documentInfo": {
- "pages": 0,
- "size": 0,
- "format": "string",
- "resolution": "string",
- "language": "string"
}, - "extractedData": {
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "dueDate": "2019-08-24",
- "supplier": {
- "name": "string",
- "address": "string",
- "taxId": "string"
}, - "customer": {
- "name": "string",
- "address": "string"
}, - "amounts": {
- "subtotal": 0,
- "tax": 0,
- "total": 0,
- "currency": "string"
}
}, - "lineItems": [
- {
- "description": "string",
- "quantity": 0,
- "unitPrice": 0,
- "amount": 0
}
]
}, - "confidence": {
- "overall": 1,
- "fields": {
- "property1": 0,
- "property2": 0
}
}, - "validationResults": {
- "isValid": true,
- "errors": [
- {
- "field": "string",
- "message": "string",
- "severity": "error"
}
]
}, - "cost": 0,
- "currency": "USD",
- "errorLog": "string",
- "retryCount": 0,
- "createdBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new OCR invoice job with the provided data
| jobNumber required | string Unique job number |
| documentName required | string Name of the document being processed |
| documentUrl required | string <uri> URL of the document to process |
| documentType | string Enum: "pdf" "png" "jpg" "jpeg" "tiff" "bmp" Type of document |
| template required | string OCR template ID to use |
| group | string OCR job group ID if part of a batch |
| priority | string Default: "medium" Enum: "low" "medium" "high" "urgent" Processing priority |
| createdBy | string User who created the job |
object Additional metadata |
{- "jobNumber": "OCR-2023-001",
- "documentName": "invoice_2023_001.pdf",
- "documentType": "pdf",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "group": "60f7b1b3e4b0e8b3f8b3f8b5",
- "priority": "low",
- "createdBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "jobNumber": "OCR-2023-001",
- "documentName": "invoice_2023_001.pdf",
- "documentType": "pdf",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "group": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "created",
- "priority": "low",
- "progress": {
- "percentage": 100,
- "currentStep": "string",
- "totalSteps": 0
}, - "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:05:00Z",
- "processingTime": 45.6,
- "documentInfo": {
- "pages": 0,
- "size": 0,
- "format": "string",
- "resolution": "string",
- "language": "string"
}, - "extractedData": {
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "dueDate": "2019-08-24",
- "supplier": {
- "name": "string",
- "address": "string",
- "taxId": "string"
}, - "customer": {
- "name": "string",
- "address": "string"
}, - "amounts": {
- "subtotal": 0,
- "tax": 0,
- "total": 0,
- "currency": "string"
}
}, - "lineItems": [
- {
- "description": "string",
- "quantity": 0,
- "unitPrice": 0,
- "amount": 0
}
]
}, - "confidence": {
- "overall": 1,
- "fields": {
- "property1": 0,
- "property2": 0
}
}, - "validationResults": {
- "isValid": true,
- "errors": [
- {
- "field": "string",
- "message": "string",
- "severity": "error"
}
]
}, - "cost": 0,
- "currency": "USD",
- "errorLog": "string",
- "retryCount": 0,
- "createdBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific OCR invoice job by its ID
| id required | string OCR invoice job ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "jobNumber": "OCR-2023-001",
- "documentName": "invoice_2023_001.pdf",
- "documentType": "pdf",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "group": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "created",
- "priority": "low",
- "progress": {
- "percentage": 100,
- "currentStep": "string",
- "totalSteps": 0
}, - "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:05:00Z",
- "processingTime": 45.6,
- "documentInfo": {
- "pages": 0,
- "size": 0,
- "format": "string",
- "resolution": "string",
- "language": "string"
}, - "extractedData": {
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "dueDate": "2019-08-24",
- "supplier": {
- "name": "string",
- "address": "string",
- "taxId": "string"
}, - "customer": {
- "name": "string",
- "address": "string"
}, - "amounts": {
- "subtotal": 0,
- "tax": 0,
- "total": 0,
- "currency": "string"
}
}, - "lineItems": [
- {
- "description": "string",
- "quantity": 0,
- "unitPrice": 0,
- "amount": 0
}
]
}, - "confidence": {
- "overall": 1,
- "fields": {
- "property1": 0,
- "property2": 0
}
}, - "validationResults": {
- "isValid": true,
- "errors": [
- {
- "field": "string",
- "message": "string",
- "severity": "error"
}
]
}, - "cost": 0,
- "currency": "USD",
- "errorLog": "string",
- "retryCount": 0,
- "createdBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing OCR invoice job with new data
| id required | string OCR invoice job ID |
| jobNumber required | string Unique job number |
| documentName required | string Name of the document being processed |
| documentUrl required | string <uri> URL of the document to process |
| documentType | string Enum: "pdf" "png" "jpg" "jpeg" "tiff" "bmp" Type of document |
| template required | string OCR template ID to use |
| group | string OCR job group ID if part of a batch |
| priority | string Default: "medium" Enum: "low" "medium" "high" "urgent" Processing priority |
| createdBy | string User who created the job |
object Additional metadata |
{- "jobNumber": "OCR-2023-001",
- "documentName": "invoice_2023_001.pdf",
- "documentType": "pdf",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "group": "60f7b1b3e4b0e8b3f8b3f8b5",
- "priority": "low",
- "createdBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "jobNumber": "OCR-2023-001",
- "documentName": "invoice_2023_001.pdf",
- "documentType": "pdf",
- "template": "60f7b1b3e4b0e8b3f8b3f8b4",
- "group": "60f7b1b3e4b0e8b3f8b3f8b5",
- "status": "created",
- "priority": "low",
- "progress": {
- "percentage": 100,
- "currentStep": "string",
- "totalSteps": 0
}, - "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:05:00Z",
- "processingTime": 45.6,
- "documentInfo": {
- "pages": 0,
- "size": 0,
- "format": "string",
- "resolution": "string",
- "language": "string"
}, - "extractedData": {
- "invoice": {
- "number": "string",
- "date": "2019-08-24",
- "dueDate": "2019-08-24",
- "supplier": {
- "name": "string",
- "address": "string",
- "taxId": "string"
}, - "customer": {
- "name": "string",
- "address": "string"
}, - "amounts": {
- "subtotal": 0,
- "tax": 0,
- "total": 0,
- "currency": "string"
}
}, - "lineItems": [
- {
- "description": "string",
- "quantity": 0,
- "unitPrice": 0,
- "amount": 0
}
]
}, - "confidence": {
- "overall": 1,
- "fields": {
- "property1": 0,
- "property2": 0
}
}, - "validationResults": {
- "isValid": true,
- "errors": [
- {
- "field": "string",
- "message": "string",
- "severity": "error"
}
]
}, - "cost": 0,
- "currency": "USD",
- "errorLog": "string",
- "retryCount": 0,
- "createdBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve the OCR processing results for a job
| id required | string OCR invoice job ID |
{- "success": true,
- "data": {
- "extractedData": { },
- "confidence": { },
- "validationResults": { },
- "processingTime": 0
}
}Retrieve a list of all patch action records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new patch action with the provided data
| name required | string Name of the patch action |
| description | string Description of what the patch action does |
| targetEntity required | string The entity type this patch targets |
object Conditions that must be met for the patch to apply | |
required | Array of objects |
| batchSize | integer [ 1 .. 1000 ] Default: 100 Number of records to process in each batch |
| status | string Default: "draft" Enum: "draft" "ready" "running" "completed" "failed" "cancelled" Status of the patch action |
object Additional metadata |
{- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific patch action by its ID
| id required | string Patch action ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing patch action with new data
| id required | string Patch action ID |
| name required | string Name of the patch action |
| description | string Description of what the patch action does |
| targetEntity required | string The entity type this patch targets |
object Conditions that must be met for the patch to apply | |
required | Array of objects |
| batchSize | integer [ 1 .. 1000 ] Default: 100 Number of records to process in each batch |
| status | string Default: "draft" Enum: "draft" "ready" "running" "completed" "failed" "cancelled" Status of the patch action |
object Additional metadata |
{- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all product modifier groups with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| disabled | boolean Filter by disabled status |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Size Options",
- "description": "Available size options for products",
- "modifiers": [
- {
- "_id": "string",
- "name": "Large",
- "price_adjustment": 2.5,
- "description": "string"
}
], - "is_required": true,
- "max_selection": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new product modifier group entry
| name required | string Product modifier group name |
| description | string Group description |
Array of objects | |
| is_required | boolean Default: false Whether selecting a modifier from this group is required |
| max_selection | integer Default: 1 Maximum number of modifiers that can be selected |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether the group is disabled |
{- "name": "Size Options",
- "description": "Available size options for products",
- "modifiers": [
- {
- "name": "string",
- "price_adjustment": 0,
- "description": "string"
}
], - "is_required": false,
- "max_selection": 1,
- "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Size Options",
- "description": "Available size options for products",
- "modifiers": [
- {
- "_id": "string",
- "name": "Large",
- "price_adjustment": 2.5,
- "description": "string"
}
], - "is_required": true,
- "max_selection": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific product modifier group by its ID
| id required | string Product modifier group ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Size Options",
- "description": "Available size options for products",
- "modifiers": [
- {
- "_id": "string",
- "name": "Large",
- "price_adjustment": 2.5,
- "description": "string"
}
], - "is_required": true,
- "max_selection": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing product modifier group
| id required | string Product modifier group ID |
| name | string Product modifier group name |
| description | string Group description |
Array of objects | |
| is_required | boolean Whether selecting a modifier from this group is required |
| max_selection | integer Maximum number of modifiers that can be selected |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether the group is disabled |
{- "name": "Size Options",
- "description": "string",
- "modifiers": [
- {
- "name": "string",
- "price_adjustment": 0,
- "description": "string"
}
], - "is_required": true,
- "max_selection": 0,
- "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Size Options",
- "description": "Available size options for products",
- "modifiers": [
- {
- "_id": "string",
- "name": "Large",
- "price_adjustment": 2.5,
- "description": "string"
}
], - "is_required": true,
- "max_selection": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Delete multiple product modifier groups by their IDs
| ids required | Array of strings Array of product modifier group IDs to delete |
{- "ids": [
- "string"
]
}{- "success": true
}Retrieve a list of all asset part unit returns with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "returnNumber": "RET-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "returnType": "defective",
- "returnReason": "Part failed after 30 days of use",
- "returnedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "returnDate": "2023-01-15T10:00:00Z",
- "requestDate": "2023-01-14T10:00:00Z",
- "originalInstallDate": "2023-01-01T10:00:00Z",
- "originalWorkOrder": "60f7b1b3e4b0e8b3f8b3f8b7",
- "originalAsset": "60f7b1b3e4b0e8b3f8b3f8b8",
- "status": "requested",
- "condition": "defective",
- "returnLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "supplier": "string",
- "creditAmount": 0,
- "currency": "USD",
- "replacementRequired": false,
- "replacementPartUnit": "string",
- "warrantyStatus": "in-warranty",
- "qualityInspection": {
- "performed": false,
- "inspectedBy": "string",
- "inspectionDate": "2019-08-24T14:15:22Z",
- "findings": "string",
- "disposition": "scrap"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part unit return with the provided data
| returnNumber required | string Unique return number |
| assetPartUnit required | string Asset part unit ID being returned |
| serialNumber | string Serial number of the part unit |
| returnType required | string Enum: "warranty" "defective" "excess" "end-of-lease" "maintenance" Type of return |
| returnReason required | string Reason for return |
| returnedBy required | string User who initiated the return |
| authorizedBy | string User who authorized the return |
| returnDate | string <date-time> Date when the return was processed |
| requestDate | string <date-time> Date when the return was requested |
| originalInstallDate | string <date-time> Original installation date |
| originalWorkOrder | string Original work order ID |
| originalAsset | string Original asset ID where it was installed |
| status | string Default: "requested" Enum: "requested" "approved" "in-transit" "received" "processed" "completed" "rejected" Status of the return |
| condition | string Enum: "new" "good" "fair" "poor" "damaged" "defective" Condition of the returned part |
object | |
| supplier | string Supplier ID if returning to supplier |
| creditAmount | number <double> >= 0 Credit amount for the return |
| currency | string Currency code |
| replacementRequired | boolean Default: false Whether a replacement is required |
| replacementPartUnit | string Replacement part unit ID if applicable |
| warrantyStatus | string Enum: "in-warranty" "out-of-warranty" "extended-warranty" Warranty status at time of return |
object | |
Array of objects | |
| notes | string Additional notes |
object Additional metadata |
{- "returnNumber": "RET-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "returnType": "defective",
- "returnReason": "Part failed after 30 days of use",
- "returnedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "returnDate": "2023-01-15T10:00:00Z",
- "requestDate": "2023-01-14T10:00:00Z",
- "originalInstallDate": "2023-01-01T10:00:00Z",
- "originalWorkOrder": "60f7b1b3e4b0e8b3f8b3f8b7",
- "originalAsset": "60f7b1b3e4b0e8b3f8b3f8b8",
- "status": "requested",
- "condition": "defective",
- "returnLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "supplier": "string",
- "creditAmount": 0,
- "currency": "USD",
- "replacementRequired": false,
- "replacementPartUnit": "string",
- "warrantyStatus": "in-warranty",
- "qualityInspection": {
- "performed": false,
- "inspectedBy": "string",
- "inspectionDate": "2019-08-24T14:15:22Z",
- "findings": "string",
- "disposition": "scrap"
}, - "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "returnNumber": "RET-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "returnType": "defective",
- "returnReason": "Part failed after 30 days of use",
- "returnedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "returnDate": "2023-01-15T10:00:00Z",
- "requestDate": "2023-01-14T10:00:00Z",
- "originalInstallDate": "2023-01-01T10:00:00Z",
- "originalWorkOrder": "60f7b1b3e4b0e8b3f8b3f8b7",
- "originalAsset": "60f7b1b3e4b0e8b3f8b3f8b8",
- "status": "requested",
- "condition": "defective",
- "returnLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "supplier": "string",
- "creditAmount": 0,
- "currency": "USD",
- "replacementRequired": false,
- "replacementPartUnit": "string",
- "warrantyStatus": "in-warranty",
- "qualityInspection": {
- "performed": false,
- "inspectedBy": "string",
- "inspectionDate": "2019-08-24T14:15:22Z",
- "findings": "string",
- "disposition": "scrap"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part unit return by its ID
| id required | string Asset part unit return ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "returnNumber": "RET-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "returnType": "defective",
- "returnReason": "Part failed after 30 days of use",
- "returnedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "returnDate": "2023-01-15T10:00:00Z",
- "requestDate": "2023-01-14T10:00:00Z",
- "originalInstallDate": "2023-01-01T10:00:00Z",
- "originalWorkOrder": "60f7b1b3e4b0e8b3f8b3f8b7",
- "originalAsset": "60f7b1b3e4b0e8b3f8b3f8b8",
- "status": "requested",
- "condition": "defective",
- "returnLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "supplier": "string",
- "creditAmount": 0,
- "currency": "USD",
- "replacementRequired": false,
- "replacementPartUnit": "string",
- "warrantyStatus": "in-warranty",
- "qualityInspection": {
- "performed": false,
- "inspectedBy": "string",
- "inspectionDate": "2019-08-24T14:15:22Z",
- "findings": "string",
- "disposition": "scrap"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part unit return with new data
| id required | string Asset part unit return ID |
| returnNumber required | string Unique return number |
| assetPartUnit required | string Asset part unit ID being returned |
| serialNumber | string Serial number of the part unit |
| returnType required | string Enum: "warranty" "defective" "excess" "end-of-lease" "maintenance" Type of return |
| returnReason required | string Reason for return |
| returnedBy required | string User who initiated the return |
| authorizedBy | string User who authorized the return |
| returnDate | string <date-time> Date when the return was processed |
| requestDate | string <date-time> Date when the return was requested |
| originalInstallDate | string <date-time> Original installation date |
| originalWorkOrder | string Original work order ID |
| originalAsset | string Original asset ID where it was installed |
| status | string Default: "requested" Enum: "requested" "approved" "in-transit" "received" "processed" "completed" "rejected" Status of the return |
| condition | string Enum: "new" "good" "fair" "poor" "damaged" "defective" Condition of the returned part |
object | |
| supplier | string Supplier ID if returning to supplier |
| creditAmount | number <double> >= 0 Credit amount for the return |
| currency | string Currency code |
| replacementRequired | boolean Default: false Whether a replacement is required |
| replacementPartUnit | string Replacement part unit ID if applicable |
| warrantyStatus | string Enum: "in-warranty" "out-of-warranty" "extended-warranty" Warranty status at time of return |
object | |
Array of objects | |
| notes | string Additional notes |
object Additional metadata |
{- "returnNumber": "RET-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "returnType": "defective",
- "returnReason": "Part failed after 30 days of use",
- "returnedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "returnDate": "2023-01-15T10:00:00Z",
- "requestDate": "2023-01-14T10:00:00Z",
- "originalInstallDate": "2023-01-01T10:00:00Z",
- "originalWorkOrder": "60f7b1b3e4b0e8b3f8b3f8b7",
- "originalAsset": "60f7b1b3e4b0e8b3f8b3f8b8",
- "status": "requested",
- "condition": "defective",
- "returnLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "supplier": "string",
- "creditAmount": 0,
- "currency": "USD",
- "replacementRequired": false,
- "replacementPartUnit": "string",
- "warrantyStatus": "in-warranty",
- "qualityInspection": {
- "performed": false,
- "inspectedBy": "string",
- "inspectionDate": "2019-08-24T14:15:22Z",
- "findings": "string",
- "disposition": "scrap"
}, - "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "returnNumber": "RET-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "returnType": "defective",
- "returnReason": "Part failed after 30 days of use",
- "returnedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "returnDate": "2023-01-15T10:00:00Z",
- "requestDate": "2023-01-14T10:00:00Z",
- "originalInstallDate": "2023-01-01T10:00:00Z",
- "originalWorkOrder": "60f7b1b3e4b0e8b3f8b3f8b7",
- "originalAsset": "60f7b1b3e4b0e8b3f8b3f8b8",
- "status": "requested",
- "condition": "defective",
- "returnLocation": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string"
}, - "supplier": "string",
- "creditAmount": 0,
- "currency": "USD",
- "replacementRequired": false,
- "replacementPartUnit": "string",
- "warrantyStatus": "in-warranty",
- "qualityInspection": {
- "performed": false,
- "inspectedBy": "string",
- "inspectionDate": "2019-08-24T14:15:22Z",
- "findings": "string",
- "disposition": "scrap"
}, - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all safe invoice serial counters with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| rep | string Filter by representative ID |
| warehouse | string Filter by warehouse ID |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "rep": "507f1f77bcf86cd799439012",
- "warehouse": "507f1f77bcf86cd799439013",
- "invoice_type": "sales",
- "current_serial": 1000,
- "last_used_date": "2019-08-24T14:15:22Z",
- "prefix": "INV-2024-",
- "suffix": "string",
- "pad_length": 6,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new safe invoice serial counter entry
| rep required | string Representative ID |
| warehouse required | string Warehouse ID |
| invoice_type required | string Enum: "sales" "return" "proforma" Type of invoice |
| current_serial | integer Default: 0 Starting serial number |
| prefix | string Serial number prefix |
| suffix | string Serial number suffix |
| pad_length | integer Default: 6 Length to pad the serial number |
| company_namespace | Array of strings Company namespace |
{- "rep": "507f1f77bcf86cd799439012",
- "warehouse": "507f1f77bcf86cd799439013",
- "invoice_type": "sales",
- "current_serial": 0,
- "prefix": "INV-2024-",
- "suffix": "string",
- "pad_length": 6,
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "rep": "507f1f77bcf86cd799439012",
- "warehouse": "507f1f77bcf86cd799439013",
- "invoice_type": "sales",
- "current_serial": 1000,
- "last_used_date": "2019-08-24T14:15:22Z",
- "prefix": "INV-2024-",
- "suffix": "string",
- "pad_length": 6,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific safe invoice serial counter by its ID
| id required | string Safe invoice serial counter ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "rep": "507f1f77bcf86cd799439012",
- "warehouse": "507f1f77bcf86cd799439013",
- "invoice_type": "sales",
- "current_serial": 1000,
- "last_used_date": "2019-08-24T14:15:22Z",
- "prefix": "INV-2024-",
- "suffix": "string",
- "pad_length": 6,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing safe invoice serial counter
| id required | string Safe invoice serial counter ID |
| current_serial | integer Current serial number |
| prefix | string Serial number prefix |
| suffix | string Serial number suffix |
| pad_length | integer Length to pad the serial number |
| company_namespace | Array of strings Company namespace |
{- "current_serial": 0,
- "prefix": "string",
- "suffix": "string",
- "pad_length": 0,
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "rep": "507f1f77bcf86cd799439012",
- "warehouse": "507f1f77bcf86cd799439013",
- "invoice_type": "sales",
- "current_serial": 1000,
- "last_used_date": "2019-08-24T14:15:22Z",
- "prefix": "INV-2024-",
- "suffix": "string",
- "pad_length": 6,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Get the next available serial number for invoice generation
| rep required | string Representative ID |
| warehouse required | string Warehouse ID |
| invoice_type required | string Enum: "sales" "return" "proforma" Type of invoice |
{- "rep": "string",
- "warehouse": "string",
- "invoice_type": "sales"
}{- "success": true,
- "data": {
- "next_serial": 1001,
- "formatted_serial": "INV-2024-001001"
}
}Retrieve a list of all specialities with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| disabled | boolean Filter by disabled status |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Cardiology",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new speciality entry
| name required | string Speciality name |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether the speciality is disabled |
{- "name": "Cardiology",
- "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Cardiology",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific speciality by its ID
| id required | string Speciality ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Cardiology",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing speciality
| id required | string Speciality ID |
| name | string Speciality name |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether the speciality is disabled |
{- "name": "Cardiology",
- "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Cardiology",
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Delete multiple specialities by their IDs
| ids required | Array of strings Array of speciality IDs to delete |
{- "ids": [
- "string"
]
}{- "success": true
}Retrieve a list of all asset part unit storage records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "storageNumber": "STR-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "storageType": "inventory",
- "storageReason": "New inventory received",
- "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "storageDate": "2023-01-15T10:00:00Z",
- "expectedRetrievalDate": "2023-06-15T10:00:00Z",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string",
- "bin": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - "status": "stored",
- "condition": "new",
- "storageEnvironment": {
- "temperature": {
- "min": 0,
- "max": 0,
- "unit": "celsius"
}, - "humidity": {
- "min": 0,
- "max": 0
}, - "specialRequirements": [
- "dry"
]
}, - "preservationMethod": "none",
- "lastInspectionDate": "2019-08-24T14:15:22Z",
- "nextInspectionDate": "2019-08-24T14:15:22Z",
- "reservedFor": {
- "workOrder": "string",
- "asset": "string",
- "project": "string",
- "reservationDate": "2019-08-24T14:15:22Z",
- "reservedBy": "string"
}, - "tags": [
- "string"
], - "barcode": "string",
- "qrCode": "string",
- "weight": 0,
- "dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "unit": "mm"
}, - "storageHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "action": "stored",
- "performedBy": "string",
- "fromLocation": "string",
- "toLocation": "string",
- "notes": "string"
}
], - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new asset part unit storage record with the provided data
| storageNumber required | string Unique storage number |
| assetPartUnit required | string Asset part unit ID being stored |
| serialNumber | string Serial number of the part unit |
| storageType required | string Enum: "inventory" "spare" "buffer" "quarantine" "maintenance" Type of storage |
| storageReason | string Reason for storage |
| storedBy required | string User who stored the part |
| authorizedBy | string User who authorized the storage |
| storageDate | string <date-time> Date when the part was stored |
| expectedRetrievalDate | string <date-time> Expected retrieval date |
required | object |
| status | string Default: "stored" Enum: "stored" "reserved" "allocated" "picked" "expired" Current storage status |
| condition | string Enum: "new" "good" "fair" "poor" "damaged" Condition when stored |
object | |
| preservationMethod | string Default: "none" Enum: "none" "plastic-wrap" "desiccant" "vacuum-seal" "oil-coating" Preservation method used |
| lastInspectionDate | string <date-time> Last inspection date |
| nextInspectionDate | string <date-time> Next scheduled inspection date |
object | |
| tags | Array of strings Storage tags for categorization |
| barcode | string Storage barcode |
| qrCode | string Storage QR code |
| weight | number <double> >= 0 Weight of the stored item |
object | |
| notes | string Additional notes |
object Additional metadata |
{- "storageNumber": "STR-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "storageType": "inventory",
- "storageReason": "New inventory received",
- "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "storageDate": "2023-01-15T10:00:00Z",
- "expectedRetrievalDate": "2023-06-15T10:00:00Z",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string",
- "bin": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - "status": "stored",
- "condition": "new",
- "storageEnvironment": {
- "temperature": {
- "min": 0,
- "max": 0,
- "unit": "celsius"
}, - "humidity": {
- "min": 0,
- "max": 0
}, - "specialRequirements": [
- "dry"
]
}, - "preservationMethod": "none",
- "lastInspectionDate": "2019-08-24T14:15:22Z",
- "nextInspectionDate": "2019-08-24T14:15:22Z",
- "reservedFor": {
- "workOrder": "string",
- "asset": "string",
- "project": "string",
- "reservationDate": "2019-08-24T14:15:22Z",
- "reservedBy": "string"
}, - "tags": [
- "string"
], - "barcode": "string",
- "qrCode": "string",
- "weight": 0,
- "dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "unit": "mm"
}, - "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "storageNumber": "STR-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "storageType": "inventory",
- "storageReason": "New inventory received",
- "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "storageDate": "2023-01-15T10:00:00Z",
- "expectedRetrievalDate": "2023-06-15T10:00:00Z",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string",
- "bin": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - "status": "stored",
- "condition": "new",
- "storageEnvironment": {
- "temperature": {
- "min": 0,
- "max": 0,
- "unit": "celsius"
}, - "humidity": {
- "min": 0,
- "max": 0
}, - "specialRequirements": [
- "dry"
]
}, - "preservationMethod": "none",
- "lastInspectionDate": "2019-08-24T14:15:22Z",
- "nextInspectionDate": "2019-08-24T14:15:22Z",
- "reservedFor": {
- "workOrder": "string",
- "asset": "string",
- "project": "string",
- "reservationDate": "2019-08-24T14:15:22Z",
- "reservedBy": "string"
}, - "tags": [
- "string"
], - "barcode": "string",
- "qrCode": "string",
- "weight": 0,
- "dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "unit": "mm"
}, - "storageHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "action": "stored",
- "performedBy": "string",
- "fromLocation": "string",
- "toLocation": "string",
- "notes": "string"
}
], - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific asset part unit storage record by its ID
| id required | string Asset part unit storage record ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "storageNumber": "STR-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "storageType": "inventory",
- "storageReason": "New inventory received",
- "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "storageDate": "2023-01-15T10:00:00Z",
- "expectedRetrievalDate": "2023-06-15T10:00:00Z",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string",
- "bin": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - "status": "stored",
- "condition": "new",
- "storageEnvironment": {
- "temperature": {
- "min": 0,
- "max": 0,
- "unit": "celsius"
}, - "humidity": {
- "min": 0,
- "max": 0
}, - "specialRequirements": [
- "dry"
]
}, - "preservationMethod": "none",
- "lastInspectionDate": "2019-08-24T14:15:22Z",
- "nextInspectionDate": "2019-08-24T14:15:22Z",
- "reservedFor": {
- "workOrder": "string",
- "asset": "string",
- "project": "string",
- "reservationDate": "2019-08-24T14:15:22Z",
- "reservedBy": "string"
}, - "tags": [
- "string"
], - "barcode": "string",
- "qrCode": "string",
- "weight": 0,
- "dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "unit": "mm"
}, - "storageHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "action": "stored",
- "performedBy": "string",
- "fromLocation": "string",
- "toLocation": "string",
- "notes": "string"
}
], - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing asset part unit storage record with new data
| id required | string Asset part unit storage record ID |
| storageNumber required | string Unique storage number |
| assetPartUnit required | string Asset part unit ID being stored |
| serialNumber | string Serial number of the part unit |
| storageType required | string Enum: "inventory" "spare" "buffer" "quarantine" "maintenance" Type of storage |
| storageReason | string Reason for storage |
| storedBy required | string User who stored the part |
| authorizedBy | string User who authorized the storage |
| storageDate | string <date-time> Date when the part was stored |
| expectedRetrievalDate | string <date-time> Expected retrieval date |
required | object |
| status | string Default: "stored" Enum: "stored" "reserved" "allocated" "picked" "expired" Current storage status |
| condition | string Enum: "new" "good" "fair" "poor" "damaged" Condition when stored |
object | |
| preservationMethod | string Default: "none" Enum: "none" "plastic-wrap" "desiccant" "vacuum-seal" "oil-coating" Preservation method used |
| lastInspectionDate | string <date-time> Last inspection date |
| nextInspectionDate | string <date-time> Next scheduled inspection date |
object | |
| tags | Array of strings Storage tags for categorization |
| barcode | string Storage barcode |
| qrCode | string Storage QR code |
| weight | number <double> >= 0 Weight of the stored item |
object | |
| notes | string Additional notes |
object Additional metadata |
{- "storageNumber": "STR-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "storageType": "inventory",
- "storageReason": "New inventory received",
- "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "storageDate": "2023-01-15T10:00:00Z",
- "expectedRetrievalDate": "2023-06-15T10:00:00Z",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string",
- "bin": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - "status": "stored",
- "condition": "new",
- "storageEnvironment": {
- "temperature": {
- "min": 0,
- "max": 0,
- "unit": "celsius"
}, - "humidity": {
- "min": 0,
- "max": 0
}, - "specialRequirements": [
- "dry"
]
}, - "preservationMethod": "none",
- "lastInspectionDate": "2019-08-24T14:15:22Z",
- "nextInspectionDate": "2019-08-24T14:15:22Z",
- "reservedFor": {
- "workOrder": "string",
- "asset": "string",
- "project": "string",
- "reservationDate": "2019-08-24T14:15:22Z",
- "reservedBy": "string"
}, - "tags": [
- "string"
], - "barcode": "string",
- "qrCode": "string",
- "weight": 0,
- "dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "unit": "mm"
}, - "notes": "string",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "storageNumber": "STR-2023-001",
- "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
- "serialNumber": "SN-EP001-2023-001",
- "storageType": "inventory",
- "storageReason": "New inventory received",
- "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
- "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
- "storageDate": "2023-01-15T10:00:00Z",
- "expectedRetrievalDate": "2023-06-15T10:00:00Z",
- "location": {
- "warehouse": "string",
- "section": "string",
- "shelf": "string",
- "position": "string",
- "bin": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "z": 0
}
}, - "status": "stored",
- "condition": "new",
- "storageEnvironment": {
- "temperature": {
- "min": 0,
- "max": 0,
- "unit": "celsius"
}, - "humidity": {
- "min": 0,
- "max": 0
}, - "specialRequirements": [
- "dry"
]
}, - "preservationMethod": "none",
- "lastInspectionDate": "2019-08-24T14:15:22Z",
- "nextInspectionDate": "2019-08-24T14:15:22Z",
- "reservedFor": {
- "workOrder": "string",
- "asset": "string",
- "project": "string",
- "reservationDate": "2019-08-24T14:15:22Z",
- "reservedBy": "string"
}, - "tags": [
- "string"
], - "barcode": "string",
- "qrCode": "string",
- "weight": 0,
- "dimensions": {
- "length": 0,
- "width": 0,
- "height": 0,
- "unit": "mm"
}, - "storageHistory": [
- {
- "date": "2019-08-24T14:15:22Z",
- "action": "stored",
- "performedBy": "string",
- "fromLocation": "string",
- "toLocation": "string",
- "notes": "string"
}
], - "notes": "string",
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Delete an existing asset part unit storage record
| id required | string Asset part unit storage record ID |
{- "success": true,
- "message": "Asset part unit storage record deleted successfully"
}Retrieve a list of all Svix integration records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Webhook Integration",
- "description": "string",
- "applicationId": "app_12345",
- "eventTypes": [
- "user.created",
- "order.updated"
], - "secret": "string",
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new Svix integration with the provided data
| name required | string Name of the integration |
| description | string Description of the integration |
| applicationId required | string Svix application ID |
| endpointUrl required | string <uri> Webhook endpoint URL |
| eventTypes | Array of strings List of event types to subscribe to |
| secret | string Webhook secret for signature verification |
| isActive | boolean Default: true Whether the integration is active |
object Additional metadata |
{- "name": "Webhook Integration",
- "description": "string",
- "applicationId": "app_12345",
- "eventTypes": [
- "user.created",
- "order.updated"
], - "secret": "string",
- "isActive": true,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Webhook Integration",
- "description": "string",
- "applicationId": "app_12345",
- "eventTypes": [
- "user.created",
- "order.updated"
], - "secret": "string",
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific Svix integration by its ID
| id required | string Svix integration ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Webhook Integration",
- "description": "string",
- "applicationId": "app_12345",
- "eventTypes": [
- "user.created",
- "order.updated"
], - "secret": "string",
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing Svix integration with new data
| id required | string Svix integration ID |
| name required | string Name of the integration |
| description | string Description of the integration |
| applicationId required | string Svix application ID |
| endpointUrl required | string <uri> Webhook endpoint URL |
| eventTypes | Array of strings List of event types to subscribe to |
| secret | string Webhook secret for signature verification |
| isActive | boolean Default: true Whether the integration is active |
object Additional metadata |
{- "name": "Webhook Integration",
- "description": "string",
- "applicationId": "app_12345",
- "eventTypes": [
- "user.created",
- "order.updated"
], - "secret": "string",
- "isActive": true,
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Webhook Integration",
- "description": "string",
- "applicationId": "app_12345",
- "eventTypes": [
- "user.created",
- "order.updated"
], - "secret": "string",
- "isActive": true,
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a list of all integration metadata update records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update API Version",
- "description": "string",
- "targetIntegrations": [
- "string"
], - "metaUpdates": {
- "apiVersion": "v2.0",
- "timeout": 30000,
- "retryCount": 3
}, - "conditions": { },
- "status": "draft",
- "appliedAt": "2019-08-24T14:15:22Z",
- "appliedBy": "string",
- "affectedCount": 0,
- "rollbackData": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new integration metadata update with the provided data
| name required | string Name of the meta update |
| description | string Description of the meta update |
| targetIntegrations | Array of strings List of integration IDs to update |
required | object Metadata fields to update |
object Conditions for applying the update | |
| status | string Default: "draft" Enum: "draft" "ready" "applied" "failed" "cancelled" Status of the meta update |
object Additional metadata |
{- "name": "Update API Version",
- "description": "string",
- "targetIntegrations": [
- "string"
], - "metaUpdates": {
- "apiVersion": "v2.0",
- "timeout": 30000,
- "retryCount": 3
}, - "conditions": { },
- "status": "draft",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update API Version",
- "description": "string",
- "targetIntegrations": [
- "string"
], - "metaUpdates": {
- "apiVersion": "v2.0",
- "timeout": 30000,
- "retryCount": 3
}, - "conditions": { },
- "status": "draft",
- "appliedAt": "2019-08-24T14:15:22Z",
- "appliedBy": "string",
- "affectedCount": 0,
- "rollbackData": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific integration metadata update by its ID
| id required | string Integration meta update ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update API Version",
- "description": "string",
- "targetIntegrations": [
- "string"
], - "metaUpdates": {
- "apiVersion": "v2.0",
- "timeout": 30000,
- "retryCount": 3
}, - "conditions": { },
- "status": "draft",
- "appliedAt": "2019-08-24T14:15:22Z",
- "appliedBy": "string",
- "affectedCount": 0,
- "rollbackData": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing integration metadata update with new data
| id required | string Integration meta update ID |
| name required | string Name of the meta update |
| description | string Description of the meta update |
| targetIntegrations | Array of strings List of integration IDs to update |
required | object Metadata fields to update |
object Conditions for applying the update | |
| status | string Default: "draft" Enum: "draft" "ready" "applied" "failed" "cancelled" Status of the meta update |
object Additional metadata |
{- "name": "Update API Version",
- "description": "string",
- "targetIntegrations": [
- "string"
], - "metaUpdates": {
- "apiVersion": "v2.0",
- "timeout": 30000,
- "retryCount": 3
}, - "conditions": { },
- "status": "draft",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update API Version",
- "description": "string",
- "targetIntegrations": [
- "string"
], - "metaUpdates": {
- "apiVersion": "v2.0",
- "timeout": 30000,
- "retryCount": 3
}, - "conditions": { },
- "status": "draft",
- "appliedAt": "2019-08-24T14:15:22Z",
- "appliedBy": "string",
- "affectedCount": 0,
- "rollbackData": { },
- "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Apply a specific integration metadata update
| id required | string Integration meta update ID |
{- "success": true,
- "data": {
- "appliedAt": "2019-08-24T14:15:22Z",
- "affectedIntegrations": 0
}
}Retrieve a list of all workorder categories with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| disabled | boolean Filter by disabled status |
| parent_category | string Filter by parent category ID |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Maintenance",
- "description": "General maintenance workorders",
- "code": "MAINT",
- "parent_category": "507f1f77bcf86cd799439012",
- "color": "#FF5733",
- "icon": "wrench",
- "priority_level": 3,
- "estimated_duration": 120,
- "required_skills": [
- "electrical",
- "plumbing"
], - "default_assignee": "507f1f77bcf86cd799439013",
- "notification_settings": {
- "notify_on_creation": true,
- "notify_on_completion": true,
- "escalation_time": 0
}, - "approval_required": false,
- "custom_fields": [
- {
- "field_name": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "string"
]
}
], - "sla_settings": {
- "response_time": 0,
- "resolution_time": 0,
- "business_hours_only": true
}, - "sort_order": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new workorder category
| name required | string Category name |
| description | string Category description |
| code | string Category code for identification |
| parent_category | string Parent category ID for hierarchical structure |
| color | string Color code for visual identification |
| icon | string Icon identifier |
| priority_level | integer [ 1 .. 5 ] Default: 3 Default priority level for workorders in this category |
| estimated_duration | integer Estimated duration in minutes |
| required_skills | Array of strings Skills required for this category |
| default_assignee | string Default assignee for this category |
object | |
| approval_required | boolean Default: false Whether approval is required for workorders in this category |
Array of objects | |
object | |
| sort_order | integer Default: 0 Sort order for display |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether the category is disabled |
{- "name": "Maintenance",
- "description": "General maintenance workorders",
- "code": "MAINT",
- "parent_category": "string",
- "color": "#FF5733",
- "icon": "wrench",
- "priority_level": 3,
- "estimated_duration": 0,
- "required_skills": [
- "string"
], - "default_assignee": "string",
- "notification_settings": {
- "notify_on_creation": true,
- "notify_on_completion": true,
- "escalation_time": 0
}, - "approval_required": false,
- "custom_fields": [
- {
- "field_name": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "string"
]
}
], - "sla_settings": {
- "response_time": 0,
- "resolution_time": 0,
- "business_hours_only": true
}, - "sort_order": 0,
- "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Maintenance",
- "description": "General maintenance workorders",
- "code": "MAINT",
- "parent_category": "507f1f77bcf86cd799439012",
- "color": "#FF5733",
- "icon": "wrench",
- "priority_level": 3,
- "estimated_duration": 120,
- "required_skills": [
- "electrical",
- "plumbing"
], - "default_assignee": "507f1f77bcf86cd799439013",
- "notification_settings": {
- "notify_on_creation": true,
- "notify_on_completion": true,
- "escalation_time": 0
}, - "approval_required": false,
- "custom_fields": [
- {
- "field_name": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "string"
]
}
], - "sla_settings": {
- "response_time": 0,
- "resolution_time": 0,
- "business_hours_only": true
}, - "sort_order": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific workorder category by its ID
| id required | string Workorder category ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Maintenance",
- "description": "General maintenance workorders",
- "code": "MAINT",
- "parent_category": "507f1f77bcf86cd799439012",
- "color": "#FF5733",
- "icon": "wrench",
- "priority_level": 3,
- "estimated_duration": 120,
- "required_skills": [
- "electrical",
- "plumbing"
], - "default_assignee": "507f1f77bcf86cd799439013",
- "notification_settings": {
- "notify_on_creation": true,
- "notify_on_completion": true,
- "escalation_time": 0
}, - "approval_required": false,
- "custom_fields": [
- {
- "field_name": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "string"
]
}
], - "sla_settings": {
- "response_time": 0,
- "resolution_time": 0,
- "business_hours_only": true
}, - "sort_order": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing workorder category
| id required | string Workorder category ID |
| name | string Category name |
| description | string Category description |
| code | string Category code for identification |
| parent_category | string Parent category ID for hierarchical structure |
| color | string Color code for visual identification |
| icon | string Icon identifier |
| priority_level | integer [ 1 .. 5 ] Default priority level for workorders in this category |
| estimated_duration | integer Estimated duration in minutes |
| required_skills | Array of strings Skills required for this category |
| default_assignee | string Default assignee for this category |
object | |
| approval_required | boolean Whether approval is required for workorders in this category |
Array of objects | |
object | |
| sort_order | integer Sort order for display |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether the category is disabled |
{- "name": "string",
- "description": "string",
- "code": "string",
- "parent_category": "string",
- "color": "string",
- "icon": "string",
- "priority_level": 1,
- "estimated_duration": 0,
- "required_skills": [
- "string"
], - "default_assignee": "string",
- "notification_settings": {
- "notify_on_creation": true,
- "notify_on_completion": true,
- "escalation_time": 0
}, - "approval_required": true,
- "custom_fields": [
- {
- "field_name": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "string"
]
}
], - "sla_settings": {
- "response_time": 0,
- "resolution_time": 0,
- "business_hours_only": true
}, - "sort_order": 0,
- "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "name": "Maintenance",
- "description": "General maintenance workorders",
- "code": "MAINT",
- "parent_category": "507f1f77bcf86cd799439012",
- "color": "#FF5733",
- "icon": "wrench",
- "priority_level": 3,
- "estimated_duration": 120,
- "required_skills": [
- "electrical",
- "plumbing"
], - "default_assignee": "507f1f77bcf86cd799439013",
- "notification_settings": {
- "notify_on_creation": true,
- "notify_on_completion": true,
- "escalation_time": 0
}, - "approval_required": false,
- "custom_fields": [
- {
- "field_name": "string",
- "field_type": "text",
- "is_required": true,
- "options": [
- "string"
]
}
], - "sla_settings": {
- "response_time": 0,
- "resolution_time": 0,
- "business_hours_only": true
}, - "sort_order": 1,
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Delete multiple workorder categories by their IDs
| ids required | Array of strings Array of workorder category IDs to delete |
{- "ids": [
- "string"
]
}{- "success": true
}Get workorder categories in hierarchical structure
{- "success": true,
- "data": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "code": "string",
- "color": "string",
- "icon": "string",
- "children": [
- { }
], - "workorder_count": 0
}
]
}Retrieve a list of all workorder portal links with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| workorder | string Filter by workorder ID |
| is_active | boolean Filter by active status |
| link_type | string Enum: "public" "private" "secure" Filter by link type |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new workorder portal link
| workorder required | string Workorder ID reference |
| link_type | string Default: "private" Enum: "public" "private" "secure" Type of portal link |
object | |
object | |
| expiry_date | string <date-time> When the portal link expires |
object | |
object | |
object | |
| is_active | boolean Default: true Whether the portal link is active |
| company_namespace | Array of strings Company namespace |
{- "workorder": "507f1f77bcf86cd799439012",
- "link_type": "public",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "string",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "purpose": "string",
- "tags": [
- "string"
]
}, - "is_active": true,
- "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific workorder portal link by its ID
| id required | string Workorder portal link ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing workorder portal link
| id required | string Workorder portal link ID |
| link_type | string Enum: "public" "private" "secure" Type of portal link |
object | |
object | |
| expiry_date | string <date-time> When the portal link expires |
| is_active | boolean Whether the portal link is active |
object | |
object | |
object | |
| company_namespace | Array of strings Company namespace |
{- "link_type": "public",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": true,
- "can_view_history": true,
- "can_approve_reject": true
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": true,
- "require_email_verification": true
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "notification_settings": {
- "notify_on_access": true,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "string",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
]
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Regenerate the portal link URL and access token
| id required | string Workorder portal link ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Activate a workorder portal link
| id required | string Workorder portal link ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Deactivate a workorder portal link
| id required | string Workorder portal link ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "link_token": "wpl_abc123def456",
- "link_type": "private",
- "permissions": {
- "can_view_details": true,
- "can_add_comments": true,
- "can_upload_files": false,
- "can_view_history": true,
- "can_approve_reject": false
}, - "access_restrictions": {
- "allowed_ips": [
- "string"
], - "max_uses": 0,
- "password_protected": false,
- "require_email_verification": false
}, - "expiry_date": "2019-08-24T14:15:22Z",
- "is_active": true,
- "usage_stats": {
- "total_views": 15,
- "unique_visitors": 3,
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_log": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "ip_address": "string",
- "user_agent": "string",
- "action": "string"
}
]
}, - "notification_settings": {
- "notify_on_access": false,
- "notify_on_comment": true,
- "notify_on_file_upload": true,
- "notification_recipients": [
- "string"
]
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "custom_domain": "string",
- "footer_text": "string"
}, - "metadata": {
- "created_by": "string",
- "purpose": "string",
- "tags": [
- "string"
]
}, - "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve workorder portal entries with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Filter by status |
| workorder | string Filter by workorder ID |
| client | string Filter by client ID |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new workorder portal entry
| workorder required | string Workorder ID reference |
| client required | string Client ID reference |
| access_level | string Default: "view_only" Enum: "view_only" "comment" "full_access" Level of access granted |
| allowed_actions | Array of strings Default: ["view"] Items Enum: "view" "comment" "upload_files" "approve" "reject" Actions allowed for this portal access |
| expiry_date | string <date-time> When portal access expires |
object | |
object | |
object | |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether portal access is disabled |
{- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "access_level": "view_only",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "notifications": {
- "email_enabled": true,
- "sms_enabled": false,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": false
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "string",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific workorder portal entry by its ID
| id required | string Workorder portal entry ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing workorder portal entry
| id required | string Workorder portal entry ID |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Current status |
| access_level | string Enum: "view_only" "comment" "full_access" Level of access granted |
| allowed_actions | Array of strings Items Enum: "view" "comment" "upload_files" "approve" "reject" |
| expiry_date | string <date-time> When portal access expires |
object | |
object | |
object | |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether portal access is disabled |
{- "status": "pending",
- "access_level": "view_only",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "string",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update the status of a workorder portal entry
| id required | string Workorder portal entry ID |
| status required | string Enum: "pending" "in_progress" "completed" "cancelled" New status |
| notes | string Status update notes |
{- "status": "pending",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "workorder": "507f1f77bcf86cd799439012",
- "client": "507f1f77bcf86cd799439013",
- "portal_access_code": "WOP-2024-001",
- "status": "pending",
- "access_level": "comment",
- "allowed_actions": [
- "view"
], - "expiry_date": "2019-08-24T14:15:22Z",
- "last_accessed": "2019-08-24T14:15:22Z",
- "access_count": 5,
- "notifications": {
- "email_enabled": true,
- "sms_enabled": true,
- "notification_events": [
- "status_change"
]
}, - "portal_settings": {
- "show_progress": true,
- "allow_comments": true,
- "require_authentication": true
}, - "custom_branding": {
- "logo_url": "string",
- "brand_color": "#FF5733",
- "company_name": "string"
}, - "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}object Query parameters for filtering account adjustments |
{- "data": [
- {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "type": "credit",
- "amount": 0,
- "reason": "string",
- "reference": "string",
- "description": "string",
- "previousBalance": 0,
- "newBalance": 0,
- "adjustmentDate": "2019-08-24T14:15:22Z",
- "approvedBy": "string",
- "approvalDate": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| client required | string Client ID whose account is being adjusted |
| rep | string Representative ID who made the adjustment |
| type required | string Enum: "credit" "debit" Type of adjustment (credit increases balance, debit decreases) |
| amount required | number Adjustment amount |
| reason required | string Reason for the adjustment |
| reference | string Reference number or document |
| description | string Detailed description of the adjustment |
| adjustmentDate | string <date-time> Date when adjustment was made |
object Integration metadata |
{- "client": "string",
- "rep": "string",
- "type": "credit",
- "amount": 0,
- "reason": "string",
- "reference": "string",
- "description": "string",
- "adjustmentDate": "2019-08-24T14:15:22Z",
- "integration_meta": { }
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "type": "credit",
- "amount": 0,
- "reason": "string",
- "reference": "string",
- "description": "string",
- "previousBalance": 0,
- "newBalance": 0,
- "adjustmentDate": "2019-08-24T14:15:22Z",
- "approvedBy": "string",
- "approvalDate": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "type": "credit",
- "amount": 0,
- "reason": "string",
- "reference": "string",
- "description": "string",
- "previousBalance": 0,
- "newBalance": 0,
- "adjustmentDate": "2019-08-24T14:15:22Z",
- "approvedBy": "string",
- "approvalDate": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering inventory adjustments |
{- "data": [
- {
- "_id": "string",
- "warehouse": "string",
- "rep": "string",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "adjustmentQuantity": 0,
- "reason": "string"
}
], - "notes": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| warehouse | string |
| rep | string |
Array of objects | |
| notes | string |
{- "warehouse": "string",
- "rep": "string",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "adjustmentQuantity": 0,
- "reason": "string"
}
], - "notes": "string"
}{- "data": {
- "_id": "string",
- "warehouse": "string",
- "rep": "string",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "adjustmentQuantity": 0,
- "reason": "string"
}
], - "notes": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
{- "data": {
- "_id": "string",
- "warehouse": "string",
- "rep": "string",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "adjustmentQuantity": 0,
- "reason": "string"
}
], - "notes": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering approval requests |
{- "data": [
- {
- "_id": "string",
- "title": "string",
- "description": "string",
- "requestedBy": "string",
- "entity": "string",
- "entityId": "string",
- "approvers": [
- "string"
], - "requiredApprovals": 0,
- "currentApprovals": 0,
- "dueDate": "2019-08-24T14:15:22Z",
- "priority": "low",
- "status": "pending",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| title | string |
| description | string |
| requestedBy | string |
| entity | string |
| entityId | string |
| approvers | Array of strings |
| requiredApprovals | number |
| dueDate | string <date-time> |
| priority | string Enum: "low" "medium" "high" "urgent" |
{- "title": "string",
- "description": "string",
- "requestedBy": "string",
- "entity": "string",
- "entityId": "string",
- "approvers": [
- "string"
], - "requiredApprovals": 0,
- "dueDate": "2019-08-24T14:15:22Z",
- "priority": "low"
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "requestedBy": "string",
- "entity": "string",
- "entityId": "string",
- "approvers": [
- "string"
], - "requiredApprovals": 0,
- "currentApprovals": 0,
- "dueDate": "2019-08-24T14:15:22Z",
- "priority": "low",
- "status": "pending",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "requestedBy": "string",
- "entity": "string",
- "entityId": "string",
- "approvers": [
- "string"
], - "requiredApprovals": 0,
- "currentApprovals": 0,
- "dueDate": "2019-08-24T14:15:22Z",
- "priority": "low",
- "status": "pending",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| title | string |
| description | string |
| approvers | Array of strings |
| requiredApprovals | number |
| dueDate | string <date-time> |
| priority | string Enum: "low" "medium" "high" "urgent" |
| status | string |
{- "title": "string",
- "description": "string",
- "approvers": [
- "string"
], - "requiredApprovals": 0,
- "dueDate": "2019-08-24T14:15:22Z",
- "priority": "low",
- "status": "string"
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "requestedBy": "string",
- "entity": "string",
- "entityId": "string",
- "approvers": [
- "string"
], - "requiredApprovals": 0,
- "currentApprovals": 0,
- "dueDate": "2019-08-24T14:15:22Z",
- "priority": "low",
- "status": "pending",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering approvals |
{- "data": [
- {
- "_id": "string",
- "approvalRequest": "string",
- "approver": "string",
- "decision": "approved",
- "comments": "string",
- "signedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| approvalRequest | string |
| approver | string |
| decision | string Enum: "approved" "rejected" |
| comments | string |
| signedAt | string <date-time> |
{- "approvalRequest": "string",
- "approver": "string",
- "decision": "approved",
- "comments": "string",
- "signedAt": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "approvalRequest": "string",
- "approver": "string",
- "decision": "approved",
- "comments": "string",
- "signedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "approvalRequest": "string",
- "approver": "string",
- "decision": "approved",
- "comments": "string",
- "signedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| decision | string Enum: "approved" "rejected" |
| comments | string |
| signedAt | string <date-time> |
{- "decision": "approved",
- "comments": "string",
- "signedAt": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "approvalRequest": "string",
- "approver": "string",
- "decision": "approved",
- "comments": "string",
- "signedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering asset types |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "fields": [
- { }
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| description | string |
| category | string |
| fields | Array of objects |
| disabled | boolean |
{- "name": "string",
- "description": "string",
- "category": "string",
- "fields": [
- { }
], - "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "fields": [
- { }
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "fields": [
- { }
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| description | string |
| category | string |
| fields | Array of objects |
| disabled | boolean |
{- "name": "string",
- "description": "string",
- "category": "string",
- "fields": [
- { }
], - "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "fields": [
- { }
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering assets |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "serialNumber": "string",
- "assetType": "string",
- "client": "string",
- "location": { },
- "status": "string",
- "purchaseDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24T14:15:22Z",
- "customFields": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| serialNumber | string |
| assetType | string |
| client | string |
| location | object |
| status | string |
| purchaseDate | string <date-time> |
| warrantyExpiry | string <date-time> |
| customFields | object |
{- "name": "string",
- "serialNumber": "string",
- "assetType": "string",
- "client": "string",
- "location": { },
- "status": "string",
- "purchaseDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24T14:15:22Z",
- "customFields": { }
}{- "data": {
- "_id": "string",
- "name": "string",
- "serialNumber": "string",
- "assetType": "string",
- "client": "string",
- "location": { },
- "status": "string",
- "purchaseDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24T14:15:22Z",
- "customFields": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "serialNumber": "string",
- "assetType": "string",
- "client": "string",
- "location": { },
- "status": "string",
- "purchaseDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24T14:15:22Z",
- "customFields": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| serialNumber | string |
| assetType | string |
| client | string |
| location | object |
| status | string |
| purchaseDate | string <date-time> |
| warrantyExpiry | string <date-time> |
| customFields | object |
{- "name": "string",
- "serialNumber": "string",
- "assetType": "string",
- "client": "string",
- "location": { },
- "status": "string",
- "purchaseDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24T14:15:22Z",
- "customFields": { }
}{- "data": {
- "_id": "string",
- "name": "string",
- "serialNumber": "string",
- "assetType": "string",
- "client": "string",
- "location": { },
- "status": "string",
- "purchaseDate": "2019-08-24T14:15:22Z",
- "warrantyExpiry": "2019-08-24T14:15:22Z",
- "customFields": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering banks |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "code": "string",
- "country": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| code | string |
| country | string |
| disabled | boolean |
{- "name": "string",
- "code": "string",
- "country": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "code": "string",
- "country": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "code": "string",
- "country": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| code | string |
| country | string |
| disabled | boolean |
{- "name": "string",
- "code": "string",
- "country": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "code": "string",
- "country": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering bank lists |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "banks": [
- "string"
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| banks | Array of strings |
| disabled | boolean |
{- "name": "string",
- "banks": [
- "string"
], - "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "banks": [
- "string"
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| banks | Array of strings |
| disabled | boolean |
{- "name": "string",
- "banks": [
- "string"
], - "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "banks": [
- "string"
], - "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering brands |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the brand |
| local_name | string Localized name of the brand |
| disabled | boolean Whether the brand is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
{- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the brand |
| local_name | string Localized name of the brand |
| disabled | boolean Whether the brand is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the brand |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering categories |
{- "data": [
- {
- "_id": "string",
- "type": "main",
- "name": "string",
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "disabled": true,
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the category |
| company_namespace | Array of strings Company namespaces |
| type | string Value: "main" Category type |
| disabled | boolean Whether the category is disabled |
| photo | string Photo URL of the category |
| local_name | string Localized name of the category |
| icon | string Icon for the category |
| position | number Position of the category |
object Integration metadata |
{- "name": "string",
- "company_namespace": [
- "string"
], - "type": "main",
- "disabled": true,
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "position": 0,
- "integration_meta": { }
}{- "_id": "string",
- "type": "main",
- "name": "string",
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "disabled": true,
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "type": "main",
- "name": "string",
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "disabled": true,
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the category |
| company_namespace | Array of strings Company namespaces |
| type | string Value: "main" Category type |
| disabled | boolean Whether the category is disabled |
| photo | string Photo URL of the category |
| local_name | string Localized name of the category |
| icon | string Icon for the category |
| position | number Position of the category |
object Integration metadata | |
| _id | string Unique identifier for the category |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "company_namespace": [
- "string"
], - "type": "main",
- "disabled": true,
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "position": 0,
- "integration_meta": { },
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "type": "main",
- "name": "string",
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "disabled": true,
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "type": "main",
- "name": "string",
- "photo": "string",
- "local_name": "string",
- "icon": "string",
- "disabled": true,
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering checks |
{- "data": [
- {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "checkNumber": "string",
- "amount": 0,
- "bank": "string",
- "accountNumber": "string",
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "clearedDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| client required | string Client ID associated with the check |
| rep | string Representative ID who received the check |
| checkNumber required | string Check number |
| amount required | number Check amount |
| bank required | string Bank name or ID |
| accountNumber | string Account number |
| issueDate | string <date-time> Date when check was issued |
| dueDate required | string <date-time> Due date of the check |
| notes | string Additional notes |
object Integration metadata |
{- "client": "string",
- "rep": "string",
- "checkNumber": "string",
- "amount": 0,
- "bank": "string",
- "accountNumber": "string",
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "checkNumber": "string",
- "amount": 0,
- "bank": "string",
- "accountNumber": "string",
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "clearedDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "checkNumber": "string",
- "amount": 0,
- "bank": "string",
- "accountNumber": "string",
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "clearedDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering clients |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "last_location_update": 0,
- "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { },
- "integrated_client_balance": 0,
- "invoice_balance_limit": 0,
- "enable_invoice_balance_limit": true,
- "enable_payment_terms_grace_period_days": true,
- "is_simplified": true,
- "last_login_time": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the client |
| local_name | string Localized name of the client |
| tags | Array of strings Tags associated with the client |
| cell_phone | string Cell phone number |
| city | string City |
| client_code | string Client code |
| contact_name | string Contact name |
| contact_title | string Contact title |
| contacts | Array of strings Associated contacts |
| country | string Country |
| disabled | boolean Whether the client is disabled |
| formatted_address | string Formatted address |
| lat | number Latitude coordinate |
| lng | number Longitude coordinate |
| location_verified | boolean Whether the location is verified |
| phone | string Phone number |
| state | string State |
| zip | string Zip/Postal code |
| assigned_to | Array of strings Representatives assigned to this client |
| credit_limit | number Credit limit |
| tax_number | string Tax number |
| sync_id | string Sync identifier |
| profile_pic | string Profile picture URL |
| logo | string Logo URL |
| website | string Website URL |
string Email address | |
| comment | string Comments |
| parent_client_id | string Parent client ID for hierarchical relationships |
| target_visit | number Target number of visits |
| geofencing_radius | number Geofencing radius |
| price_tag | string Price tag |
| status | string Status |
| job_category | Array of strings Job categories |
| territory | string Territory |
| sv_priceList | string Price list ID |
object Custom fields | |
| paymentTerm | string Payment term ID |
| speciality | Array of strings Specialities |
| company_namespace | Array of strings Company namespaces |
| channel | string Channel ID |
| isChain | boolean Whether this is a chain |
| chain | string Chain ID |
| teams | Array of strings Teams |
| payment_type | string Enum: "cash" "credit" Payment type |
object Integration metadata |
{- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "last_location_update": 0,
- "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { },
- "integrated_client_balance": 0,
- "invoice_balance_limit": 0,
- "enable_invoice_balance_limit": true,
- "enable_payment_terms_grace_period_days": true,
- "is_simplified": true,
- "last_login_time": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "last_location_update": 0,
- "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { },
- "integrated_client_balance": 0,
- "invoice_balance_limit": 0,
- "enable_invoice_balance_limit": true,
- "enable_payment_terms_grace_period_days": true,
- "is_simplified": true,
- "last_login_time": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the client |
| local_name | string Localized name of the client |
| tags | Array of strings Tags associated with the client |
| cell_phone | string Cell phone number |
| city | string City |
| client_code | string Client code |
| contact_name | string Contact name |
| contact_title | string Contact title |
| contacts | Array of strings Associated contacts |
| country | string Country |
| disabled | boolean Whether the client is disabled |
| formatted_address | string Formatted address |
| lat | number Latitude coordinate |
| lng | number Longitude coordinate |
| location_verified | boolean Whether the location is verified |
| phone | string Phone number |
| state | string State |
| zip | string Zip/Postal code |
| assigned_to | Array of strings Representatives assigned to this client |
| credit_limit | number Credit limit |
| tax_number | string Tax number |
| sync_id | string Sync identifier |
| profile_pic | string Profile picture URL |
| logo | string Logo URL |
| website | string Website URL |
string Email address | |
| comment | string Comments |
| parent_client_id | string Parent client ID for hierarchical relationships |
| target_visit | number Target number of visits |
| geofencing_radius | number Geofencing radius |
| price_tag | string Price tag |
| status | string Status |
| job_category | Array of strings Job categories |
| territory | string Territory |
| sv_priceList | string Price list ID |
object Custom fields | |
| paymentTerm | string Payment term ID |
| speciality | Array of strings Specialities |
| company_namespace | Array of strings Company namespaces |
| channel | string Channel ID |
| isChain | boolean Whether this is a chain |
| chain | string Chain ID |
| teams | Array of strings Teams |
| payment_type | string Enum: "cash" "credit" Payment type |
object Integration metadata | |
| _id | string Unique identifier for the client |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { },
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "last_location_update": 0,
- "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { },
- "integrated_client_balance": 0,
- "invoice_balance_limit": 0,
- "enable_invoice_balance_limit": true,
- "enable_payment_terms_grace_period_days": true,
- "is_simplified": true,
- "last_login_time": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "tags": [
- "string"
], - "cell_phone": "string",
- "city": "string",
- "client_code": "string",
- "contact_name": "string",
- "contact_title": "string",
- "contacts": [
- "string"
], - "country": "string",
- "disabled": true,
- "formatted_address": "string",
- "lat": 0,
- "lng": 0,
- "location_verified": true,
- "phone": "string",
- "state": "string",
- "zip": "string",
- "assigned_to": [
- "string"
], - "last_location_update": 0,
- "credit_limit": 0,
- "tax_number": "string",
- "sync_id": "string",
- "profile_pic": "string",
- "logo": "string",
- "website": "string",
- "email": "string",
- "comment": "string",
- "parent_client_id": "string",
- "target_visit": 0,
- "geofencing_radius": 0,
- "price_tag": "string",
- "status": "string",
- "job_category": [
- "string"
], - "territory": "string",
- "sv_priceList": "string",
- "customFields": { },
- "paymentTerm": "string",
- "speciality": [
- "string"
], - "company_namespace": [
- "string"
], - "channel": "string",
- "isChain": true,
- "chain": "string",
- "teams": [
- "string"
], - "payment_type": "cash",
- "integration_meta": { },
- "integrated_client_balance": 0,
- "invoice_balance_limit": 0,
- "enable_invoice_balance_limit": true,
- "enable_payment_terms_grace_period_days": true,
- "is_simplified": true,
- "last_login_time": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering contracts |
{- "data": [
- {
- "_id": "string",
- "title": "string",
- "client": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "currency": "string",
- "status": "string",
- "terms": "string",
- "installments": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| title | string |
| client | string |
| startDate | string <date-time> |
| endDate | string <date-time> |
| totalAmount | number |
| currency | string |
| status | string |
| terms | string |
| installments | Array of objects |
{- "title": "string",
- "client": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "currency": "string",
- "status": "string",
- "terms": "string",
- "installments": [
- { }
]
}{- "data": {
- "_id": "string",
- "title": "string",
- "client": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "currency": "string",
- "status": "string",
- "terms": "string",
- "installments": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "title": "string",
- "client": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "currency": "string",
- "status": "string",
- "terms": "string",
- "installments": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| title | string |
| client | string |
| startDate | string <date-time> |
| endDate | string <date-time> |
| totalAmount | number |
| currency | string |
| status | string |
| terms | string |
| installments | Array of objects |
{- "title": "string",
- "client": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "currency": "string",
- "status": "string",
- "terms": "string",
- "installments": [
- { }
]
}{- "data": {
- "_id": "string",
- "title": "string",
- "client": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalAmount": 0,
- "currency": "string",
- "status": "string",
- "terms": "string",
- "installments": [
- { }
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering custom list items |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "value": "string",
- "customList": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| value | string |
| customList | string |
| disabled | boolean |
{- "name": "string",
- "value": "string",
- "customList": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "value": "string",
- "customList": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "value": "string",
- "customList": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| value | string |
| customList | string |
| disabled | boolean |
{- "name": "string",
- "value": "string",
- "customList": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "value": "string",
- "customList": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering custom lists |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| description | string |
| entity | string |
| disabled | boolean |
{- "name": "string",
- "description": "string",
- "entity": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| description | string |
| entity | string |
| disabled | boolean |
{- "name": "string",
- "description": "string",
- "entity": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering custom statuses |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "color": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| color | string |
| entity | string |
| disabled | boolean |
{- "name": "string",
- "color": "string",
- "entity": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "color": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "color": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| color | string |
| entity | string |
| disabled | boolean |
{- "name": "string",
- "color": "string",
- "entity": "string",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "color": "string",
- "entity": "string",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}object Query parameters for filtering days |
{- "data": [
- {
- "_id": "string",
- "rep": "string",
- "date": "2019-08-24",
- "startTime": "14:15:22Z",
- "endTime": "14:15:22Z",
- "status": "open",
- "visits": [
- "string"
], - "orders": [
- "string"
], - "activities": [
- {
- "type": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "summary": {
- "totalVisits": 0,
- "totalOrders": 0,
- "totalSales": 0
}, - "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| rep required | string Representative ID |
| date required | string <date> Date of the working day |
| startTime | string <time> Start time of the day |
| notes | string Additional notes for the day |
object Integration metadata |
{- "rep": "string",
- "date": "2019-08-24",
- "startTime": "14:15:22Z",
- "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "rep": "string",
- "date": "2019-08-24",
- "startTime": "14:15:22Z",
- "endTime": "14:15:22Z",
- "status": "open",
- "visits": [
- "string"
], - "orders": [
- "string"
], - "activities": [
- {
- "type": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "summary": {
- "totalVisits": 0,
- "totalOrders": 0,
- "totalSales": 0
}, - "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "rep": "string",
- "date": "2019-08-24",
- "startTime": "14:15:22Z",
- "endTime": "14:15:22Z",
- "status": "open",
- "visits": [
- "string"
], - "orders": [
- "string"
], - "activities": [
- {
- "type": "string",
- "description": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "summary": {
- "totalVisits": 0,
- "totalOrders": 0,
- "totalSales": 0
}, - "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering full invoices |
{- "data": [
- {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| serial | string |
| client | string |
| rep | string |
| warehouse | string |
| items | Array of objects |
| total | number |
| status | string |
| dueDate | string <date-time> |
{- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "dueDate": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| serial | string |
| client | string |
| rep | string |
| warehouse | string |
| items | Array of objects |
| total | number |
| status | string |
| dueDate | string <date-time> |
{- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "dueDate": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}object Query parameters for filtering integration apps |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "version": "string",
- "status": "active",
- "available_app": "string",
- "company_namespace": "string",
- "config": { },
- "credentials": { },
- "endpoints": { },
- "webhooks": { },
- "sync_settings": { },
- "last_sync": "2019-08-24T14:15:22Z",
- "error_count": 0,
- "success_count": 0,
- "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| name required | string Name of the integration app |
| description | string Description of the integration app |
| available_app required | string Available app reference |
| company_namespace required | string Company namespace |
object Configuration settings for the integration | |
object Credentials for the integration | |
object API endpoints configuration | |
object Webhook configuration | |
object Synchronization settings | |
object Integration metadata |
{- "name": "string",
- "description": "string",
- "available_app": "string",
- "company_namespace": "string",
- "config": { },
- "credentials": { },
- "endpoints": { },
- "webhooks": { },
- "sync_settings": { },
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "version": "string",
- "status": "active",
- "available_app": "string",
- "company_namespace": "string",
- "config": { },
- "credentials": { },
- "endpoints": { },
- "webhooks": { },
- "sync_settings": { },
- "last_sync": "2019-08-24T14:15:22Z",
- "error_count": 0,
- "success_count": 0,
- "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "version": "string",
- "status": "active",
- "available_app": "string",
- "company_namespace": "string",
- "config": { },
- "credentials": { },
- "endpoints": { },
- "webhooks": { },
- "sync_settings": { },
- "last_sync": "2019-08-24T14:15:22Z",
- "error_count": 0,
- "success_count": 0,
- "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the integration app |
| description | string Description of the integration app |
| status | string Enum: "active" "inactive" "pending" Status of the integration app |
object Configuration settings for the integration | |
object Credentials for the integration | |
object API endpoints configuration | |
object Webhook configuration | |
object Synchronization settings | |
object Integration metadata |
{- "name": "string",
- "description": "string",
- "status": "active",
- "config": { },
- "credentials": { },
- "endpoints": { },
- "webhooks": { },
- "sync_settings": { },
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "version": "string",
- "status": "active",
- "available_app": "string",
- "company_namespace": "string",
- "config": { },
- "credentials": { },
- "endpoints": { },
- "webhooks": { },
- "sync_settings": { },
- "last_sync": "2019-08-24T14:15:22Z",
- "error_count": 0,
- "success_count": 0,
- "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering inventory adjustment reasons |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "type": "increase",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| type | string Enum: "increase" "decrease" |
| disabled | boolean |
{- "name": "string",
- "type": "increase",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "type": "increase",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
{- "data": {
- "_id": "string",
- "name": "string",
- "type": "increase",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| type | string Enum: "increase" "decrease" |
| disabled | boolean |
{- "name": "string",
- "type": "increase",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "type": "increase",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering inventory items |
{- "data": [
- {
- "_id": "string",
- "product": "string",
- "variant": "string",
- "warehouse": "string",
- "quantity": 0,
- "reservedQuantity": 0,
- "availableQuantity": 0,
- "cost": 0,
- "lastUpdated": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}object Query parameters for filtering measure unit families |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0,
- "measureunits_populated": [
- "string"
]
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the measure unit family |
| local_name | string Localized name of the measure unit family |
| measureunits | Array of strings IDs of measure units in this family |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the measure unit family is disabled |
object Integration metadata |
{- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "company_namespace": [
- "string"
], - "disabled": true,
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the measure unit family |
| local_name | string Localized name of the measure unit family |
| measureunits | Array of strings IDs of measure units in this family |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the measure unit family is disabled |
object Integration metadata | |
| _id | string Unique identifier for the measure unit family |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "company_namespace": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "measureunits": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering measure units |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the measure unit |
| factor required | number Factor of the measure unit |
| local_name | string Localized name of the measure unit |
| parent | string Parent measure unit ID |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the measure unit is disabled |
object Integration metadata |
{- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "company_namespace": [
- "string"
], - "disabled": true,
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the measure unit |
| factor | number Factor of the measure unit |
| local_name | string Localized name of the measure unit |
| parent | string Parent measure unit ID |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the measure unit is disabled |
object Integration metadata | |
| _id | string Unique identifier for the measure unit |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "company_namespace": [
- "string"
], - "disabled": true,
- "integration_meta": { },
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "factor": 0,
- "local_name": "string",
- "parent": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering media storage items |
{- "data": [
- {
- "_id": "string",
- "filename": "string",
- "url": "string",
- "mimeType": "string",
- "size": 0,
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "uploadedBy": "string",
- "isPublic": true,
- "thumbnailUrl": "string",
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| filename required | string Original filename |
| url required | string URL to access the media file |
| mimeType required | string MIME type of the file |
| size required | number File size in bytes |
| category | string Media category |
| entityType | string Type of entity this media is associated with |
| entityId | string ID of the entity this media is associated with |
| isPublic | boolean Whether the media is publicly accessible |
| thumbnailUrl | string URL to thumbnail version (for images) |
object Additional metadata about the file | |
| tags | Array of strings Tags associated with the media |
| description | string Description of the media |
object Integration metadata |
{- "filename": "string",
- "url": "string",
- "mimeType": "string",
- "size": 0,
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "isPublic": true,
- "thumbnailUrl": "string",
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { }
}{- "_id": "string",
- "filename": "string",
- "url": "string",
- "mimeType": "string",
- "size": 0,
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "uploadedBy": "string",
- "isPublic": true,
- "thumbnailUrl": "string",
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "filename": "string",
- "url": "string",
- "mimeType": "string",
- "size": 0,
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "uploadedBy": "string",
- "isPublic": true,
- "thumbnailUrl": "string",
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| filename | string Original filename |
| category | string Media category |
| entityType | string Type of entity this media is associated with |
| entityId | string ID of the entity this media is associated with |
| isPublic | boolean Whether the media is publicly accessible |
object Additional metadata about the file | |
| tags | Array of strings Tags associated with the media |
| description | string Description of the media |
object Integration metadata |
{- "filename": "string",
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "isPublic": true,
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { }
}{- "_id": "string",
- "filename": "string",
- "url": "string",
- "mimeType": "string",
- "size": 0,
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "uploadedBy": "string",
- "isPublic": true,
- "thumbnailUrl": "string",
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "filename": "string",
- "url": "string",
- "mimeType": "string",
- "size": 0,
- "category": "string",
- "entityType": "string",
- "entityId": "string",
- "uploadedBy": "string",
- "isPublic": true,
- "thumbnailUrl": "string",
- "metadata": { },
- "tags": [
- "string"
], - "description": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering media |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the media |
| description | string Description of the media |
| url required | string URL of the media |
| document_type required | string Enum: "html" "csv" "json" "image" "pdf" "ppt" "pptx" "xls" "xlsx" "doc" "docx" "images" "zip" "pt" Type of media document |
| parent_document_type | string Enum: "clients" "asset" "assetUnit" "workorder" "clientLocation" "clientContact" "commentsThread" "workorderRequest" "workorderPortal" "invoice" "products" "productvariations" "representatives" "productcategories" "productSubCategory" "speciality" "line" "banner" "intgAvailableApps" Type of parent document |
| parent_document_key | string Key of parent document |
| disabled | boolean Whether the media is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
{- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the media |
| description | string Description of the media |
| url | string URL of the media |
| document_type | string Enum: "html" "csv" "json" "image" "pdf" "ppt" "pptx" "xls" "xlsx" "doc" "docx" "images" "zip" "pt" Type of media document |
| parent_document_type | string Enum: "clients" "asset" "assetUnit" "workorder" "clientLocation" "clientContact" "commentsThread" "workorderRequest" "workorderPortal" "invoice" "products" "productvariations" "representatives" "productcategories" "productSubCategory" "speciality" "line" "banner" "intgAvailableApps" Type of parent document |
| parent_document_key | string Key of parent document |
| disabled | boolean Whether the media is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the media |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "url": "string",
- "document_type": "html",
- "parent_document_type": "clients",
- "parent_document_key": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering MSL products |
{- "data": [
- {
- "_id": "string",
- "msl": "string",
- "product": "string",
- "variant": "string",
- "targetQuantity": 0,
- "achievedQuantity": 0,
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| msl | string |
| product | string |
| variant | string |
| targetQuantity | number |
| achievedQuantity | number |
| disabled | boolean |
{- "msl": "string",
- "product": "string",
- "variant": "string",
- "targetQuantity": 0,
- "achievedQuantity": 0,
- "disabled": true
}{- "data": {
- "_id": "string",
- "msl": "string",
- "product": "string",
- "variant": "string",
- "targetQuantity": 0,
- "achievedQuantity": 0,
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "msl": "string",
- "product": "string",
- "variant": "string",
- "targetQuantity": 0,
- "achievedQuantity": 0,
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| msl | string |
| product | string |
| variant | string |
| targetQuantity | number |
| achievedQuantity | number |
| disabled | boolean |
{- "msl": "string",
- "product": "string",
- "variant": "string",
- "targetQuantity": 0,
- "achievedQuantity": 0,
- "disabled": true
}{- "data": {
- "_id": "string",
- "msl": "string",
- "product": "string",
- "variant": "string",
- "targetQuantity": 0,
- "achievedQuantity": 0,
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering MSLs |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "client": "string",
- "rep": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
| client | string |
| rep | string |
| startDate | string <date-time> |
| endDate | string <date-time> |
| disabled | boolean |
{- "name": "string",
- "client": "string",
- "rep": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "client": "string",
- "rep": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "client": "string",
- "rep": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
| client | string |
| rep | string |
| startDate | string <date-time> |
| endDate | string <date-time> |
| disabled | boolean |
{- "name": "string",
- "client": "string",
- "rep": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "client": "string",
- "rep": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering payment terms |
{- "success": true,
- "result": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "days": 0,
- "discount_percentage": 0,
- "discount_days": 0,
- "is_active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "company_id": "string"
}
], - "pagination": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "total_pages": 0
}
}| name required | string Name of the payment term |
| description | string Description of the payment term |
| days | integer Number of days for payment |
| discount_percentage | number <float> Discount percentage if paid early |
| discount_days | integer Number of days for discount eligibility |
| is_active | boolean Default: true Whether the payment term is active |
{- "name": "string",
- "description": "string",
- "days": 0,
- "discount_percentage": 0,
- "discount_days": 0,
- "is_active": true
}{- "success": true,
- "result": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "days": 0,
- "discount_percentage": 0,
- "discount_days": 0,
- "is_active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "company_id": "string"
}
}{- "success": true,
- "result": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "days": 0,
- "discount_percentage": 0,
- "discount_days": 0,
- "is_active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "company_id": "string"
}
}| id required | string |
| name | string Name of the payment term |
| description | string Description of the payment term |
| days | integer Number of days for payment |
| discount_percentage | number <float> Discount percentage if paid early |
| discount_days | integer Number of days for discount eligibility |
| is_active | boolean Whether the payment term is active |
{- "name": "string",
- "description": "string",
- "days": 0,
- "discount_percentage": 0,
- "discount_days": 0,
- "is_active": true
}{- "success": true,
- "result": {
- "_id": "string",
- "name": "string",
- "description": "string",
- "days": 0,
- "discount_percentage": 0,
- "discount_days": 0,
- "is_active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "company_id": "string"
}
}| params | object Query parameters for filtering payments |
{- "data": [
- {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "amount": 0,
- "paymentMethod": "string",
- "reference": "string",
- "description": "string",
- "date": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| client | string |
| rep | string |
| amount | number |
| paymentMethod | string |
| reference | string |
| description | string |
| date | string <date-time> |
{- "client": "string",
- "rep": "string",
- "amount": 0,
- "paymentMethod": "string",
- "reference": "string",
- "description": "string",
- "date": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "amount": 0,
- "paymentMethod": "string",
- "reference": "string",
- "description": "string",
- "date": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "amount": 0,
- "paymentMethod": "string",
- "reference": "string",
- "description": "string",
- "date": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| client | string |
| rep | string |
| amount | number |
| paymentMethod | string |
| reference | string |
| description | string |
| date | string <date-time> |
{- "client": "string",
- "rep": "string",
- "amount": 0,
- "paymentMethod": "string",
- "reference": "string",
- "description": "string",
- "date": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "amount": 0,
- "paymentMethod": "string",
- "reference": "string",
- "description": "string",
- "date": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}object Query parameters for filtering price list items |
{- "data": [
- {
- "_id": "string",
- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| product_id required | string ID of the product |
| variant_id required | string ID of the variant |
| pricelist_id required | string ID of the price list |
| price required | number Price value |
object Integration metadata | |
| disabled | boolean Whether the price list item is disabled |
| company_namespace | Array of strings Company namespaces |
{- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "integration_meta": { },
- "disabled": true,
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| product_id | string ID of the product |
| variant_id | string ID of the variant |
| pricelist_id | string ID of the price list |
| price | number Price value |
object Integration metadata | |
| disabled | boolean Whether the price list item is disabled |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the price list item |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "integration_meta": { },
- "disabled": true,
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "product_id": "string",
- "variant_id": "string",
- "pricelist_id": "string",
- "price": 0,
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering price lists |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "createdby": {
- "_id": "string",
- "name": "string"
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the price list |
object Integration metadata | |
| disabled | boolean Whether the price list is disabled |
| company_namespace | Array of strings Company namespaces |
{- "name": "string",
- "integration_meta": { },
- "disabled": true,
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "createdby": {
- "_id": "string",
- "name": "string"
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "createdby": {
- "_id": "string",
- "name": "string"
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the price list |
object Integration metadata | |
| disabled | boolean Whether the price list is disabled |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the price list |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "integration_meta": { },
- "disabled": true,
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "createdby": {
- "_id": "string",
- "name": "string"
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "createdby": {
- "_id": "string",
- "name": "string"
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering product groups |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the product group |
| local_name | string Localized name of the product group |
| disabled | boolean Whether the product group is disabled |
| company_namespace | Array of strings Company namespaces |
{- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the product group |
| local_name | string Localized name of the product group |
| disabled | boolean Whether the product group is disabled |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the product group |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering products |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the product |
| category required | string ID of the product category |
| active | boolean Whether the product is active |
| company_namespace | Array of strings Company namespaces |
| local_name | string Localized name of the product |
| sku | string Stock keeping unit |
| sub_category | Array of strings IDs of the product sub-categories |
| assigned_to | Array of strings Representatives assigned to this product |
| auditable | boolean Whether the product is auditable |
| barcode | string Barcode of the product |
| sv_tax | string ID of the tax |
| sv_measureUnit | string ID of the measure unit |
| description | string Description of the product |
| local_description | string Localized description of the product |
| product_img | string Product image URL |
| base_price | string Base price of the product |
| assigned_media | Array of strings Media assigned to this product |
| html_description | string HTML description of the product |
| modifiers_group | Array of strings Modifier groups for the product |
| featured | boolean Whether the product is featured |
| brand | string ID of the brand |
| rsp | number Recommended selling price |
| measureunit_family | string ID of the measure unit family |
object Integration metadata | |
| teams | Array of strings Teams |
| position | number Position of the product |
| product_groups | Array of strings Product groups |
| frozen_pre_sales | boolean Whether pre-sales are frozen |
| frozen_sales | boolean Whether sales are frozen |
Array of objects (VariantCreateBody) List of variants for this product |
{- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "variants": [
- {
- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { }
}
]
}{- "_id": "string",
- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the product |
| category | string ID of the product category |
| active | boolean Whether the product is active |
| company_namespace | Array of strings Company namespaces |
| local_name | string Localized name of the product |
| sku | string Stock keeping unit |
| sub_category | Array of strings IDs of the product sub-categories |
| assigned_to | Array of strings Representatives assigned to this product |
| auditable | boolean Whether the product is auditable |
| barcode | string Barcode of the product |
| sv_tax | string ID of the tax |
| sv_measureUnit | string ID of the measure unit |
| description | string Description of the product |
| local_description | string Localized description of the product |
| product_img | string Product image URL |
| base_price | string Base price of the product |
| assigned_media | Array of strings Media assigned to this product |
| html_description | string HTML description of the product |
| modifiers_group | Array of strings Modifier groups for the product |
| featured | boolean Whether the product is featured |
| brand | string ID of the brand |
| rsp | number Recommended selling price |
| measureunit_family | string ID of the measure unit family |
object Integration metadata | |
| teams | Array of strings Teams |
| position | number Position of the product |
| product_groups | Array of strings Product groups |
| frozen_pre_sales | boolean Whether pre-sales are frozen |
| frozen_sales | boolean Whether sales are frozen |
| _id | string Unique identifier for the product |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
Array of objects List of variants for this product |
{- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0,
- "variants": [
- {
- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { },
- "_id": "string"
}
]
}{- "_id": "string",
- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "category": "string",
- "active": true,
- "company_namespace": [
- "string"
], - "local_name": "string",
- "sku": "string",
- "sub_category": [
- "string"
], - "assigned_to": [
- "string"
], - "auditable": true,
- "barcode": "string",
- "sv_tax": "string",
- "sv_measureUnit": "string",
- "description": "string",
- "local_description": "string",
- "product_img": "string",
- "base_price": "string",
- "assigned_media": [
- "string"
], - "html_description": "string",
- "modifiers_group": [
- "string"
], - "featured": true,
- "brand": "string",
- "rsp": 0,
- "measureunit_family": "string",
- "integration_meta": { },
- "teams": [
- "string"
], - "position": 0,
- "product_groups": [
- "string"
], - "frozen_pre_sales": true,
- "frozen_sales": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering proformas |
{- "data": [
- {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| serial | string |
| client | string |
| rep | string |
| warehouse | string |
| items | Array of objects |
| total | number |
| status | string |
| validUntil | string <date-time> |
{- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "validUntil": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| serial | string |
| client | string |
| rep | string |
| warehouse | string |
| items | Array of objects |
| total | number |
| status | string |
| validUntil | string <date-time> |
{- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "validUntil": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "serial": "string",
- "client": "string",
- "rep": "string",
- "warehouse": "string",
- "items": [
- { }
], - "total": 0,
- "status": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| documentType required | string Enum: "invoice" "proforma" "order" "quote" "receipt" Type of document to convert |
| documentId required | string ID of the document to convert |
| template | string Template to use for PDF generation |
object PDF generation options | |
| language | string Language for the PDF content |
{- "documentType": "invoice",
- "documentId": "string",
- "template": "string",
- "options": {
- "includeHeader": true,
- "includeFooter": true,
- "watermark": "string",
- "orientation": "portrait",
- "format": "A4"
}, - "language": "string"
}{- "success": true,
- "pdfUrl": "string",
- "filename": "string",
- "size": 0,
- "pages": 0,
- "generatedAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}object Query parameters for filtering receiving materials |
{- "data": [
- {
- "_id": "string",
- "warehouse": "string",
- "supplier": "string",
- "rep": "string",
- "receiptNumber": "string",
- "receiptDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "expectedQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| warehouse required | string Warehouse ID where materials are received |
| supplier required | string Supplier ID providing the materials |
| rep | string Representative ID who received the materials |
| receiptNumber | string Receipt number |
| receiptDate | string <date-time> Date when materials were received |
required | Array of objects List of items received |
| notes | string Additional notes |
object Integration metadata |
{- "warehouse": "string",
- "supplier": "string",
- "rep": "string",
- "receiptNumber": "string",
- "receiptDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "expectedQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "warehouse": "string",
- "supplier": "string",
- "rep": "string",
- "receiptNumber": "string",
- "receiptDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "expectedQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "warehouse": "string",
- "supplier": "string",
- "rep": "string",
- "receiptNumber": "string",
- "receiptDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "expectedQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| receiptDate | string <date-time> Date when materials were received |
Array of objects List of items received | |
| status | string Enum: "pending" "received" "cancelled" Status of the receiving material |
| notes | string Additional notes |
object Integration metadata |
{- "receiptDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "expectedQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "status": "pending",
- "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "warehouse": "string",
- "supplier": "string",
- "rep": "string",
- "receiptNumber": "string",
- "receiptDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "expectedQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0,
- "totalCost": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering refunds |
{- "data": [
- {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoice": "string",
- "amount": 0,
- "reason": "string",
- "status": "pending",
- "refundMethod": "string",
- "reference": "string",
- "notes": "string",
- "processedAt": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| client required | string Client ID associated with the refund |
| rep | string Representative ID who processed the refund |
| invoice | string Invoice ID being refunded |
| amount required | number Refund amount |
| reason required | string Reason for the refund |
| refundMethod | string Method of refund |
| reference | string Reference number for the refund |
| notes | string Additional notes |
object Integration metadata |
{- "client": "string",
- "rep": "string",
- "invoice": "string",
- "amount": 0,
- "reason": "string",
- "refundMethod": "string",
- "reference": "string",
- "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoice": "string",
- "amount": 0,
- "reason": "string",
- "status": "pending",
- "refundMethod": "string",
- "reference": "string",
- "notes": "string",
- "processedAt": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoice": "string",
- "amount": 0,
- "reason": "string",
- "status": "pending",
- "refundMethod": "string",
- "reference": "string",
- "notes": "string",
- "processedAt": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| status | string Enum: "pending" "approved" "rejected" "processed" Status of the refund |
| refundMethod | string Method of refund |
| reference | string Reference number for the refund |
| notes | string Additional notes |
| processedAt | string <date-time> When the refund was processed |
object Integration metadata |
{- "status": "pending",
- "refundMethod": "string",
- "reference": "string",
- "notes": "string",
- "processedAt": "2019-08-24T14:15:22Z",
- "integration_meta": { }
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoice": "string",
- "amount": 0,
- "reason": "string",
- "status": "pending",
- "refundMethod": "string",
- "reference": "string",
- "notes": "string",
- "processedAt": "2019-08-24T14:15:22Z",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| rep required | string The rep ID to get balance summary for |
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 20 Number of items per page |
| disabled | boolean Default: false Whether to include disabled records |
| populatedKeys | Array of strings Keys to populate in the response |
{- "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string",
- "data": [
- {
- "_id": "string",
- "rep": "string",
- "rep_name": "string",
- "total_outstanding_balance_of_invoices_created_by_rep": 0
}
], - "totals": {
- "total_balances": 0
}, - "options": {
- "has_more": true,
- "include_documents_count": true
}
}object Query parameters for filtering reps |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true,
- "rep_can_add_calendar": true,
- "rep_can_edit_calendar": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the rep |
| email required | string Email of the rep |
| username | string Username of the rep |
| phone | string Phone number of the rep |
| role required | string Role of the rep |
| team_id | string ID of the team the rep belongs to |
| password required | string Password for the rep account |
| disabled | boolean Whether the rep is disabled |
object Rep permissions | |
object Rep settings | |
object Integration metadata | |
| company_namespace required | Array of strings Company namespaces |
{- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true,
- "rep_can_add_calendar": true,
- "rep_can_edit_calendar": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true,
- "rep_can_add_calendar": true,
- "rep_can_edit_calendar": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the rep |
string Email of the rep | |
| username | string Username of the rep |
| phone | string Phone number of the rep |
| role | string Role of the rep |
| team_id | string ID of the team the rep belongs to |
| password | string Password for the rep account |
| disabled | boolean Whether the rep is disabled |
object Rep permissions | |
object Rep settings | |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the rep |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true,
- "rep_can_add_calendar": true,
- "rep_can_edit_calendar": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "email": "string",
- "username": "string",
- "phone": "string",
- "role": "string",
- "team_id": "string",
- "password": "string",
- "disabled": true,
- "permissions": {
- "rep_can_add_client": true,
- "rep_can_edit_client": true,
- "rep_can_add_calendar": true,
- "rep_can_edit_calendar": true
}, - "settings": {
- "allowable_accuracy": 0
}, - "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering return reasons |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the return reason |
| local_name | string Localized name of the return reason |
| disabled | boolean Whether the return reason is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
{- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the return reason |
| local_name | string Localized name of the return reason |
| disabled | boolean Whether the return reason is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the return reason |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "local_name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering routes |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the route |
| rep_id required | string ID of the assigned rep |
| day required | string Enum: "sat" "sun" "mon" "tue" "wed" "thu" "fri" Day of the week for the route |
Array of objects List of clients on this route | |
| disabled | boolean Whether the route is disabled |
object Integration metadata | |
| company_namespace required | Array of strings Company namespaces |
{- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the route |
| rep_id | string ID of the assigned rep |
| day | string Enum: "sat" "sun" "mon" "tue" "wed" "thu" "fri" Day of the week for the route |
Array of objects List of clients on this route | |
| disabled | boolean Whether the route is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the route |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "rep_id": "string",
- "day": "sat",
- "clients": [
- {
- "client_id": "string",
- "priority": 0
}
], - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering settings |
{- "data": [
- {
- "_id": "string",
- "key": "string",
- "value": "string",
- "category": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}{- "data": {
- "_id": "string",
- "key": "string",
- "value": "string",
- "category": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| key | string |
string or number or boolean or object | |
| category | string |
| description | string |
{- "key": "string",
- "value": "string",
- "category": "string",
- "description": "string"
}{- "data": {
- "_id": "string",
- "key": "string",
- "value": "string",
- "category": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}object Query parameters for filtering settlements |
{- "data": [
- {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoices": [
- {
- "invoice": "string",
- "amount": 0
}
], - "payments": [
- {
- "payment": "string",
- "amount": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "settlementDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| client required | string Client ID associated with the settlement |
| rep | string Representative ID who processed the settlement |
required | Array of objects List of invoices included in settlement |
required | Array of objects List of payments included in settlement |
| notes | string Additional notes |
object Integration metadata |
{- "client": "string",
- "rep": "string",
- "invoices": [
- {
- "invoice": "string",
- "amount": 0
}
], - "payments": [
- {
- "payment": "string",
- "amount": 0
}
], - "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoices": [
- {
- "invoice": "string",
- "amount": 0
}
], - "payments": [
- {
- "payment": "string",
- "amount": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "settlementDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "client": "string",
- "rep": "string",
- "invoices": [
- {
- "invoice": "string",
- "amount": 0
}
], - "payments": [
- {
- "payment": "string",
- "amount": 0
}
], - "totalAmount": 0,
- "status": "pending",
- "settlementDate": "2019-08-24T14:15:22Z",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering storecheck templates |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "id": "string",
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| name required | string Name of the storecheck template |
| description | string Description of the template |
| category | string Category of the storecheck |
required | Array of objects Template sections and questions |
| targets | Array of strings Target entities (clients, routes, etc.) |
| frequency | string Enum: "daily" "weekly" "monthly" "quarterly" "yearly" "custom" Frequency of storecheck execution |
| validFrom | string <date-time> Start date of template validity |
| validTo | string <date-time> End date of template validity |
object Integration metadata |
{- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "id": "string",
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "id": "string",
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the storecheck template |
| description | string Description of the template |
| category | string Category of the storecheck |
Array of objects Template sections and questions | |
| targets | Array of strings Target entities (clients, routes, etc.) |
| frequency | string Enum: "daily" "weekly" "monthly" "quarterly" "yearly" "custom" Frequency of storecheck execution |
| validFrom | string <date-time> Start date of template validity |
| validTo | string <date-time> End date of template validity |
| disabled | boolean Whether the template is disabled |
object Integration metadata |
{- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "id": "string",
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "disabled": true,
- "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "id": "string",
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "description": "string",
- "category": "string",
- "sections": [
- {
- "title": "string",
- "questions": [
- {
- "id": "string",
- "text": "string",
- "type": "text",
- "required": true,
- "options": [
- "string"
]
}
]
}
], - "targets": [
- "string"
], - "frequency": "daily",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering subcategories |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the subcategory |
| parent_id required | string ID of the parent category |
| local_name | string Localized name of the subcategory |
| disabled | boolean Whether the subcategory is disabled |
| photo | string Photo URL of the subcategory |
| position | number Position of the subcategory |
| company_namespace | Array of strings Company namespaces |
object Integration metadata |
{- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "company_namespace": [
- "string"
], - "integration_meta": { }
}{- "_id": "string",
- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
object |
{- "_id": "string",
- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the subcategory |
| parent_id | string ID of the parent category |
| local_name | string Localized name of the subcategory |
| disabled | boolean Whether the subcategory is disabled |
| photo | string Photo URL of the subcategory |
| position | number Position of the subcategory |
| company_namespace | Array of strings Company namespaces |
object Integration metadata | |
| _id | string Unique identifier for the subcategory |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "company_namespace": [
- "string"
], - "integration_meta": { },
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "parent_id": "string",
- "local_name": "string",
- "disabled": true,
- "photo": "string",
- "position": 0,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering suppliers |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "email": "user@example.com",
- "phone": "string",
- "address": { },
- "integration_meta": { },
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| name | string |
string <email> | |
| phone | string |
| address | object |
| integration_meta | object |
| disabled | boolean |
{- "name": "string",
- "email": "user@example.com",
- "phone": "string",
- "address": { },
- "integration_meta": { },
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "email": "user@example.com",
- "phone": "string",
- "address": { },
- "integration_meta": { },
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "name": "string",
- "email": "user@example.com",
- "phone": "string",
- "address": { },
- "integration_meta": { },
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| name | string |
string <email> | |
| phone | string |
| address | object |
| integration_meta | object |
| disabled | boolean |
{- "name": "string",
- "email": "user@example.com",
- "phone": "string",
- "address": { },
- "integration_meta": { },
- "disabled": true
}{- "data": {
- "_id": "string",
- "name": "string",
- "email": "user@example.com",
- "phone": "string",
- "address": { },
- "integration_meta": { },
- "disabled": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}object Query parameters for filtering tags |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the tag |
| disabled | boolean Whether the tag is disabled |
object Integration metadata | |
| company_namespace required | Array of strings Company namespaces |
{- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the tag |
| disabled | boolean Whether the tag is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the tag |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering taxes |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the tax |
| rate required | number Tax rate |
| type required | string Enum: "inclusive" "additive" "N/A" Type of tax |
| disabled | boolean Whether the tax is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
{- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the tax |
| rate | number Tax rate |
| type | string Enum: "inclusive" "additive" "N/A" Type of tax |
| disabled | boolean Whether the tax is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the tax |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "rate": 0,
- "type": "inclusive",
- "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering teams |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the team |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the team is disabled |
{- "name": "string",
- "company_namespace": [
- "string"
], - "disabled": true
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0,
- "admins": null,
- "reps": null
}| id required | string |
| name | string Name of the team |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the team is disabled |
| _id | string Unique identifier for the team |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "company_namespace": [
- "string"
], - "disabled": true,
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "disabled": true,
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}object Query parameters for filtering transfers |
{- "data": [
- {
- "_id": "string",
- "transferNumber": "string",
- "fromWarehouse": "string",
- "toWarehouse": "string",
- "rep": "string",
- "transferDate": "2019-08-24T14:15:22Z",
- "expectedDate": "2019-08-24T14:15:22Z",
- "completedDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "requestedQuantity": 0,
- "sentQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "totalValue": 0,
- "reason": "string",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0
}| fromWarehouse required | string Source warehouse ID |
| toWarehouse required | string Destination warehouse ID |
| rep | string Representative ID who initiated the transfer |
| expectedDate | string <date-time> Expected delivery date |
required | Array of objects List of items being transferred |
| reason | string Reason for the transfer |
| notes | string Additional notes |
object Integration metadata |
{- "fromWarehouse": "string",
- "toWarehouse": "string",
- "rep": "string",
- "expectedDate": "2019-08-24T14:15:22Z",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "requestedQuantity": 0,
- "unitCost": 0
}
], - "reason": "string",
- "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "transferNumber": "string",
- "fromWarehouse": "string",
- "toWarehouse": "string",
- "rep": "string",
- "transferDate": "2019-08-24T14:15:22Z",
- "expectedDate": "2019-08-24T14:15:22Z",
- "completedDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "requestedQuantity": 0,
- "sentQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "totalValue": 0,
- "reason": "string",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "transferNumber": "string",
- "fromWarehouse": "string",
- "toWarehouse": "string",
- "rep": "string",
- "transferDate": "2019-08-24T14:15:22Z",
- "expectedDate": "2019-08-24T14:15:22Z",
- "completedDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "requestedQuantity": 0,
- "sentQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "totalValue": 0,
- "reason": "string",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| expectedDate | string <date-time> Expected delivery date |
| status | string Enum: "pending" "in_transit" "completed" "cancelled" Status of the transfer |
Array of objects List of items being transferred | |
| notes | string Additional notes |
object Integration metadata |
{- "expectedDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "requestedQuantity": 0,
- "sentQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "notes": "string",
- "integration_meta": { }
}{- "_id": "string",
- "transferNumber": "string",
- "fromWarehouse": "string",
- "toWarehouse": "string",
- "rep": "string",
- "transferDate": "2019-08-24T14:15:22Z",
- "expectedDate": "2019-08-24T14:15:22Z",
- "completedDate": "2019-08-24T14:15:22Z",
- "status": "pending",
- "items": [
- {
- "product": "string",
- "variant": "string",
- "requestedQuantity": 0,
- "sentQuantity": 0,
- "receivedQuantity": 0,
- "unitCost": 0
}
], - "totalValue": 0,
- "reason": "string",
- "notes": "string",
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering variants |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the variant |
| product required | string ID of the product this variant belongs to |
| price required | number Price of the variant |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the variant is disabled |
| uuid | string UUID for the variant |
| local_name | string Localized name of the variant |
| sku | string Stock keeping unit |
| barcode | string Barcode of the variant |
| weight | number Weight of the variant |
| length | number Length of the variant |
| width | number Width of the variant |
| height | number Height of the variant |
| position | number Position of the variant |
| default | boolean Whether this is the default variant |
| variant_img | string Image URL for the variant |
| modifiers_groups | Array of strings Modifier groups for the variant |
object Integration metadata |
{- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { }
}{- "$ref": null
}{- "_id": "string",
- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the variant |
| product | string ID of the product this variant belongs to |
| price | number Price of the variant |
| company_namespace | Array of strings Company namespaces |
| disabled | boolean Whether the variant is disabled |
| uuid | string UUID for the variant |
| local_name | string Localized name of the variant |
| sku | string Stock keeping unit |
| barcode | string Barcode of the variant |
| weight | number Weight of the variant |
| length | number Length of the variant |
| width | number Width of the variant |
| height | number Height of the variant |
| position | number Position of the variant |
| default | boolean Whether this is the default variant |
| variant_img | string Image URL for the variant |
| modifiers_groups | Array of strings Modifier groups for the variant |
object Integration metadata | |
| _id | string Unique identifier for the variant |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { },
- "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "product": "string",
- "price": 0,
- "company_namespace": [
- "string"
], - "disabled": true,
- "uuid": "string",
- "local_name": "string",
- "sku": "string",
- "barcode": "string",
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "position": 0,
- "default": true,
- "variant_img": "string",
- "modifiers_groups": [
- "string"
], - "integration_meta": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering visits |
{- "data": [
- {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "plannedDate": "2019-08-24T14:15:22Z",
- "actualDate": "2019-08-24T14:15:22Z",
- "status": "planned",
- "notes": "string",
- "location": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| client | string |
| rep | string |
| plannedDate | string <date-time> |
| actualDate | string <date-time> |
| status | string Enum: "planned" "completed" "cancelled" |
| notes | string |
| location | object |
{- "client": "string",
- "rep": "string",
- "plannedDate": "2019-08-24T14:15:22Z",
- "actualDate": "2019-08-24T14:15:22Z",
- "status": "planned",
- "notes": "string",
- "location": { }
}{- "data": {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "plannedDate": "2019-08-24T14:15:22Z",
- "actualDate": "2019-08-24T14:15:22Z",
- "status": "planned",
- "notes": "string",
- "location": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "plannedDate": "2019-08-24T14:15:22Z",
- "actualDate": "2019-08-24T14:15:22Z",
- "status": "planned",
- "notes": "string",
- "location": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| client | string |
| rep | string |
| plannedDate | string <date-time> |
| actualDate | string <date-time> |
| status | string Enum: "planned" "completed" "cancelled" |
| notes | string |
| location | object |
{- "client": "string",
- "rep": "string",
- "plannedDate": "2019-08-24T14:15:22Z",
- "actualDate": "2019-08-24T14:15:22Z",
- "status": "planned",
- "notes": "string",
- "location": { }
}{- "data": {
- "_id": "string",
- "client": "string",
- "rep": "string",
- "plannedDate": "2019-08-24T14:15:22Z",
- "actualDate": "2019-08-24T14:15:22Z",
- "status": "planned",
- "notes": "string",
- "location": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}object Query parameters for filtering warehouses |
{- "data": [
- {
- "_id": "string",
- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}
], - "total_result": 0,
- "current_count": 0,
- "total_pages": 0,
- "current_page": 0,
- "per_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "path": "string"
}| name required | string Name of the warehouse |
object Geographic location of the warehouse | |
| disabled | boolean Whether the warehouse is disabled |
object Integration metadata | |
| company_namespace required | Array of strings Company namespaces |
{- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
]
}{- "_id": "string",
- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| id required | string |
| name | string Name of the warehouse |
object Geographic location of the warehouse | |
| disabled | boolean Whether the warehouse is disabled |
object Integration metadata | |
| company_namespace | Array of strings Company namespaces |
| _id | string Unique identifier for the warehouse |
| createdAt | string <date-time> Creation timestamp |
| updatedAt | string <date-time> Last update timestamp |
| __v | number Version number |
{- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "_id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}{- "_id": "string",
- "name": "string",
- "location": {
- "type": "Point",
- "coordinates": [
- 0
]
}, - "disabled": true,
- "integration_meta": { },
- "company_namespace": [
- "string"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "__v": 0
}| params | object Query parameters for filtering workorder requests |
{- "data": [
- {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "requestedBy": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| title | string |
| description | string |
| priority | string Enum: "low" "medium" "high" "urgent" |
| requestedBy | string |
| client | string |
| asset | string |
| category | string |
{- "title": "string",
- "description": "string",
- "priority": "low",
- "requestedBy": "string",
- "client": "string",
- "asset": "string",
- "category": "string"
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "requestedBy": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "requestedBy": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| title | string |
| description | string |
| priority | string Enum: "low" "medium" "high" "urgent" |
| requestedBy | string |
| client | string |
| asset | string |
| category | string |
| status | string |
{- "title": "string",
- "description": "string",
- "priority": "low",
- "requestedBy": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "status": "string"
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "requestedBy": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "status": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| params | object Query parameters for filtering workorders |
{- "data": [
- {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "status": "string",
- "assignedTo": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "meta": { }
}| title | string |
| description | string |
| priority | string Enum: "low" "medium" "high" "urgent" |
| status | string |
| assignedTo | string |
| client | string |
| asset | string |
| category | string |
| dueDate | string <date-time> |
{- "title": "string",
- "description": "string",
- "priority": "low",
- "status": "string",
- "assignedTo": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "dueDate": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "status": "string",
- "assignedTo": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "status": "string",
- "assignedTo": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}| id required | string |
| title | string |
| description | string |
| priority | string Enum: "low" "medium" "high" "urgent" |
| status | string |
| assignedTo | string |
| client | string |
| asset | string |
| category | string |
| dueDate | string <date-time> |
{- "title": "string",
- "description": "string",
- "priority": "low",
- "status": "string",
- "assignedTo": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "dueDate": "2019-08-24T14:15:22Z"
}{- "data": {
- "_id": "string",
- "title": "string",
- "description": "string",
- "priority": "low",
- "status": "string",
- "assignedTo": "string",
- "client": "string",
- "asset": "string",
- "category": "string",
- "dueDate": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}