SetOperatingCash

[POST] .../v1/docorderdelivery/setoperatingcash

Assigns a cash register and starts processing a retail order. Assign an operating cash register to an approved retail order and move it into Processing. The request requires id and operating_cash_id, locks the document by id and the operating cash register must belong to the same stock as the order. The method requires the retail order edit permission, requires the order to be in Approved status, sets operating_cash_id, changes status to Processing, sends the processing status webhook and returns row_affected. Errors such as a missing request body, invalid id or operating_cash_id, denied access, disabled tariff, missing order stock, missing cash-register stock, stock mismatch, invalid current status, missing active row, storage errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Retail order document ID.
operating_cash_id Int64 Required ID of the operating cash where the retail order sale or return will be performed.

Request Example

{
  "id": 1,
  "operating_cash_id": 1
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}