AddSeller

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

Sets the seller for a cheque Use this method to attach a seller to an opened POS cheque by scanning or passing the seller barcode. The request requires uuid and barcode, validates that the barcode is long enough, locks the cheque by uuid and returns row_affected after the seller reference is saved. The persistent layer checks the current request user, requires the cheque to be opened, parses the seller barcode and verifies that the seller exists; invalid barcode, invalid cheque state, missing seller and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
barcode String Required Seller barcode.
uuid String Required Cheque UUID.

Request Example

{
  "barcode": "string",
  "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
  }
}