D
D
Dashunia2019-10-14 10:23:59
API
Dashunia, 2019-10-14 10:23:59

Yandex Money Api What does "Bearer error="invalid_token", error_description="The specified access token isn't found yet." mean?

I am trying to use the Yandex.Money API to use the Yandex wallet to view account information, transfer money, etc.
I can't find information anywhere about the error "Bearer error="invalid_token" , error_description="The specified access token isn't found yet." .Money: https://yandex.ru/dev/money/apps :
- registering an application and getting a client_id
- authorization request with a list of rights, made different combinations, received keys for rights: "account-info operation-history operation-details ", for "account-info operation-history" and just for "account-info" test
- when trying, for example, to get information about the user's account status (account-info rights), an error is returned in the WWW-Authenticate header: Bearer error="invalid_token", error_description="The specified access token isn't found yet.", o which there is nothing in the documentation, support does not answer the question.
I am making a request for information. account status.
As stated in the documentation:

POST /api/account-info HTTP/1.1
Host: money.yandex.ru
Authorization: Bearer 4100*номер токена *Z0123
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

What is sent to me via Insomnia:
POST /api/account-info HTTP/1.1
 Host: money.yandex.ru
 User-Agent: insomnia/7.0.1
 Content-Type: application/x-www-form-urlencoded
 Authorization: Bearer 7512*мой токен*CA9
 Accept: */*
 Content-Length: 0

I send via curl:
POST /api/account-info HTTP/1.1
Host: money.yandex.ru
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 0
Authorization: Bearer Bearer 7512*мой токен*CA9

Error 401 Bearer error="invalid_token", error_description="The specified access token isn't found yet."

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
podde, 2019-10-14
@Dashunia

https://yandex.ru/dev/money/doc/dg/concepts/protoc... There is
about Bearer error and invalid token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question