[POST] .../v1/docorderdelivery/setfiscalinfo
Adds fiscal data to a retail order. Use this method to store fiscal cheque information for a retail order after fiscalization. The request requires id and qrcodeurl, locks the document by id and writes the fiscal QR-code URL that prevents the order from being fiscalized again. The method requires the retail order edit permission, updates the fiscal field, writes the action log, sends the fiscal-info-set webhook and returns row_affected. Business errors such as a missing request body, invalid id, missing or too-long qrcodeurl, denied access, invalid document state, missing active row, database errors or persistence failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Retail order document ID. |
| qrcodeurl | String | Required | Fiscal cheque link printed in the cheque QR code. |
Request Example
{
"id": 1,
"qrcodeurl": "string"
}
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
}
}