SetDocOrderDelivery

[POST] .../v1/pos/doccheque/setdocorderdelivery

Adds retail order document to cash register cheque. Use this method to link a delivery order document to a POS cheque when an order is being processed through the cash register. The request requires uuid and doc_order_delivery_id, locks the cheque by uuid, checks the current request user, requires delivery order access permission and returns row_affected after the link is saved. The method expects an accepted cash register and a cheque that can accept order content; missing fields, denied permission, order not found, non-empty cheque conflicts, invalid cheque state and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
doc_order_delivery_id Int64 Required Order document ID.
uuid String Required Cash register cheque UUID.

Request Example

{
  "doc_order_delivery_id": 1,
  "uuid": "00000000-0000-0000-0000-000000000000"
}

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
  }
}