setOrderPayment
The method allows you to add a payment to the order.
Input parameters
Output data:
A sample request in PHP:
order_id | int | Order ID number |
payment_done | float | The 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_date | int | Payment date unixtime. |
payment_comment | varchar(30) | Payments commentary. |
external_payment_id | varchar(30) | (optional) External payment identifier |
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: