CRM API
CRM Status
Standard REST API endpoints:
GET /api/v1/manager-core/crm-status
POST /api/v1/manager-core/crm-status
PUT /api/v1/manager-core/crm-status/{id}
DELETE /api/v1/manager-core/crm-status/{id}
CRM Categories
Get Categories
GET /api/v1/manager-core/crm/categories
Store Category
POST /api/v1/manager-core/crm/categories
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| name | string | Yes | max:255 |
| slug | string | Yes | max:255, unique |
| icon | string | No | max:255 |
| type | integer | Yes | integer (CRM type enum) |
CRM Items
List Items
GET /api/v1/manager-core/crm/{categorySlug}
Parameters:
categorySlug(path) - Category slug (e.g., partners, suppliers)
Query Parameters:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| q | string | No | Search query |
| order | object | No | Sorting (row, desc) |
| filter | object | No | Filter object |
Create Item
POST /api/v1/manager-core/crm/{categorySlug}
Uses CrmItemStoreRequest form request.
Parameters:
categorySlug(path) - Category slug
Update Item Type
POST /api/v1/manager-core/crm/{type}/add-from-other
Move item from one category to another.
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| id | integer | Yes | CRM item ID |
Update Item
PUT /api/v1/manager-core/crm/{type}/{id}
Parameters:
type(path) - Category typeid(path) - Item ID (can be comma-separated for batch)
Request Body: Dynamic fields based on CRM configuration
Delete Item
DELETE /api/v1/manager-core/crm/{categorySlug}
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| rows | integer/array | Yes | Item ID(s) to delete |
CRM Search
Search Items
POST /api/v1/manager-core/crm/{type}/search
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| q | string | No | min:3 |
| products | array | No | array, min:1 |
Parameters:
type(path) - Category type
Items with Prices
GET /api/v1/manager-core/crm/{type}/has-price
Get items that have associated product prices.
Parameters:
type(path) - Category type
Items with Income
GET /api/v1/manager-core/crm/{type}/has-income
Get items that have income records.
Parameters:
type(path) - Category type
CRM Inventory
Get Inventory
GET /api/v1/manager-core/crm/{categorySlug}/inventory/{id}
Parameters:
categorySlug(path) - Category slugid(path) - CRM item ID
Edit Inventory
POST /api/v1/manager-core/crm/{categorySlug}/inventory/edit/{id}
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| product_quantity | mixed | Yes | - |
CRM Contacts
Add Contact
POST /api/v1/manager-core/crm/{categorySlug}/{id}/contact
Parameters:
categorySlug(path) - Category slugid(path) - CRM item ID
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| name | string | No | Contact name |
| string | No | Contact email | |
| phone | string | No | Contact phone |
| first_name | string | No | First name |
| last_name | string | No | Last name |
| skype | string | No | Skype |
| string | No | ||
| string | No | ||
| tiktok | string | No | TikTok |
Edit Contact
POST /api/v1/manager-core/crm/{categorySlug}/contact/{id}
Parameters:
categorySlug(path) - Category slugid(path) - Contact ID
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| name | string | No | Contact name |
| string | No | Contact email | |
| phone | string | No | Contact phone |
| first_name | string | No | First name |
| last_name | string | No | Last name |
| skype | string | No | Skype |
| string | No | ||
| string | No | ||
| tiktok | string | No | TikTok |
| default | boolean | No | Set as default contact |
CRM Export
GET /api/v1/manager-core/crm/{type}/export/{exportType}
Parameters:
type(path) - Category typeexportType(path) - Export format: xlsx, xls, ods, pdf, csv
CRM Custom Fields
GET /api/v1/manager-core/crm-custom-field-values
POST /api/v1/manager-core/crm-custom-field-values
PUT /api/v1/manager-core/crm-custom-field-values/{id}
DELETE /api/v1/manager-core/crm-custom-field-values/{id}
Partner Catalogs
Check Catalog Format
POST /api/v1/manager-core/crm/partners/catalogs/check
Check if a catalog file format is valid.
Parameters:
file(body) - Catalog file
List Catalogs
GET /api/v1/manager-core/crm/partners.catalogs
Create Catalog
POST /api/v1/manager-core/crm/partners.catalogs
Request Body:
| Parameter | Type | Required | Validation |
|---|---|---|---|
| partner_id | integer | Yes | Partner CRM ID |
| name | string | Yes | Catalog name |
| file | file | Yes | Catalog file |
Get Catalog
GET /api/v1/manager-core/crm/partners.catalogs/{id}
Update Catalog
PUT /api/v1/manager-core/crm/partners.catalogs/{id}
Delete Catalog
DELETE /api/v1/manager-core/crm/partners.catalogs/{id}
List Catalog Products
GET /api/v1/manager-core/crm/catalogs.products
Create Catalog Product
POST /api/v1/manager-core/crm/catalogs.products
Update Catalog Product
PUT /api/v1/manager-core/crm/catalogs.products/{id}
Delete Catalog Product
DELETE /api/v1/manager-core/crm/catalogs.products/{id}