V
V
Vladimir Rozhkov2017-03-21 04:23:02
YuMoney
Vladimir Rozhkov, 2017-03-21 04:23:02

How to process the status code "1" of the operation to withdraw money from Yandex.Money to a card?

We implemented in our service the withdrawal of money to mobile accounts, other Yandex wallets and cards using the Yandex Money API (we credit the user with money in the way he indicates, i.e. all transactions come from our account).
There are no problems with the first two, but sometimes the output does not work with cards - and it is not an error that is returned, but the code "1" which, according to the documentation, means -

The request is being processed. Returned if the timeout has elapsed while waiting for the request to complete processing. You need to repeat the query to refine the result.

At the same time, how to repeat this same request and where to repeat it is not described. How to handle such cases? Regularities could not be determined.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Rozhkov, 2017-03-21
@r0zh0k

Doc did not read carefully. Excerpt

The operator processes the received request immediately. If the request cannot be processed within a few seconds, the response "in process" (status=1) is returned. In this case, the result of the operation is unknown, and the IC should repeat the request with the same data to get the final answer. The following repeat mode is recommended: the first repeat after 1 minute, the next three with an interval of 5 minutes, then no more than once every 30 minutes. A similar retry mode is recommended in case of not receiving a response from the Operator or receiving an HTTP status 500 response.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question