setOrderReceipt
The method allows you to mark orders with a receipt already issued.
Input parameters
Output data:
A sample request in PHP:
receipt_id | int | Receipt_id number received in the getNewReceipts method |
receipt_nr | varchar(20) | The number of the issued receipt (may be blank if the printer does not return the number) |
date | int | Receipt printing date (unixtime format) |
printer_error | bool | Flag indicating whether an error occurred during receipt printing (false by default) |
printer_name | varchar(50) | (optional) Printer name |
Output data
The method returns the data in JSON format.
status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
Sample
Input data:Output data:
A sample request in PHP: