API /sandbox/v2/invoice/v1.0/bills
Взял пример запроса на python из https://developers.tochka.com/docs/tochka-api/api/create-invoice-invoice-api-version-bills-post sandbox
но всегда получаю {"code":"403","id":"db8f7cf2-5653-4442-930d-4b07906a2a6c","message":"Что-то пошло не так","Errors":[{"errorCode":"Something going wrong","message":"Forbidden by consent","url":"https://developers.tochka.com/"}]}
Что может быть не так?
Чтобы узнать свой customerCode, нужно вызвать метод Get Customers List (https://developers.tochka.com/docs/tochka-api/api/get-customers-list-open-banking-api-version-customers-get)
Параметр customerCode необходимо брать из поля customerType: "Business".
Спасибо! Получили список из API, взяли customerCode по customerType: "Business", но теперь пишет {"code":"424","id":"c5723617-8b12-4f77-a698-fd93d6fa2af4","message":"Что-то пошло не так","Errors":[{"errorCode":"Something going wrong","message":"Retailer not found","url":"https://developers.tochka.com/"}]} 😬
Токен используем один. С чем это может быть связано?