YooMoney API
Old versions of the API
Help
Sign up for YooMoney
confirmPayment method
 
Description
Complete a successful transfer to the merchant’s account. Used for deferred payments.
Specifics
  • If a store has deferred payments set up in YooMoney, all payments to this store will be deferred. This means they are performed in two steps: first money is reserved on the payer’s bank card, then it is debited from the card.
  • The amount specified in the request to confirm a deferred payment may be less than the reserved amount. In this case, the amount remaining is automatically refunded to the Payer’s bank card.
  • If the confirmation period has expired for a deferred payment, the response will contain an error, even if the request parameters are correct. The confirmation period is defined by the bank that is processing the operation. Each bank sets this time individually.
Request
Address for calling the operation
https://shop.yookassa.ru/webservice/mws/api/confirmPayment
Request parameters
ParameterTypeDescription
requestDTdateTimeTime in the merchant’s system when the request to perform the operation was made.
orderIdlongTransaction number of the deferred payment, issued by YooMoney in the invoiceId parameter.
amountCurrencyAmountAmount to transfer.
currencystring,
3 characters
3-letter currency code for the transfer. Specified in accordance with ISO 4217:2008.
ym_merchant_receipt
string
Data for creating the receipt in the JSON format (as in payment form).
The parameter is transmitted and deemed mandatory in the following cases:
  • you set up interaction with your online sales register via YooMoney and transmit details for creating the receipt in the payment form;
  • transfer amount (amount) differs from the initial amount transmitted in payment form (partial clearing is carried out).
Request example
requestDT=2011-07-02T20:38:00.000Z&orderId=12345&amount=10.00&currency=RUB
Response
The response contains parameters that are shared for all types of financial transaction request.
Example of the response
XML
<confirmPaymentResponse
         orderId="12345"
         status="0" error="0"
         processedDT="2011-07-02T20:38:01.000Z"
         />
See also
Scenario for deferred payments Rules for processing requests Error codes Data types