Methods
| Method | Description |
|---|---|
create(customer) | Create a new customer |
get(id) | Get a customer by ID |
list(params?) | List customers with optional filters |
update(id, customer) | Update an existing customer |
sync(id, sync) | Sync customer data to a provider |
balance(customerId, filter) | Get a customer’s balance for a provider |
uploadFiles(customerId, files) | Upload files for a customer |
getFiles(customerId) | Get files associated with a customer |
populatePlatform(customerId) | Populate platform data for a customer |
Create a customer
Get a customer
List customers
Query parameters
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of results |
offset | number | Number of results to skip |
email | string | Filter by email address |
country_code | string | Filter by country code |
document_type | string | Filter by document type |
provider | string | Filter by provider |
provider_registration_status | string | Filter by provider registration status |
target_role | string | Filter by target role |
Update a customer
Sync customer data
Push customer fields to a specific provider. This is useful when you update customer data locally and need the provider’s records to stay in sync.| Field | Type | Description |
|---|---|---|
providers | [Provider] | Provider to sync with (exactly one): "stripe", "bridge", "pagar_me", "brla", "avenia", "mercado_pago" |
fields | SyncField[] | Fields to sync: "shipping", "email", "first_name", "last_name" |
Get customer balance
Retrieve a customer’s balance for a specific provider and role.| Field | Type | Description |
|---|---|---|
provider | string | Provider to check balance for |
role | string | Customer role (e.g., "connected_account", "customer") |
Request fields
All fields exceptemail are optional on create. On update, all fields are optional.
| Field | Type | Description |
|---|---|---|
email | string | Customer email address |
first_name | string | First name |
last_name | string | Last name |
document_number | string | Tax ID or document number |
document_type | "personal_tax_id" | "company_tax_id" | Document type |
dob | string | Date of birth |
phone_country_code | string | Phone country code |
phone_area_code | string | Phone area code |
phone_number | string | Phone number |
country_code | string | Country code |
company_name | string | Company name |
Upload files
Upload files for a customer (e.g., identity documents, proof of address):
This method uses multipart form data upload internally via postMultipart().
Get files
Retrieve files associated with a customer:Populate platform
Populate platform-specific data for a customer:Customer status values
Customers have one of 12 possible status values throughout their lifecycle.Response data
The responsedata object includes all request fields plus additional system fields like id, customer_id, customer_wallet, trading_wallet, account_type, additional_info, synced, synced_at, and address fields.