What is an affiliation?
An affiliation is a merchant account with a payment provider (like Celcoin) that enables transaction processing. Each affiliation:- Links a merchant to a specific provider
- Defines allowed payment methods (PIX, credit card, etc.)
- Defines allowed capture methods (e-commerce, POS, etc.)
- Stores provider-specific merchant credentials
- Tracks activation status and onboarding progress
Entity relationships
Affiliation lifecycle
The following diagram shows the complete affiliation status flow:1. Creation
When you create an affiliation, it starts with statusPENDING_APPROVAL:
2. Provider approval
The provider reviews the merchant information and either:- Approves: Status changes to
ACTIVE - Requests documents: Status changes to
WAITING_DOCUMENTS - Rejects: Status changes to
REJECTED
3. Activation
Once approved, the affiliation becomesACTIVE and you can:
- Process transactions using this provider
- Receive payments to the affiliated bank account
- Access provider-specific features
Affiliation status
| Status | Description |
|---|---|
PENDING | Initial creation, awaiting submission |
PENDING_APPROVAL | Submitted to provider, awaiting review |
WAITING_DOCUMENTS | Provider requires additional documentation |
PROCESSING_DOCUMENTS | Provider is reviewing submitted documents |
ACTIVE | Approved and ready for transactions |
BLOCKED | Temporarily blocked by provider |
REJECTED | Provider rejected the affiliation |
FAILED | Technical failure during creation |
Payment and capture methods
Payment methods
Specify which payment types the merchant can accept:PIX: Instant payments via Brazil’s PIX systemCREDIT_CARD: Credit card paymentsDEBIT_CARD: Debit card paymentsBOLEPIX: Hybrid boleto + PIX payments
Capture methods
Specify how payments are captured:ECOMMERCE: Online transactionsEMV: Chip card (POS terminal)MAGSTRIPE: Magnetic stripe (POS terminal)CONTACTLESS_ICC: Contactless payments (NFC)
The provider must support your selected payment and capture methods. Check provider capabilities before creating affiliations.
Company snapshot
When an affiliation is created, Rinne captures an immutable point-in-time snapshot of the company data, including contact information. This snapshot preserves the company’s state at the moment of affiliation creation, which is useful for:- Compliance and audit trails
- Historical record keeping
- Tracking changes to company information over time
company_snapshot field contains a complete copy of the company data (excluding sensitive information like API keys and internal configurations) as it existed when the affiliation was created.
The company snapshot is stored automatically but is not included in API responses by default to reduce payload size. Use the
include_company_snapshot=true query parameter to retrieve it when needed.Retrieving company snapshots
To include the company snapshot in affiliation responses, add theinclude_company_snapshot=true query parameter:
company_snapshot field with the preserved company data:
Onboarding documents
During the affiliation onboarding process, payment providers may require specific documents for compliance and KYC (Know Your Customer) verification. These documents are uploaded to secure storage and tracked as part of the affiliation. Each onboarding document includes:- file_type: Type of document (e.g., CNH_FRONT, SELFIE, CONTRATO_SOCIAL)
- file_name: Generated filename in storage
- content_type: MIME type of the document (e.g., application/pdf, image/jpeg)
- file_size_bytes: Size of the file in bytes
- created_at: When the document was uploaded
onboarding_documents array is included in affiliation responses, providing metadata about all uploaded documents. To download a specific document, use the dedicated endpoint which returns a signed download URL that expires after 1 hour.
Multiple affiliations
Merchants can have multiple affiliations with different providers:Bank accounts
When an affiliation is activated, it’s linked to a bank account where funds will be settled. The bank account is created during merchant setup or can be added later. Requirements:- Account holder document must match merchant document
- Account must be active and verified
- Only one primary bank account per merchant
Sandbox testing behavior
When testing affiliations in the sandbox environment, you can control the affiliation flow by using specific phone number patterns for the merchant contact:| Phone ending | Behavior |
|---|---|
| 1 | Complete flow - affiliation will be approved/active after collecting and processing documents |
| 2 | Early rejection - a rejected webhook will arrive before requesting documents |
| 3 | Late rejection - affiliation will be rejected after collecting and processing documents |
Example
This behavior only applies to the sandbox environment and is designed to help you test different affiliation scenarios.

