Parameters for generating a receipt
To generate a receipt you need to specify additional parameters in the request to create a payment:
It is sufficient to pass cashItems to generate a refund receipt. CustomerEmail or customerPhone are not required
The paymentMethod parameter is optional and can also be set in the checkout settings in the Unitpay personal account. In this case, the priority of the choice will be as follows:
Data from the cashItems request to create a payment
Data from the checkout settings
If items 1 and 2 are not specified, then by default - full_payment
The cashItems parameter is formed from:
When selling labeled goods from March 1, 2020, the labeling attribute: markCode must be displayed. Additional parameters must be transmitted when generating a receipt for marked goods:
Important:
The order amount (sum) must be greater than or equal to price*count (from cashItems).
If the amount of the order is more, then the receipt will add an additional title "Adjustment of total".
If the amount of the order is less than price*count, then when you go to pay by generated link / when initiating such request to API, the response from the server will look like this:
"Amount of items is more than the cost of the order".
Last updated