cancelPayment method
This is an old version of the API. Switch to the YooMoney API.
Description
Cancels a deferred payment.
Request
Address for calling the operation
https://shop.yookassa.ru/webservice/mws/api/cancelPayment
Request parameters
Parameter | Type | Description |
---|---|---|
requestDT | dateTime | Time in the merchant’s system when the request to perform the operation was made. |
orderId | long | Transaction number of the deferred payment, issued by YooMoney in the invoiceId parameter. |
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:
|
Request example
requestDT=2011-07-02T20:38:00.000Z&orderId=12345
Response
The response contains parameters that are shared for all types of financial transaction request.
Example of the response
XML
<cancelPaymentResponse orderId="12345" status="0" error="0" processedDT="2011-07-02T20:38:01.000Z" />
See also