# SYNCHRONN ERP

# New Page

<div drawio-diagram="50"><img src="https://documentation.onindonesia.id/uploads/images/drawio/2024-01/drawing-3-1706000766.png" alt=""/></div>

# Company module blueprint

### Flowchart

<div drawio-diagram="45"><img src="https://documentation.onindonesia.id/uploads/images/drawio/2024-01/drawing-3-1705896270.png" alt=""/></div>

---

### API Specification

#### Company - Module

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td>/module/company/list</td><td> </td><td> </td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Server**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td></tr></tbody></table>

##### Param request

<table border="1" id="bkmrk-properties-propertie" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 34.7245%;"></col><col style="width: 29.676%;"></col><col style="width: 35.5995%;"></col></colgroup><tbody><tr><td>**Properties**  
</td><td>**Required**</td><td>**Description**</td></tr><tr><td>company\_id</td><td>yes</td><td>Company ID in SYNCHRONN</td></tr></tbody></table>

<p class="callout info">Param request can be changed or disabled.</p>

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout success">200 OK</p>

```json
{
    "module_list": [
        {
            "module_id": 1,
            "name": "Transaction",
            "group": null,
            "created_at": "2024-01-18T03:31:52.006Z",
            "updated_at": "2024-01-18T03:31:52.006Z"
        },
        {
            "module_id": 2,
            "name": "HRIS",
            "group": null,
            "created_at": "2024-01-18T03:31:52.006Z",
            "updated_at": "2024-01-18T03:31:52.006Z"
        },
        {
            "module_id": 3,
            "name": "Voucher",
            "group": null,
            "created_at": "2024-01-18T03:31:52.006Z",
            "updated_at": "2024-01-18T03:31:52.006Z"
        }
    ]
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">Body request example</p>

```javascript
insert code here
```

</details>---

#### Company - Pricing

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth-1" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td>/module/company/pricing</td><td>GET</td><td> </td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-type-token-source-se" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Server**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td></tr></tbody></table>

##### Param request

<table border="1" id="bkmrk-properties-required-" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 34.7342%;"></col><col style="width: 29.6663%;"></col><col style="width: 35.5995%;"></col></colgroup><tbody><tr><td>**Properties**  
</td><td>**Required**</td><td>**Description**</td></tr><tr><td>company\_id</td><td>yes</td><td>Company ID in SYNCHRONN</td></tr></tbody></table>

<p class="callout info">Param request can be changed or disabled.</p>

<details id="bkmrk-result-example-200-o"><summary>Result example</summary>

<p class="callout info">200 OK</p>

```json
{
    "total_price": 185000,
    "details": [
        {
            "module_name": "ONDEL BASIC",
            "tier_type": "ESSENTIAL",
            "base_price": 120000
        },
        {
            "module_name": "ONDEL PLUS A",
            "tier_type": "ADDON",
            "base_price": 20000
        },
        {
            "module_name": "ONDEL PLUS B",
            "tier_type": "ADDON",
            "base_price": 45000
        }
    ]
}
```

</details><details id="bkmrk-error-example-body-r-1"><summary>Error example</summary>

<p class="callout danger">Body request example</p>

```javascript
insert code here
```

</details>

# Company features blueprint

### FLOWCHART

<div drawio-diagram="49"><img src="https://documentation.onindonesia.id/uploads/images/drawio/2024-01/drawing-3-1705914589.png" alt=""/></div>


---

### API Specification

#### Company - feature

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td><div><div>/feature/company/list</div></div></td><td>GET</td><td> </td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Server**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td></tr></tbody></table>

##### Param request

<table border="1" id="bkmrk-properties-propertie" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 34.7245%;"></col><col style="width: 29.676%;"></col><col style="width: 35.5995%;"></col></colgroup><tbody><tr><td>**Properties**  
</td><td>**Required**</td><td>**Description**</td></tr><tr><td><div><div>company_id</div></div></td><td> </td><td>  
</td></tr></tbody></table>

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">Body request example</p>

```json
{
    "feature_list": [
        {
            "features_id": 1,
            "module_id": 1,
            "name": "TX-A",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 2,
            "module_id": 1,
            "name": "TX-B",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 3,
            "module_id": 2,
            "name": "HR-A",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 4,
            "module_id": 2,
            "name": "HR-B",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 5,
            "module_id": 3,
            "name": "VO-A",
            "group": null,
            "created_at": "2024-01-18T03:39:58.760Z",
            "updated_at": "2024-01-18T03:39:58.760Z"
        },
        {
            "features_id": 6,
            "module_id": 3,
            "name": "VO-B",
            "group": null,
            "created_at": "2024-01-18T03:39:58.760Z",
            "updated_at": "2024-01-18T03:39:58.760Z"
        }
    ]
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">Body request example</p>

```javascript
insert code here
```

</details>

# User plan blueprint

### FLOWCHART

<div drawio-diagram="57"><img src="https://documentation.onindonesia.id/uploads/images/drawio/2024-01/drawing-3-1706155409.png" alt=""/></div>

---

### API SPECIFICATION

#### User module list

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td>/user/module/list</td><td>GET</td><td> </td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Server**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td></tr></tbody></table>

##### Param request

<table border="1" id="bkmrk-properties-propertie" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 34.7245%;"></col><col style="width: 29.676%;"></col><col style="width: 35.5995%;"></col></colgroup><tbody><tr><td>**Properties**  
</td><td>**Required**</td><td>**Description**</td></tr><tr><td>  
</td><td> </td><td>  
</td></tr></tbody></table>

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">Body request example</p>

```javascript
insert code here
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">Body request example</p>

```javascript
insert code here
```

</details>