[POST] .../v1/cashserver/add
Creates a new cash server. Use this method to register a cash server before it can participate in POS synchronization workflows. It creates one cash server and returns new_id after validating name up to 150 characters, positive firm_id and explicit active state. The caller must have cash server add permission; missing body, invalid required fields, denied access, duplicate or storage validation failures and persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| active | Boolean | Required | Cash server active flag. |
| firm_id | Int64 | Required | ID of the company that the cash server belongs to. |
| name | String | Required | Cash server name. |
Request Example
{
"active": true,
"firm_id": 1,
"name": "string"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Insert | Created record result. |
Response Example
{
"ok": true,
"result": {
"new_id": 1
}
}