[POST] .../v1/useroperatingcash/set
Assigns an operating cash register to a user. Use this method to give a user access to an operating cash register before the user works with POS sessions or cash register selection. It creates one user-to-cash-register assignment and returns new_id after validating positive user_id and operating_cash_id; only virtual operating cash registers can be assigned. The caller must have user operating cash set permission; missing body, invalid ids, denied access, duplicate assignment rules, stock-access restrictions, non-virtual cash register restrictions, missing related records and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| operating_cash_id | Int64 | Required | Operating cash register ID. The referenced cash register must be virtual. |
| user_id | Int64 | Required | User ID. |
Request Example
{
"user_id": 17,
"operating_cash_id": 12
}
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": 23
}
}