API documentation
Method list
Test your request
Changelog


setOrderPayment
The method allows you to add a payment to the order.


Input parameters
order_idintOrder ID number
payment_donefloatThe amount of the payment. The value changes the current payment in the order (not added to the previous value). If the amount matches the order value, the order will be marked as paid.
payment_dateintPayment date unixtime.
payment_commentvarchar(30)Payments commentary.
external_payment_idvarchar(30)(optional) External payment identifier



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: