API documentation
Method list
Test your request
Changelog


addReceipt
The method allows you to issue a receipt for an order.


Input parameters
order_idintOrder identifier
series_idint(optional) Receipt numbering series identifier. If not provided, the default receipt series will be used.



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
receipt_idintID of the created receipt



Sample
Input data:
Output data:
A sample request in PHP: