Skip to main content
POST
Create new merchant

Authorizations

x-api-key
string
header
required

Company API key for authentication

Body

application/json

Schema for creating a new company or merchant

full_name
string
required

Company full name (required)

Example:

"Example Company Ltda."

document_number
string
required

Company document number (CPF: 11 digits; CNPJ: 14 characters, numeric or alphanumeric per IN RFB 2229/2024)

Example:

"16525269000121"

document_type
enum<string>
required

Document type (case insensitive, will be converted to uppercase)

Available options:
CPF,
CNPJ
Example:

"CNPJ"

document_tax_type
enum<string>
required

Document tax type (required for all companies):

  • PF: Pessoa Física (Individual) - for CPF companies only
  • PJ: Pessoa Jurídica (Legal Entity) - for CNPJ companies
  • MEI: Microempreendedor Individual - for CNPJ companies
  • ME: Microempresa (Micro Enterprise) - for CNPJ companies

Validation Rules:

  • For CPF companies: must be 'PF'
  • For CNPJ companies: must be one of 'PJ', 'MEI', or 'ME'
Available options:
PJ,
MEI,
ME,
PF
Example:

"PJ"

mcc
string
required

Merchant Category Code (required)

Pattern: ^[0-9]{4}$
Example:

"5912"

contact
object
required
address
object
required
transfer_configurations
object
required
name
string

Company short name (optional)

Example:

"Example Co"

company_logo_url
string<uri>

Company logo URL (optional)

Example:

"https://example.com/logo.png"

website_url
string<uri>

Company website URL (optional)

Example:

"https://example.com"

fee_policy_id
string

Fee policy ID (optional), will be inherited from organization for merchants

Example:

"123e4567-e89b-12d3-a456-426614174001"

metadata
object

Additional metadata (optional JSON object)

Example:
declared_revenue
integer | null
default:50000

Annual revenue in whole reais (BRL) for Banco Central compliance (Circular 3.978/2020). Optional - defaults to 50000 (R$ 50.000) for CNPJ companies if not provided.

Required range: x >= 0
Example:

50000

bank_account
object

Bank account information, if sent a bank account will be created for the company

gateway_affiliation
object

Optional. When provided, a gateway-mode affiliation is registered for the new merchant in the same request. Requires a gateway-mode cost policy to already exist for the organization. See Gateway Mode.

Response

Merchant created successfully

Transformed company data returned by the API

id
string
required
Example:

"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"

name
string
required
Example:

"Example Company"

full_name
string
required
Example:

"Example Company LTDA"

document_number
string
required

CPF (11 digits) or CNPJ (14 characters). CNPJ may be numeric or alphanumeric (IN RFB 2229/2024): first 12 positions are [A-Z0-9], last 2 are numeric check digits. Formatting is stripped and letters are uppercased on input.

Example:

"16525269000121"

document_type
enum<string>
required
Available options:
CNPJ,
CPF
Example:

"CNPJ"

contact
object
required
status
enum<string>
required
Available options:
PENDING_ACTIVATION,
ACTIVE,
INACTIVE,
BLOCKED
Example:

"ACTIVE"

address
object
required
transfer_configurations
object
required
created_at
string<date-time>
required
Example:

"2023-01-01T00:00:00Z"

updated_at
string<date-time>
required
Example:

"2023-01-01T00:00:00Z"

document_tax_type
enum<string>

Document tax type:

  • PF: Pessoa Física (Individual) - for CPF companies
  • PJ: Pessoa Jurídica (Legal Entity) - for CNPJ companies
  • MEI: Microempreendedor Individual - for CNPJ companies
  • ME: Microempresa (Micro Enterprise) - for CNPJ companies
Available options:
PJ,
MEI,
ME,
PF
Example:

"PJ"

company_logo_url
string
Example:

"https://example.com/logo.png"

website_url
string
Example:

"https://example.com"

webhook_enabled
boolean

Whether webhooks are enabled for this company

Example:

false

declared_revenue
integer | null

Annual revenue in whole reais (BRL) for Banco Central compliance (Circular 3.978/2020)

Required range: x >= 0
Example:

50000