GetPrinted
[POST] .../v1/pos/cashoperation/getprinted
Returns the cash-in or cash-out receipt HTML. Use new_id from IncomeAdd or OutcomeAdd. Requires an accepted cashier and the corresponding cash-in or cash-out permission. Prints a nondeleted operation of the same register, including after shift closure, without changing it. Errors use HTTP 200 ErrorResult: 1002 invalid ID, 1007 denied access, 1044 unavailable operation/template, 1008 unsupported operation or invalid template.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Cash operation ID returned as new_id by IncomeAdd or OutcomeAdd. |
Request Example
{
"id": 123
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | ChequePrint_ResponseModel | Result object. |
Response Example
{
"ok": true,
"result": {
"print_data": "\u003C!DOCTYPE html\u003E\u003Chtml\u003E\u003Cbody\u003ECash-in #123: 1000.00\u003C/body\u003E\u003C/html\u003E"
}
}