Creates a new affiliation for the authenticated company. The company_id is automatically set from the authenticated client. Requires the affiliation.create permission.
Company API key for authentication
Schema for creating a new affiliation
Payment provider name (accepts lowercase and uppercase, returns uppercase)
CELCOIN, RINNE "CELCOIN"
Allowed capture methods (at least one required)
1EMV, MAGSTRIPE, ECOMMERCE, CONTACTLESS_ICC ["EMV", "CONTACTLESS_ICC", "ECOMMERCE"]Allowed payment methods (at least one required)
1CREDIT_CARD, DEBIT_CARD, PIX, BOLEPIX ["CREDIT_CARD", "DEBIT_CARD", "PIX"]External bank account for fund settlements. Required for RINNE provider, not required for CELCOIN (managed internally). The account_holder_document_number must match the company document_number.
Prepayment type for the affiliation. Defaults to AUTOMATIC if not provided.
AUTOMATIC, SPOT "AUTOMATIC"
Number of days for prepayment. Must be at least 1. Defaults to 1 if not provided.
x >= 11
Affiliation created successfully
Transformed affiliation data returned by the API
"123e4567-e89b-12d3-a456-426614174002"
Payment provider name
CELCOIN, RINNE "CELCOIN"
Merchant ID in provider
"12345678"
Current affiliation status
PENDING, ACTIVE, PROCESSING, BLOCKED, PENDING_APPROVAL, WAITING_DOCUMENTS, PROCESSING_DOCUMENTS, REJECTED, FAILED "ACTIVE"
Whether the affiliation is enabled
true
Associated company ID
"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"
Allowed capture methods
EMV, MAGSTRIPE, ECOMMERCE, CONTACTLESS_ICC ["ECOMMERCE"]Allowed payment methods
CREDIT_CARD, DEBIT_CARD, PIX, BOLEPIX ["PIX"]Associated organization ID
"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"
List of onboarding documents associated with this affiliation
Creation timestamp in ISO 8601 format
"2023-01-01T12:00:00.000Z"
Last update timestamp in ISO 8601 format
"2023-01-01T12:00:00.000Z"
ID in provider system
"prov_123456"
Soft descriptor for transactions
"MYSTORE"
Merchant Category Code
"5411"
Associated cost policy ID
"123e4567-e89b-12d3-a456-426614174003"
Provider-specific status code
"200"
Provider-specific status message
"Merchant activated successfully"
Provider-specific metadata
{}Onboarding URL (only shown when status is not ACTIVE)
"https://provider.com/onboard/12345"
Associated bank account information (created by provider)
External bank account for fund settlements (provided by merchant, required for RINNE provider)
Prepayment type for the affiliation
AUTOMATIC, SPOT "AUTOMATIC"
Number of days for prepayment
x >= 11
Point-in-time snapshot of company data (with contact) at affiliation creation. Only included when include_company_snapshot=true query parameter is set.