Partner API
The Partner API is intended for partners such as platforms, ISVs, PSPs, and acquirers that need to integrate once and process transactions for many downstream merchants.
Positioning
A partner integrates with ADOPAY using its own API credentials (primary merchant ID) and manages its downstream merchants as sub-merchants:
- The
X-Merchant-Idrequest header carries the primary merchant ID, i.e. the partner credential. - The
subMerchantNorequest field identifies the sub-merchant that owns the operation; its exact location is defined by each endpoint, and webhook events also carry it so notifications can be routed to the right merchant. - Sub-merchant onboarding inherits the primary merchant’s integration model. Omit
accessModein all three onboarding calls. Where another endpoint requiresaccessMode, it declares the integration model:normal(standard merchant),saas_isv(SaaS / ISV),acquirer(acquirer),platform(platform service provider).
Relationship to the Merchant API
The Partner API shares the same transaction core as the Direct Merchant API: cashin, refund, and cashout keep identical field and capability models. The differences:
| Difference | Merchant API | Partner API |
|---|---|---|
| Credential owner | The merchant itself | The partner (primary merchant ID) |
| Transaction owner | The merchant | Sub-merchant (subMerchantNo) |
| Integration-mode parameter | - | Omit for sub-merchant onboarding; see individual endpoints for other operations |
Integration Flow
Sign the commercial agreement; obtain the partner credentials (primary merchant ID / keys)
↓
Confirm accessMode and how sub-merchant numbers (subMerchantNo) are assigned
↓
Adopt the Common specs (authentication / signing / webhooks)
↓
Integrate by capability: Account -> cashin -> refund -> cashout -> MEDFor the shared specs (authentication, request signing, response structure, idempotency, and webhook rules), see Common.
API Directory
Account
Merchant
- Create a sub-merchant onboarding record and submit its profile
- Upload onboarding file
- Confirm submission
Onboarding
Registers customers (individuals PF / companies PJ) for account opening: liveness verification, registration data and file submission, and outcome queries; after the account is active, registration updates. Onboarding uses the requisition ID onboardingId returned at creation and a single state field, with no authentication headers; registration updates use the account holder's Bearer token — see status for the state and blocked for whether payouts are blocked. States are obtained through the query endpoints (no webhook notifications currently).
- Onboarding API Overview
- Create Onboarding Requisition
- Get Onboarding Requisition Status
- Submit Onboarding Form
- Retry Liveness Verification
- Get Registration Update Status
- Start Registration Update
Cashin
- Create payment / QR code (create a PIX QR code)
- Decode PIX payment QR code
- Query payment order (merchant order number / e2eId)
- Create refund
- Query refund detail
Cashout
PixKey Management
Merchants and partners share the same set of PixKey APIs.
- Pix Key registration
- Send verification code (mobile / email)
- Pix Key list query
- Pix Key details query
- Pix Key modification
- Pix Key deletion (unbind)
Pix Subscription
Collect recurring payments (Pix Automático) on behalf of downstream sub-merchants: sign-up, scheduled debits, query and cancellation, and refunds after a successful debit.
- Pix Subscription overview
- Create composite QR code
- Create authorization request
- Get authorization details
- List authorizations
- Cancel authorization
- Create debit order
- Get debit order details
- List debit orders
- Cancel debit order
- Create refund
- Get refund details
- Pix Automático Webhook
Reconciliation Files
MED API (special refund mechanism)
Handle Brazilian Central Bank MED fraud disputes on behalf of your sub-merchants: query, analyze, and process infraction reports.
- MED overview
- Query MED list
- Query MED details
- Get evidence requirements
- Upload evidence file
- Submit analysis
Webhooks
- Payment webhook
- Refund webhook
- PIX Out webhook
- PIX Out refund webhook
- Sub-merchant creation webhook
- MED webhook
Planned Capabilities
The following capabilities have no published specification yet; do not integrate against them until they are officially released:
- Partner limit queries
- Merchant management (online)
- Settlement and settlement reports