API documentation
Method list
Test your request
Changelog


setOrderReceipt
The method allows you to mark orders with a receipt already issued.


Input parameters
receipt_idintReceipt_id number received in the getNewReceipts method
receipt_nrvarchar(20)The number of the issued receipt (may be blank if the printer does not return the number)
dateintReceipt printing date (unixtime format)
printer_errorboolFlag indicating whether an error occurred during receipt printing (false by default)



Output data
The method returns the data in JSON format.
statusvarchar(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: