Add

[POST] .../v1/pos/chequepaymentoperation/add

Adds a payment operation to a POS cheque. Use this method to add a payment line to a POS cheque that is already in Paying status. The request requires document_uuid, type_id and value greater than zero, locks the cheque by document_uuid and returns new_uuid for the created payment operation. The method checks the current request user and accepted cashier context, validates the payment type, cheque balance, cash change rules, debt-book and bonus-payment rules and payment-system data when required; missing fields, invalid payment type, fully paid cheque, denied payment form and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
data String Optional Payment system data.
document_uuid String Required Cash register cheque UUID.
type_id Int64 Required Payment method ID.
value Decimal Required Payment amount.

Request Example

{
  "data": "string",
  "document_uuid": "00000000-0000-0000-0000-000000000000",
  "type_id": 1,
  "value": 1.0
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Insert_uuid Created UUID record result.

Response Example

{
  "ok": true,
  "result": {
    "new_uuid": "00000000-0000-0000-0000-000000000000"
  }
}