Partner API is a separate Robokassa surface for integrators (CPA networks,
SaaS platforms onboarding shops, payout aggregators). It sits at
https://services.robokassa.ru/PartnerRegisterService/api/ and uses
partner-level credentials distinct from the merchant Password#1/2/3.
Official docs: https://docs.robokassa.ru/partner-api/
| Method | Path | Module |
|---|---|---|
| RefundOperation | POST /Operation/RefundOperation |
robokassa.partner.partner_refund |
From https://docs.robokassa.ru/partner-api/ :
Набор программных интерфейсов для взаимодействия Партнёра или Клиента сервиса ROBOKASSA с основным функционалом Личного кабинета Клиента.
Features enumerated:
- Мгновенная подача заявки на регистрацию Личного кабинета — register a new merchant client (legal entity / individual entrepreneur, RU / KZ).
- Автоматическое создание преднастроенного магазина в кабинете клиента — provision a shop under the new client.
- Автоматическое подключение фискализации — enable 54-ФЗ fiscalization.
- Удалённое управление расчётными счетами Клиента — manage bank accounts.
- Автоматическое формирование заявок на вывод денежных средств — payouts.
- Автоматическое формирование заявок на проведение возвратов — refunds
(implemented as
partner_refund).
From https://docs.robokassa.ru/partner-api/ParametersDescription/ :
- Request bodies are JSON.
- Client registration uses a detailed schema covering:
PartnerId,CompanyName,ShortCompanyName,Email,ContactPerson,ContactPersonGenitif,SiteUrl,OkvedCodes,Phone,INN,KPP(ЮЛ only),OGRN,Account,BIK,ShopName,ShopUrl,ShopResultURL,ShopSuccessUrl,ShopFailUrl,SignerName,SignerPosition,SignerConfirmDoc*,SignerDocumentType,EgrRecordDate,PromoCode,RegAuthority,RegAuthorityAddress, nestedLegalInfo(director), nestedBeneficials, address blocks (Address,AddressReal),Individinfo(ИП only),OgrnCertificate,Passport,RegistrationAddress,Contacts(General / Financial / Technical).
The specific HTTP paths for the other six feature groups are not listed on
the public MethodDescription/ index (the URLs 404 when crawled via Exa in
April 2026). Likely endpoints inferred from the service purpose:
POST /Client/Register— merchant registrationPOST /Shop/Create— provision a preconfigured shopPOST /Shop/EnableFiscalization— turn on 54-ФЗPOST /Account/Manage— add / remove bank accountsPOST /Payout/Create— withdraw funds to a client account
These are placeholders — do not assume the exact paths without verifying against authoritative docs or network traces. Partners who have access to Robokassa's full Partner API documentation (typically available after signing a partner agreement) are best positioned to contribute these.
If you hold partner credentials and want to add the remaining surface:
- Capture a known-good request/response pair (e.g. via proxy).
- Add a new function in
robokassa/partner.pyfollowing the pattern ofpartner_refund: typed dataclass for the response,async deffor the call, passauth_headersas a parameter. - Expose as an
@mcp.tool()inrobokassa_mcp/server.pyso agents can drive it. - Add unit tests in
tests/test_partner_*.pyusinghttpx.MockTransport.
Partner API auth is documented vaguely ("JWT-requests with parameters, signed
with a digital signature"). In practice, exact mechanics depend on the
partner agreement. The module exposes auth_headers as a dict — callers
build it per their setup (common patterns: Authorization: Bearer <jwt>,
signed timestamps, or IP-filtering with no auth header).