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 paymentsBOLETO: Bank slip paymentsMONEY: Cash 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.
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.

